Skip to main content

ProsperWorks client library

Project description

Prospyr

A Python client library for ProsperWorks.

Prospyr builds Prospyr on Pypi.

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


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.0.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

prospyr-0.2.0-py2.py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 2 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