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.3.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.3.0-py2.py3-none-any.whl (49.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for ntropy_sdk-5.3.0.tar.gz
Algorithm Hash digest
SHA256 7c16c9ee2575c969f58ec01211bf4e65b27cc193cd1227f94a8c3ebe1bc12cdc
MD5 f61cb1a315a7fe9ccdbe921e513b475e
BLAKE2b-256 36dc7d20634ebc7479a7e9ac3ad4b67c352d970186c120aa51c6b02b23de1201

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ntropy_sdk-5.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cdb556cab93998cb65ecb2ab51a5bebbd965762ff6f24488774740ddb823dc5d
MD5 1d032a012f59ae70318d90777f865c96
BLAKE2b-256 a82960f833f564107b2519c5e8f5d1049ea393d0808055550d52af296c93a2c3

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