This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
picnic_python-0.2.0-py2.py3-none-any.whl (5.0 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Apr 21, 2015
picnic_python-0.2.0-py3-none-any.whl (5.0 kB) Copy SHA256 Checksum SHA256 py3 Wheel Apr 20, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting