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

This version

5.0.2

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

Uploaded Source

Built Distribution

ntropy_sdk-5.0.2-py2.py3-none-any.whl (42.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ntropy_sdk-5.0.2.tar.gz
  • Upload date:
  • Size: 210.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for ntropy_sdk-5.0.2.tar.gz
Algorithm Hash digest
SHA256 e25d431a1fc9c785da7360882a493d1ad35920fa72817cd15ee6cb1832b95c31
MD5 70f7d54fe8d4c83b8350fcf96fcbb7c1
BLAKE2b-256 916363bcaf5d52a1f2ea995e471bf1cbe8f0efbc6e7e30365e1e41f9a45cd52c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ntropy_sdk-5.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 42.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for ntropy_sdk-5.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 598afb1edaef1caea82e0ee37471a3b3f7b5f8876d9148327359ac8d9beedd4d
MD5 572bfcd77972c47931b1969ab40eee0b
BLAKE2b-256 9bc36038da6744f16e9e44ec00682c241c13a51d822a1435d22fa96beeb85e80

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