Python SDK/Library for IAP
Project description
libiap
Python SDK/Library for IAP – https://umccr.github.io/libiap/
TL;DR
Install through pip like so:
pip install libiap
Export IAP base URL and auth token:
export IAP_BASE_URL=<baseUrl> export IAP_AUTH_TOKEN=<tok>
Somewhere in your Python code:
from libiap import libgds for file in libgds.list_files(volume_name='my-gds-volume-name'): print(file)
More examples/tutorials available at User Guide
Development
Setup Python virtual environment e.g. python -m venv venv and, then:
pip install '.[test,dev]' .
Run unit test suite:
python -m unittest
Or run with pytest:
pytest
Run individual test case:
python -m unittest tests.test_libgds.LibGDSUnitTests.test_list_files_pagination
Pilot run or Integration Test:
export IAP_BASE_URL=<baseUrl> export IAP_AUTH_TOKEN=<tok> python pilot.py
See Developer Guide for more notes
Documentation
Use Sphinx and reStructuredText
Document sources are in sphinx/source/*.rst
Build doc like so:
(cd sphinx && make clean) (cd sphinx && make html)
Browse doc locally in sphinx/build/html/index.html
Build for github page:
(cd sphinx && make github)
If everything looks good, make all docs:
make doc
License
MIT License and DISCLAIMER
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.