Skip to main content

SDK for the Ntropy API

Project description

Ntropy SDK

This repository hosts the SDK for the Ntropy API. It provides transaction enrichment and categorization, account ledger and metrics. The full documentation is available at the developer portal.

To obtain an API key, you can follow this guide.

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.4.0.tar.gz (215.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ntropy_sdk-5.4.0-py2.py3-none-any.whl (49.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ntropy_sdk-5.4.0.tar.gz.

File metadata

  • Download URL: ntropy_sdk-5.4.0.tar.gz
  • Upload date:
  • Size: 215.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ntropy_sdk-5.4.0.tar.gz
Algorithm Hash digest
SHA256 6b3bd5070916d029b0ae963d9a7615466681d55dd4619369aab26685676ce285
MD5 d9de620d513349263368a2a82c98cf72
BLAKE2b-256 da315885d777db4516047736f36feab7a10415343ee1e0ae772d50b43cceaba7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ntropy_sdk-5.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ntropy_sdk-5.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cf7de4e677aa0a5d614282e245a2cf52fbbb7de6f3d513ee1990a98e4310893c
MD5 08bdfa0f9d1b2a94c442c012625320ca
BLAKE2b-256 5f2ad909ecade8a82aefec15c57177d7e9df2d9eb6b006cb39bfdeef63e6be6b

See more details on using hashes here.

Supported by

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