SDK for the Ntropy API
Project description
Ntropy SDK
SDK for the Ntropy API
Installation:
$ pip install --upgrade ntropy-sdk
Usage:
import os
from ntropy_sdk.ntropy_sdk import SDK, Transaction
sdk = SDK(os.getenv("NTROPY_API_KEY"))
transaction = Transaction(
amount=1.0,
description="AMAZON WEB SERVICES AWS.AMAZON.CO WA Ref5543286P25S: Crd15",
is_business=True,
entry_type="outgoing",
account_holder_id="1",
country="US",
)
batch = sdk.enrich_batch([transaction])
enriched_list = batch.wait_with_progress()
print("BATCH", enriched_list.transactions[0].labels)
enriched = sdk.enrich(transaction)
print("REALTIME:", enriched.labels)
- 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
ntropy_sdk-3.0.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for ntropy_sdk-3.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97191fbb950d4cbef796b825c5d897e7ace55c3246d7b23733346a666ff1b1a8 |
|
MD5 | 5bdef4b168b664c6c7242a6195bc6546 |
|
BLAKE2b-256 | 837d49c45f4ffd6aabd21e14e6746f8614130e5baacd71ccc765a9bd62b3f56e |