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

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-0.31.0.tar.gz (23.1 kB view hashes)

Uploaded Source

Built Distribution

intelinair_utils-0.31.0-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page