Skip to main content

No project description provided

Project description

intelinair-utils

Set of common code to be used across a number of intelinair repos

Unit Test Coverage:

Integration Test Coverage

Repository Structure

scripts

Location for bash utility scripts

src

Location for package source code

tests

Location for unit and integration tests for package

Usage

Development

Create a virtual environment and install the dev requirements

conda create -n intelinair-utils python=3.8
conda activate intelinair-utils
pip install -r requirements_dev.txt

Code style

  • max line length - 120
  • docstring style - google

Testing

To run the unit and integration tests: (requires a valid ~/.agmri.cfg)

./scripts/test.sh

View coverage html report at ./html/{unit|integration}_coverage/index.html

Generate Documentation

All the docstrings can be rendered into html for easy viewing

./scripts/generate_docs.sh

View docs at ./html/docs/intelinair_utils/index.html

Releasing

To release a new version run the following in the master branch being sure to specify the type of release.

./scripts/do_release.sh {patch|minor|major}

Installing

To install this package run one of the following

# Install a specific version
pip install git+https://github.com/intelinair/intelinair-utils@v0.0.1

# Install the latest version
pip install git+https://github.com/intelinair/intelinair-utils

Package Usage

Requirements

  1. Set up aws credentials. If you don't have credentials ask David Wilson
    pip install awscli
    aws configure
    
  2. Set up agmri credentials (see intelinair_utils.agmri_api for more details)
    echo '[prod]
    admin_username = <YOUR_USERNAME>
    admin_password = <YOUR_PASSWORD>
    ' > ~/.agmri.cfg
    

Installation

Install the latest version

pip install git+https://github.com/intelinair/intelinair-utils

Usage

Start a python shell

from intelinair_utils import AgmriApi

api = AgmriApi('prod')

print(api.get('flights/' + 'M933ZLYGP'))

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

intelinair_utils-1.3.3.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

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

intelinair_utils-1.3.3-py3-none-any.whl (66.9 kB view details)

Uploaded Python 3

File details

Details for the file intelinair_utils-1.3.3.tar.gz.

File metadata

  • Download URL: intelinair_utils-1.3.3.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for intelinair_utils-1.3.3.tar.gz
Algorithm Hash digest
SHA256 2ed66d253ef5f1f26dbccdc9420d87148af73374ad822f8a03a7cf38a9f9cbbe
MD5 4b0fbe89fa3854510c570dd8566bd4fb
BLAKE2b-256 3086e84699b227a866d76f01aa5dc074f46e682dfb624fdcef02e91e4228547e

See more details on using hashes here.

File details

Details for the file intelinair_utils-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for intelinair_utils-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3820ae75581c3fba71e95a055563a350d1698113cc868b34baa358669817ee6
MD5 e4f29960ffe616ef307cdebc325f1f8f
BLAKE2b-256 1b32bdd1806c1d054c384bf4c65419ac5b3bf92eeb3512709ffee44df0111c37

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