Skip to main content

A Python wrapper for the Planning Center Online API.

Project description

Pypco ReadMe

Build Status codecov

Pypco is 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.2.tar.gz (24.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.2-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypco-0.0.2.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pypco-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7aaffead7c803ded5f55a951e193d05b538746412168a580340ad763e9690905
MD5 668eac64f870e1161e5ad6c9c9c46a0c
BLAKE2b-256 f937af35484d4c75b42b8398bbdd9e7fddc659a5900be8e6fd7081ee46b46d73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypco-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pypco-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef490ccec15c258b1eaa0297f7bc5ee081e6f05e35ff7f585459c3cdf28b4c7f
MD5 b3b61d0e52cae6021e1e1cbb4fffd1aa
BLAKE2b-256 8b45811790b95fa48af99484d7d23343f50aaa30767e618e40c1a2d4eb35d4d9

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