Skip to main content

Pocketsmith API client

Project description


Pocketsmith API client, automatically generated with OpenAPI Generator from a manicured version of the official OpenAPI spec


pip install pocketsmith-api


>>> import pocketsmith
>>> client = pocketsmith.PocketsmithClient('my-api-key')
>>> client.users.get_me()
{'always_show_base_currency': False,
 'avatar_url': '',
 'base_currency_code': 'usd',
 'beta_user': True,
 'created_at': datetime.datetime(2016, 10, 17, 6, 22, 44, tzinfo=tzutc()),
 'email': '',
 'id': 1234565,
 'last_activity_at': datetime.datetime(2020, 10, 3, 6, 57, 44, tzinfo=tzutc()),
 'last_logged_in_at': datetime.datetime(2020, 10, 3, 4, 58, 35, tzinfo=tzutc()),
 'login': 'yamsandwich',
 'name': 'Yam S Andwich',
 'time_zone': 'Eastern Time (US & Canada)',
 'updated_at': datetime.datetime(2020, 10, 3, 6, 57, 44, tzinfo=tzutc()),
 'using_multiple_currencies': False,
 'week_start_day': 0}

Generating the library

The @openapitools/openapi-generator-cli npm package is used for generation. This package will automatically download the latest OpenAPI Generator .jar. To install, run:

npm install -g @openapitools/openapi-generator-cli

Then, run the following to generate the library from spec, and add a few customizations on top (like the PocketsmithClient class)


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

pocketsmith-api-2.1.1.tar.gz (66.7 kB view hashes)

Uploaded Source

Built Distribution

pocketsmith_api-2.1.1-py3-none-any.whl (175.4 kB view hashes)

Uploaded 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