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.0.tar.gz
(9.8 kB
view hashes)
Built Distributions
prospyr-0.1.0-py3-none-any.whl
(13.9 kB
view hashes)
Close
Hashes for prospyr-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42cc353fa25adcb229a7eedd90135f84d12f49aa211233cee6322fc979834e68 |
|
MD5 | 4f7eac5225abca02cf185d4340da736c |
|
BLAKE2b-256 | 007595d41f6c331e268a2a639d751310d35fde0a4c841a7c2cf21884e9f29269 |