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
In order to ensure your shell can discover the command line tool follow the below instructions depending on your operating system
Linux/macOS
On Linux and macOS you can find the user base binary directory by running python -m site --user-base and adding bin to the end. For example, this will typically print ~/.local (with ~ expanded to the absolute path to your home directory) so you’ll need to add ~/.local/bin to your PATH. You can set your PATH permanently by modifying ~/.profile.
Windows
On Windows you can find the user base binary directory by running python -m site --user-site and replacing site-packages with Scripts. For example, this could return C:\Users\Username\AppData\Roaming\Python36\site-packages so you would need to set your PATH to include C:\Users\Username\AppData\Roaming\Python36\Scripts. You can set your user PATH permanently in the Control Panel. You may need to log out for the PATH changes to take effect.
Setup
darkwood-data configure cli
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 configure cli 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file darkwood-1.0.8.tar.gz.
File metadata
- Download URL: darkwood-1.0.8.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c679598491f5058524e77619091ac29699f3cca0820af08b64dd0e2a6483718
|
|
| MD5 |
ceef1e548e6c059109a507b2a0cf2c1e
|
|
| BLAKE2b-256 |
c3d174c5d2405a8f9f63d61839fcebb677632219a8ed36f4a5767ec80849f59c
|
File details
Details for the file darkwood-1.0.8-py3-none-any.whl.
File metadata
- Download URL: darkwood-1.0.8-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a951687b699ef5bbe3fc33fb8b6b91bd9ad4a91be33e1b9807ec0cd8820fe594
|
|
| MD5 |
574582c1847f3593cddc0f496ecea8ba
|
|
| BLAKE2b-256 |
ac003b5151407ba9784fcd2bca5533864256c6a23c822e1bc6cbf746e8f81e0c
|