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
- Set up aws credentials. If you don't have credentials ask David Wilson
pip install awscli aws configure
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for intelinair_utils-0.31.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12fc5274dd28e0799f45fcc184e9913f6ed9dc44ac2561cfe89f21416e0a3a48 |
|
MD5 | 8c4644650c2e02f1e5276ecb20046750 |
|
BLAKE2b-256 | 9dbb409811e106bb8059779cdfdc79c963cf064ba334429bf103dc24a00d5c49 |