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

This version

5.0.1

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

Uploaded Source

Built Distribution

ntropy_sdk-5.0.1-py2.py3-none-any.whl (42.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ntropy_sdk-5.0.1.tar.gz
  • Upload date:
  • Size: 210.2 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.1.tar.gz
Algorithm Hash digest
SHA256 f501f6eeac52b97c202e5faf2d9d2745bd0ceccb4a70d0bd56681cad7e9196c2
MD5 57669af507699098460b134584d9a8ce
BLAKE2b-256 7c2c2d8fa645ac6de8595ea0f8f52fd159b87dc7c895c40942625d3cfda0d938

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ntropy_sdk-5.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 42.2 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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 766297595d65faf73aa3dfe50a4462fe9c6ef5f3e375eec0ea76920c56b569ab
MD5 b9218b0fc70aa2575fcc6b6ddf34964d
BLAKE2b-256 65fa3351ba9071a21a2649a28d66fa9eb2761bbd9df6bb77612d7d86dbb730b9

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