Skip to main content

A Python SDK for integrating with the GeniusSIS API

Project description

GeniusSIS API

By fr8train-sv

A Python 3.12 SDK for integrating with GeniusSIS API. Install with:

  pip install geniussis-api-fr8train

Upgrade this specific library by running:

  pip install --upgrade geniussis-api-fr8train

Important Commands

The following list of commands are important for project maintenance.

Building the Library

To build the library, ensure that the necessary build tools are installed in your environment. This can be done by installing setuptools, build, and wheel:

  pip install build twine setuptools wheel

twine can also be installed here while we're installing shit since we'll need it later.

REMEMBER: INCREMENT YOUR VERSION NUMBER IN THE TOML BEFORE BUILDING.

REMEMBER: REMOVE THE /DIST DIRECTORY BEFORE BUILDING FOR A CLEAN BUILD

Now, you can create the distribution files (source distribution and wheel) using the following command:

  python3 -m build

This will generate builds in the dist/ directory.

Deploying to PyPI

Ensure you have a valid PyPI account and credentials added to your .pypirc file or provide them during the publish process. Then, upload your package to PyPI with:

  python3 -m twine upload dist/*

Follow any prompts from twine to successfully upload your package. Once deployed, your package will be available on PyPI.

Usage

Initialization

To start using the API SDK, you will need to initialize an API object:

from geniussis_api_fr8train.api import Api

api = Api()

This will reach out into your project for a .env file for credentials to establish a connection to the Agilix API Gateway. Structure your .env file like the example below and maintain it at the root of your project directory.

API_CLIENT_KEY=
API_SECRET=
API_HOST=

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

geniussis_api_fr8train-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

geniussis_api_fr8train-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file geniussis_api_fr8train-0.1.0.tar.gz.

File metadata

  • Download URL: geniussis_api_fr8train-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for geniussis_api_fr8train-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb2633deecf87fcce7407054d82ae8b313e27932df75eb5a9720fa6f6d55992e
MD5 f958c9805c68361b45142a64a91c782f
BLAKE2b-256 b2433b176c6fbb1ce4a8b1101e99ec2d35614fc5f60640a7f82a2548369c89bf

See more details on using hashes here.

File details

Details for the file geniussis_api_fr8train-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for geniussis_api_fr8train-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8bb0d24c1227d865a3cc01b00c71ddcb90e94e359868aa3fd3d69d12a251060
MD5 bd2dfc1a21b98b866ad401663c5500d9
BLAKE2b-256 20448c361facafd5f0fc52ad07a6e7d2d1bc2f1fabd00a6a9b10c550aa741284

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