SDK for the Ntropy API
Project description
Ntropy SDK
This repository hosts the SDK for the Ntropy API. To use the Ntropy API you require an API key which can be requested at ntropy.com.
The Ntropy API provides transaction enrichment and categorization, account ledger and metrics. The full documentation is available at the developer portal.
Installation
$ python3 -m pip install --upgrade 'ntropy-sdk'
Quick Start
Enriching your first transaction requires an SDK
object and an input Transaction
object. The API key can be set in the environment variable NTROPY_API_KEY
or in the SDK
constructor:
from ntropy_sdk import SDK, TransactionInput, LocationInput
sdk = SDK("YOUR-API-KEY")
r = sdk.transactions.create([
TransactionInput(
id = "4yp49x3tbj9mD8DB4fM8DDY6Yxbx8YP14g565Xketw3tFmn",
description = "AMAZON WEB SERVICES",
entry_type = "outgoing",
amount = 12042.37,
currency = "USD",
date = "2021-11-01",
location = LocationInput(
country="US"
),
)
])
print(r.transactions[0].entities.counterparty)
The returned EnrichedTransaction
contains the added information by Ntropy API. You can consult the Enrichment section of the documentation for more information on the parameters for both Transaction
and EnrichedTransaction
.
Documentation
You can consult in-depth documentation and examples at the developer portal and at the SDK reference.
License:
Free software: MIT license
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
Built Distribution
File details
Details for the file ntropy_sdk-5.0.0rc1.tar.gz
.
File metadata
- Download URL: ntropy_sdk-5.0.0rc1.tar.gz
- Upload date:
- Size: 208.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 617096b38494a0169d05b60da48e7088f144a639081d298eee2a5f29ba3269c0 |
|
MD5 | 35be45a008883c442dda91c161f28598 |
|
BLAKE2b-256 | 42032dfe12b819d3cb01997e4a13529ff107c6c6a5f260ea06c7514390996cea |
File details
Details for the file ntropy_sdk-5.0.0rc1-py2.py3-none-any.whl
.
File metadata
- Download URL: ntropy_sdk-5.0.0rc1-py2.py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6daa092afa1be3154f172293519f482e3cfda19b579bf69a6cda0429a97f32 |
|
MD5 | 3641cad80652a662108bf8d2525c7731 |
|
BLAKE2b-256 | a3e8b6153ee959415772658d80634a09e7e3e5b7a45546edbcb40755ab1a142f |