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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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