A package to easily download and manipulate the lcss case datasets
Project description
A wrapper around the case-repository API currently hosted at lcsscaseapi.duckdns.org (if this changes you need to chang the domain name in lcsscaseapi/constants.py
).
Any use of the wrapper begins by initializing an LCSSClient object (defined in lcsscaseapi/client.py
). This requires supplying a valid username and password. After this, requests can be made using methods of the object, and will return objects of types specified in lcsscaseapi/types.py
.
Warning: Do not write the username and password supplied to the LCSSClient object in code that is committed to a repository. Fetch these details instead from environmental variblaes. Otherwise anyone reading your repository can access the API
Testing uses pytest and requests-mocker and tests are located in the tests/
directory.
Publishing to Pypi
To publish new versions, change the version number in setup.cfg, generate a new distribution and upload it to twine. See here: https://packaging.python.org/tutorials/packaging-projects/
To be precise, run python3 -m build
. Then run twine upload dist/*
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
Built Distribution
Hashes for lcsscaseapi-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1240f4db5be133de92dc366819c70d656204f8c5a6bc448aa5244c2b0bf0a22b |
|
MD5 | 674ec6b78c85dbe58b0208887736eb80 |
|
BLAKE2b-256 | 5fcd5783cdf8e16829701ab0445ccc00431f616f9abc5d1b50d7721f9cbabc19 |