Authentication library and wrapper for NPAW Youbora API.
This module contains:
- `YouboraAuth` - custom authorisation provider for Python Requests, check `example_auth.py`
- `YouboraClient` - Wrapper which utilises Swagger definition to validate requests
against NPAW Youbora before executing Request, check `example_client.py`
## Getting started:
- check out included `example_auth.py` and `example_client.py`
- but, basically this gives you:
```python
import requests
from youbora import YouboraAuth
query = {}
response = requests.get('https://api.youbora.com/:system_code:/data',
params=query,
auth=YouboraAuth("secret", "system_code")
```
## Future considerations (wish list):
- to extend library with _helpers_ such as:
- More Swagger API validations;
- Youbora Query Builder, interactive perhaps ?
- Youbora Filter Builder, interactive perhaps ?
- Response formatter for quick report/graph generations in various formats
## Good to know
- as Youbora Swagger definition is available only via closed access Developers portal,
it is not included in this repository in order to respect NPAW approach to their documentation.
- This code base (examples and config-sample.py) assumes that swagger is available within base directory as swagger.json
- both example_x.py assumes that you have copied config-sample.py to config.py and have provided details there.
- you can very easy use any other config approach - sysarg, env, AWS KMS, etc.
Metadata
Release files for PyYoubora 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyYoubora-0.2.tar.gz | 15.9 kB | Without provenance | Details for PyYoubora-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyYoubora-0.2-py2-none-any.whl | Python 2 | none | any | Details for PyYoubora-0.2-py2-none-any.whl |
Total release size: 19.9 kB
Release files / PyYoubora-0.2.tar.gz
| Download URL | PyYoubora-0.2.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7f01b3f520261b3e6a24eff8147adb80368c3d8a9b681bf0d4166b45d6493c8
|
|
BLAKE2b-256 checksum How to use checksums |
2922b7c0e4279d58633919725b9d29f6e203b6742e6c85dfbd2e1bd39158e4f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10
|
Release files / PyYoubora-0.2-py2-none-any.whl
| Download URL | PyYoubora-0.2-py2-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
bf13bc908dd2ec1d3f0fd19aa8fcd17b5bd17709e604831a4f882e6da1acc305
|
|
BLAKE2b-256 checksum How to use checksums |
32934c7293a1e7e3c0e6366b4fbb7b32c309d7ab9f278b1ba2a3f226c2ac590b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10
|
Security for PyYoubora 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.