Skip to main content

Python SDK/Library for IAP

Project description

PR Build Status Badge

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

MIT License

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

libiap-0.1.0.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

libiap-0.1.0-py3-none-any.whl (17.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