Skip to main content

Picnic API Python client library

Project description

A Python library for Picnic’s API. Python 2.7.9 and 3.4.3 (and above) are 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

picnic_python-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

picnic_python-0.2.0-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file picnic_python-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for picnic_python-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ea6fa747093e7e0ea78958cb137975a443ff68abd7bde447858161fbbfe4a15
MD5 c8fecea0020c8545fbe90c1ec1d0923e
BLAKE2b-256 20b6408dcc42feb45865c890b9337b2717f03d7d62298d270c0d68721366e4f5

See more details on using hashes here.

File details

Details for the file picnic_python-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for picnic_python-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6f052d08cb9ceb5156b2e5ae617ab11d64a33215e49885a515edd6e6d1a131b6
MD5 d386922947e1673d7269b25de9d5e7b3
BLAKE2b-256 b9c306f2b1aadba8e6f6f00e3a2687e06f158b2976769bfbcf10d98cf1690a64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page