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-2.0.1.tar.gz
(61.9 kB
view details)
Built Distribution
File details
Details for the file pocketsmith-api-2.0.1.tar.gz
.
File metadata
- Download URL: pocketsmith-api-2.0.1.tar.gz
- Upload date:
- Size: 61.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
62741e9a2e70ebc6704b11cf169f610089c52566e3e1f0f460cba3ae5e39f711
|
|
MD5 |
eb6a2caff11cc81d6016e0b6e7933039
|
|
BLAKE2b-256 |
c8146c82fd6e9234b721fe16fd85cfab7ce9cf82a14ad84218b3f1b894271aae
|
File details
Details for the file pocketsmith_api-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: pocketsmith_api-2.0.1-py3-none-any.whl
- Upload date:
- Size: 128.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
84db5af08b68ff875b4e0b577ef412a6d0f4ca258c13e0ea280ff21ccd014033
|
|
MD5 |
ed29b4de7dc075a536824957c6f411f7
|
|
BLAKE2b-256 |
0deb73661476530bb078f1f05279be02a37e78693e7d626a485293ecfd13a689
|