Picnic API Python client library
Project description
A Python library for Picnic’s API. Only Python 3 is supported.
Setup
You can install this package—and its one dependency, requests—by doing:
pip install picnic-python
or:
easy_install picnic-python
Obtaining a Picnic API Key
Sign up for an API key at https://picnic.sh/api.
Using the Picnic API
Documentation for the API can be found at https://picnic.sh/api.
Using this client library
For a quick demonstration of the available methods, please see example.py.
list_websites()
Returns a list of Website s that you own.
get_website(domain_name)
Returns a Website referred to by the given domain_name.
get_price(domain_name)
Returns a DomainStatus for the given domain_name.
create_website(domain_name, html)
Creates a website with the given html content at the given domain_name, if available. If successful, returns a Website.
Website.update_content(html)
Overwrites the Website’s content with the given html.
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
Built Distribution
Hashes for picnic_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f33b49c5d8172ab230a502b02f44f1d627fa58449d2bb9973cb88ddc450ab1 |
|
MD5 | 0ed88cba7b11e40f326df8db67300cc0 |
|
BLAKE2b-256 | 05941db2dbb8db2f7b2fb26ae0de31565a5042a3b51c318b9105ac26f24f4836 |