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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file prospyr-0.2.0.tar.gz.

File metadata

  • Download URL: prospyr-0.2.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for prospyr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2500b4d5a1d83e6bb39eecfa2ef17221d2c45939857bc0491d8118b41668075
MD5 e69d1c97a5821a6465d275e534fcdf34
BLAKE2b-256 bd9f97f3b2a9fe03402080777d3360222f7c90300e284243ece712fe4afa02e6

See more details on using hashes here.

File details

Details for the file prospyr-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for prospyr-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e078c57abbe0c47a29b2d3c805f0a3759872ea25bccdfbf301faf95ca06dfe4a
MD5 2158ec3181a2946713c38d6c820bab0a
BLAKE2b-256 39bcca20c128c71c96721848b6b30e4647d2999b4dd0a1d7a8002567e5aa2fe1

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