ProsperWorks client library
Project description
A Python client library for ProsperWorks. If you know Django, Prospyr will feel familiar.
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()
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.1.1.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for prospyr-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10646093eceb840ca182e664cffcd6a522ae81ab185b53103c098d4861c6f817 |
|
MD5 | c2130262f23b9abd65b2fc2a59c11f6f |
|
BLAKE2b-256 | 6159a5969deba99e8bae88dfb9b4018cf3e42a16d66e079d75155b205a813ce0 |