ProsperWorks client library
Project description
Prospyr
A Python client library for ProsperWorks.
Usage
from prospyr import connect, resources
# see https://www.prosperworks.com/developer_api/token_generation to obtain
# a token.
cn = connect(email='user@domain.tld', token='1aefcc3...')
# collections can be ordered and sliced.
newest_person = resources.Person.objects.order_by('-date_modified')[0]
# new records can be created.
art = resources.Person(
name='Art Vandelay',
emails=[{'email': 'art@vandelayindustries.net', 'category': 'work'}]
)
art.create() # Art is local-only until .create() is called
# related objects can be read and assigned
art.company = resources.Company.objects.all()[0]
art.update()
# and deleting works too.
art.delete()
Installation
pip install prospyr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prospyr-0.2.1.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for prospyr-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54ebe31599932f867d6505cda8ba4feba8f13a1bfa844c16302ce7e844bc80a |
|
MD5 | 53996711a304da1dd1ff4d4ceb934cea |
|
BLAKE2b-256 | 573c1950af1a76f9a7cc07c67bb352d1c721349bda67dca364619b545032257e |