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 details)
Built Distribution
File details
Details for the file netlify_py-0.1.0.tar.gz
.
File metadata
- Download URL: netlify_py-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ea711752c8f03cc572013aad29d2c7ca201ede3e9b001a4999744aa8a4cd8d |
|
MD5 | f18538aaa8416b6e5735829f3a350297 |
|
BLAKE2b-256 | 83025e02f8e72ea9e581a43715c0de99b681d8f0be8a59fcf18033f1e4883c15 |
File details
Details for the file netlify_py-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: netlify_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5f1f7e9c2b86d9420707ab1d568d6d1d6af3e802bd51a8da49beda534a1909 |
|
MD5 | 925f44ebe0478bbd385ba9759d9e5614 |
|
BLAKE2b-256 | 5ea7a69b0c647e24de6e857ebc022670af2323221f44bede8a9a589e95843f27 |