Skip to main content

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

Release files for pocketsmith-api 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pocketsmith-api 2.1.1
File Size Uploaded
pocketsmith-api-2.1.1.tar.gz 66.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pocketsmith-api 2.1.1
File Interpreter ABI Platform
pocketsmith_api-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 242.2 kB

Release files / pocketsmith-api-2.1.1.tar.gz

Download URL pocketsmith-api-2.1.1.tar.gz
Size 66.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1a1f7b3a685bd3858acc01b223166c79f879e9dcab82cb438511102f1500855b
BLAKE2b-256 checksum
How to use checksums
4e7b5a021e84ea055422e7111176397d2295e76ff583a5ef850dd6b59a96e673
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.13.0-25-generic

Release files / pocketsmith_api-2.1.1-py3-none-any.whl

Download URL pocketsmith_api-2.1.1-py3-none-any.whl
Size 175.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82932b615a2ad621716c4aa1ad8262cccca50720a0207c3c645ecbef9bc86d47
BLAKE2b-256 checksum
How to use checksums
3af5c62d468298ebc64138dcc91511e69c4a0647d32d5e08a59ea8eb7156907a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.13.0-25-generic

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page