Skip to main content

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

sdk = SDK("YOUR-API-KEY")
r = sdk.transactions.create(
    id="4yp49x3tbj9mD8DB4fM8DDY6Yxbx8YP14g565Xketw3tFmn",
    description="AMAZON WEB SERVICES",
    entry_type="outgoing",
    amount=12042.37,
    currency="USD",
    date="2021-11-01",
    location=dict(
        country="US"
    ),
)
print(r)

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

ntropy_sdk-5.0.0rc2.tar.gz (209.4 kB view details)

Uploaded Source

Built Distribution

ntropy_sdk-5.0.0rc2-py2.py3-none-any.whl (41.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ntropy_sdk-5.0.0rc2.tar.gz.

File metadata

  • Download URL: ntropy_sdk-5.0.0rc2.tar.gz
  • Upload date:
  • Size: 209.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for ntropy_sdk-5.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 33ed9b599b885c735a3dd8108356c23fd87da058ba355d50dfda6b8351ece0eb
MD5 dcc52851c078d686fe3cba82792e88a5
BLAKE2b-256 a1cdcc9006d92f7a1a9df1d579f0518a536949fdbe24c36e26c660d109ca6a21

See more details on using hashes here.

File details

Details for the file ntropy_sdk-5.0.0rc2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ntropy_sdk-5.0.0rc2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 948bf93993e731b4932f40d9b59553f588092770afa0e8b26bc475000bf4fea7
MD5 daa584041a31fd2e18cfbdbf7fe3b0bd
BLAKE2b-256 fab2b1d8a45d97013b8a13e124054f689e5de589cb7120d4de75e1450908e866

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page