A python wrapper for creating, managing and deploying sites to Netlify using the Netlify APIs.
Project description
netlify-py
A python client for creating, managing and deploying sites to Netlify using the Netlify API.
For more info refer their official documentation at Netlify docs.
Quick start
-
Install netlify-py
pip install netlify-py
-
Create an instance by passing a personal access token
from netlify_py import NetlifyPy n = NetlifyPy(access_token="zYR6c7fjFYdmxvMW03Vs1qYOIIImXT3sLGPf50hW2AE")
-
Example usage
# return all sites sites = n.sites.list_sites() # get a specific site site = n.sites.get_site("site_id") # create a new site new_site = n.sites.create_site() # list all deploys for a site deploys = n.deploys.list_site_deploys("site_id") # create a deploy of all files in a dir new_deploy = n.deploys.deploy_site("site_id","dir_to_deploy") # get a deploy deploy = n.deploys.get_deploy("deploy_id")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netlify_py-0.1.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for netlify_py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5f1f7e9c2b86d9420707ab1d568d6d1d6af3e802bd51a8da49beda534a1909 |
|
MD5 | 925f44ebe0478bbd385ba9759d9e5614 |
|
BLAKE2b-256 | 5ea7a69b0c647e24de6e857ebc022670af2323221f44bede8a9a589e95843f27 |