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="debit",
entity_id="1",
)
batch = sdk.classify_batch([transaction])
enriched_list = batch.wait_with_progress()
print("BATCH", enriched_list.transactions[0].labels)
enriched = sdk.classify_realtime(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-2.0.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for ntropy_sdk-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4be2ca804dded8a6f4ef3b24271d5921d5025ccc70f99c141cf6e51986ea822 |
|
MD5 | d466aba25a4404ea92a9e9a9cbc5fb3e |
|
BLAKE2b-256 | 5ff2a74135fe5fc400e401b609ff6da248185288939fa175272ccd482a7bff98 |