Skip to main content

Pocketsmith API client

Project description

pocketsmith-api

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

Installation

pip install pocketsmith-api

Usage

>>> import pocketsmith
>>> client = pocketsmith.PocketsmithClient('my-api-key')
>>> client.users.get_me()
{'always_show_base_currency': False,
 'avatar_url': 'https://secure.gravatar.com/avatar/73e4f4549e97ad9d53e11b8e987f4b90?d=404',
 'base_currency_code': 'usd',
 'beta_user': True,
 'created_at': datetime.datetime(2016, 10, 17, 6, 22, 44, tzinfo=tzutc()),
 'email': 'yak@y4k.dev',
 '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)

./generate-pocketsmith-library.sh

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-1.3.0.tar.gz (56.3 kB view details)

Uploaded Source

Built Distribution

pocketsmith_api-1.3.0-py3-none-any.whl (114.5 kB view details)

Uploaded Python 3

File details

Details for the file pocketsmith-api-1.3.0.tar.gz.

File metadata

  • Download URL: pocketsmith-api-1.3.0.tar.gz
  • Upload date:
  • Size: 56.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0 CPython/3.8.10 Linux/5.4.0-89-generic

File hashes

Hashes for pocketsmith-api-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e88eea51924cabd547f15e9e16bbc0e312f1ff30b16ba3e350fdabd9b25c1a1b
MD5 eefaadfb1d3625e97ea7fc8feb6e2c1d
BLAKE2b-256 7cd872747c0a37e82ff89e9c4c665369411bd98e0c3c8702546c1b78cdd1f327

See more details on using hashes here.

File details

Details for the file pocketsmith_api-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pocketsmith_api-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 114.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0 CPython/3.8.10 Linux/5.4.0-89-generic

File hashes

Hashes for pocketsmith_api-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5a226d980a57f8c9f156198ff4d9f5ba193ab5db4783ade9c906c03594152c
MD5 c7ce0ace37c60cfbbff0c4485805390e
BLAKE2b-256 4ceb5c7f04a229bf3d4c9ef313362a0e4ad32c72ae50d72204ab96d9f7a87f51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page