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.1.tar.gz (17.7 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.1-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file enappsys-0.1.1.tar.gz.

File metadata

  • Download URL: enappsys-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 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.1.tar.gz
Algorithm Hash digest
SHA256 6342e9d31a204cd10e32dd98d575f411ea6b5c8daff4de9937ba38ea569b7590
MD5 1ce95d2dd116d80dc1d7390347af7653
BLAKE2b-256 b0ce6162cb244e9160817c38c1c8131660abadfe6208760b22be619059548eb6

See more details on using hashes here.

File details

Details for the file enappsys-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: enappsys-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 26.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 497951d01fb8322a7fa1859c4be3390a67c433f5fabd6ebc6897048887138fc9
MD5 a1a85c535aa8e849463b0325cc474742
BLAKE2b-256 8845642907789c8b7e6ac94ee27b56492fd84e3a795b65c787accf202a52cb5b

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