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.5.0.tar.gz (215.7 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.5.0-py2.py3-none-any.whl (49.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for ntropy_sdk-5.5.0.tar.gz
Algorithm Hash digest
SHA256 81a8b5b3bed0d84f315e1da116a2171d64f722d4b277363e91f72e2407513dc9
MD5 ab57f383807c3137f38c00d3ac811900
BLAKE2b-256 1379176aa33bbc7b83ed27332cbb4fceff4e5c606959c096a9ed15aa5a9674c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ntropy_sdk-5.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6b0b80a6235a970e2450678ae2d509fdadbdbc9e81e4203dd961a514753a66f9
MD5 411344b62e7179c7fb5ca0cd36924dba
BLAKE2b-256 53c2fb26648fbd61fedfe5c5b4d4ca941ee8ab617fae0b71f8fff5b68fe60cb8

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