toshl-python 
Python client library for Toshl API
Getting started with the library
from toshl.client import ToshlClient
client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
Every resource exposes the following methods:
list()
search()
get()
create()
update()
delete()
To use each resource you will need to create an instance of them, passing the client as parameter in the constructor.
Note: at the moment not all the methods and not all the resources have been implemented.
Here you can find a couple of examples, but for the complete documentation you can have a look at the official website https://developer.toshl.com/docs/
Accounts
from toshl.client import ToshlClient, Account
client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
account = Account(client)
# list all accounts
account.list()
# search for a specific account
account.search('Test Account')
Categories
from toshl.client import ToshlClient, Category
client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
category = Category(client)
# list all categories
category.list()
# search for a specific category
category.search('Test Category')
Entries
from toshl.client import ToshlClient, Entry
client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
entry = Entry(client)
# create an Entry
json_payload = {
'amount': -123.68,
'currency': {
'code': 'GBP'
},
'date': '2016-04-07',
'account': 'abcd1234',
'category': 'category-001'
}
response = entry.create(json_payload)
Copyright Note
Metadata
Release files for toshl 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toshl-0.0.3.tar.gz | 3.0 kB | Without provenance | Details for toshl-0.0.3.tar.gz |
Release files / toshl-0.0.3.tar.gz
| Download URL | toshl-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa2300ea38ff0f23298b37af28015911f4f1740c94355448cf8c0f79b3b516dc
|
|
BLAKE2b-256 checksum How to use checksums |
d6239ba7c101a88b9cf40a52cdc7469ee3b68639f716be280c7429467fe92eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for toshl 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.