Skip to main content

Authentication library for amazing Python requests library against NPAW Youbora API.

Project description

## PyYoubora

Authentication library and wrapper for NPAW Youbora API.

This module contains:
- `YouboraAuth` - custom authorisation provider for Python Requests, check ``
- `YouboraClient` - Wrapper which utilises Swagger definition to validate requests
against NPAW Youbora before executing Request, check ``

## Getting started:
- check out included `` and ``
- but, basically this gives you:

import requests
from youbora import YouboraAuth

query = {}

response = requests.get('',
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 assumes that swagger is available within base directory as swagger.json
- both assumes that you have copied to and have provided details there.
- you can very easy use any other config approach - sysarg, env, AWS KMS, etc.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyYoubora, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size PyYoubora-0.2-py2-none-any.whl (4.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size PyYoubora-0.2.tar.gz (15.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page