Skip to main content

Darkwood python client

Project description

Darkwood Data Python Client

Installation

You can install the Darkwood Data Python client from PyPI:

python -m pip install darkwood-data

Setup

darkwood-data setup configure

This will result in a file at ~/.darkwood/credentials.

The client is supported on Python 3.6 and above.

How to use

The Darkwood client can be used as a command line application or as a python package. The cli is named darkwood-data.

Calling the linking api

darkwood-data entity-mapper --transaction "Amazon Tips*1Z3MJ3KL2 Amzn.com/bi WA"

You can also call the Darkwood API in your own Python code, by importing from the darkwood package. If you have configured the host machine using the darkwood-data cli configure command use:

>>> from darkwood.client.call import credit_card_mapper
>>> credit_card_mapper(transaction="Amazon Tips*1Z3MJ3KL2 Amzn.com/bi WA")

Additionally, you have the option to explicity pass in credentials

>>> from darkwood.client.call import credit_card_mapper
>>> credit_card_mapper(transaction="Amazon Tips*1Z3MJ3KL2 Amzn.com/bi WA", creds=<PASTE-YOUR-DARKWOOD-CREDS>)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darkwood-1.0.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

darkwood-1.0.4-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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