Skip to main content

A Python wrapper for the Planning Center Online API.

Project description

Pypco ReadME

Build Status codecov

Pypco an object-oriented, Pythonic client for the Planning Center Online API. The library is currently in very active development and not yet recommended for production use (but hopefully will be ready soon!).

Features

  • Object-oriented, Pythonic interface: No writing URLS or building/managing HTTP requests! With pypco, you can do stuff like this:
import pypco
pco = pypco.PCO("<app_id>", "<app_secret>")

# Rename everyone in your PCO people account to "John Doe"
# You probably shouldn't *actually* do this...
for person in pco.people.people.list():
    person.first_name = "John"
    person.last_name = "Doe"
    person.update()

# Create and save a new person
new_person = pco.new(pypco.models.people.Person)
new_person.first_name = "John"
new_person.last_name = "Doe"
new_person.update()

# Get the person with ID 123, and view their first name
person = pco.people.people.get("123")
print(person.first_name)

# Get the persion with ID 123 and iterate through their addresses
person = pco.people.people.get("1234")
for address in person.rel.addresses.list():
    print(address)
  • Automatic rate limiting handling: If your application is rate limited, pypco will automatically delay your requests until your rate limit period has expired.
  • REST API parity: Pypco aims to be simple to use. After a quick read of the quickstart guide (coming soon), you should be able to use pypco simply by reading the PCO API docs. No sense in reinventing the wheel and/or overcomplicating things.

License

Pypco is licensed under the terms of the MIT License.

Project details


Download files

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

Source Distribution

pypco-0.0.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

pypco-0.0.0-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file pypco-0.0.0.tar.gz.

File metadata

  • Download URL: pypco-0.0.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pypco-0.0.0.tar.gz
Algorithm Hash digest
SHA256 bd48712e02b96a15eb40f934c1b8933f151302f122c377af8ed131a4e9d22fa4
MD5 d88fd969f96e6756e82aa600e369b722
BLAKE2b-256 e94d1eb791aff06fde05b49c9a4ea410f1c5b8b1a8fc3447269979acc1359857

See more details on using hashes here.

File details

Details for the file pypco-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: pypco-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pypco-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be3f74023f87b0a8705cd299297b284258812d6807a9b531ab8325719c98ddc8
MD5 0987b2c986fe45a25f76e513268cb2f0
BLAKE2b-256 e6060cfa7e2d59aa6ddcb229cc4666c12f3713e33ce17741c5e67e06cf808870

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