The EnAppSys Python client provides a light-weight client that allows for simple access to EnAppSys' API services.
Project description
EnAppSys Python Client
The Python library for the EnAppSys platform provides a light-weight Python client to interact with EnAppSys' API services. Additionally, there is an asynchronous client for non-blocking operations.
Installation
Supports Python 3.7+.
pip install enappsys[async,pandas]
The extras are optional:
asyncrequired for using theEnAppSysAsyncasynchronous client.pandasrequired for converting API responses to DataFrames, e.g. viaclient_response.to_df()
If you only need the synchronous client and raw responses, install without extras:
pip install enappsys
Configuring credentials
Your EnAppSys username and secret are required to make API requests. You can obtain these as follows:
-
Go to any download page on EnAppSys and click Copy API URL.
-
In the copied URL:
- The value after
user=is your username. - The value after
pass=is your secret (a long numeric string).
- The value after
The client looks for credentials in the following order:
-
Direct arguments when creating the client:
from enappsys import EnAppSys client = EnAppSys( user="example_user", secret="123456789123456789123456789123456789" )
-
Environment variables:
export ENAPPSYS_USER=example_user export ENAPPSYS_SECRET=123456789123456789123456789123456789
-
Credentials file at your home directory, the default location is:
~/.credentials/enappsys.json:{ "user": "example_user", "secret": "123456789123456789123456789123456789" }
You can also save and specify a custom path:
client = EnAppSys(credentials_file="path/to/credentials.json")
Development
Install in editable mode:
python -m pip install -e .[dev]
Install the commit hooks:
pre-commit install
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 enappsys-0.1.0.tar.gz.
File metadata
- Download URL: enappsys-0.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40b574fcf2f7d9fd0e8feee6114e05b0035b7000d092307fa515dbf8ccb2bb41
|
|
| MD5 |
ca8e2dfe3e56f200ef9e05aa78d99dac
|
|
| BLAKE2b-256 |
a99f274c1dd8fbf580c29bb67fa0b3b09c1bcc8783513a92805790798abd7db0
|
File details
Details for the file enappsys-0.1.0-py3-none-any.whl.
File metadata
- Download URL: enappsys-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ce6cb52daab5cb75b7f15bc537f456d3056942cf08e998e2980adcdc5bee649
|
|
| MD5 |
195bd210f29ce2995c4a6237341b248d
|
|
| BLAKE2b-256 |
6e0b25d49742c10b2966466aee8d24a2abec5ae3858a5a65dd65237e2b0ad6cb
|