Skip to main content

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:

  • async required for using the EnAppSysAsync asynchronous client.
  • pandas required for converting API responses to DataFrames, e.g. via client_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:

  1. Go to any download page on EnAppSys and click Copy API URL.

  2. In the copied URL:

    • The value after user= is your username.
    • The value after pass= is your secret (a long numeric string).

The client looks for credentials in the following order:

  1. Direct arguments when creating the client:

    from enappsys import EnAppSys
    
    client = EnAppSys(
        user="example_user",
        secret="123456789123456789123456789123456789"
    )
    
  2. Environment variables:

    export ENAPPSYS_USER=example_user
    export ENAPPSYS_SECRET=123456789123456789123456789123456789
    
  3. 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


Download files

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

Source Distribution

enappsys-0.1.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enappsys-0.1.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

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

Hashes for enappsys-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40b574fcf2f7d9fd0e8feee6114e05b0035b7000d092307fa515dbf8ccb2bb41
MD5 ca8e2dfe3e56f200ef9e05aa78d99dac
BLAKE2b-256 a99f274c1dd8fbf580c29bb67fa0b3b09c1bcc8783513a92805790798abd7db0

See more details on using hashes here.

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

Hashes for enappsys-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce6cb52daab5cb75b7f15bc537f456d3056942cf08e998e2980adcdc5bee649
MD5 195bd210f29ce2995c4a6237341b248d
BLAKE2b-256 6e0b25d49742c10b2966466aee8d24a2abec5ae3858a5a65dd65237e2b0ad6cb

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