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
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
pocketsmith-api-1.1.0.tar.gz
(46.7 kB
view details)
Built Distribution
File details
Details for the file pocketsmith-api-1.1.0.tar.gz
.
File metadata
- Download URL: pocketsmith-api-1.1.0.tar.gz
- Upload date:
- Size: 46.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.0 CPython/3.8.10 Linux/5.4.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f5782b888dcfa672a86f8f4ab04016444d643f7ee989c2afc83f51b10e65ca76
|
|
MD5 |
edbcb3216f5fb953e8da85520fa7e3d3
|
|
BLAKE2b-256 |
509695ff7fd680db74c4222cf48a095870e45a65e5861b1584ca89deefc2ce85
|
File details
Details for the file pocketsmith_api-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pocketsmith_api-1.1.0-py3-none-any.whl
- Upload date:
- Size: 93.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.0 CPython/3.8.10 Linux/5.4.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9b04d59da184f47e28abda39553c5bf801ef243bdbfd5cdf08137a30c7e5b47d
|
|
MD5 |
e32d73d4e96242a37618395ec1f27a93
|
|
BLAKE2b-256 |
a13a380d91049e1bbbd66de7c0f6c11a3a23f7b60d8f4b3101c3c0dbeb567afb
|