Open Permissions Platform Identity Library
Project description
Introduction
This is a Python library used for creating unique hub keys used within the Open Permissions Platform.
Dependencies
This has been tested using
Ubuntu 14.0.4
Python 2.7.10
Running tests
Setup
Prior to running any test the python pip dependencies need to be installed. Run the following command to do this
make requirements
Unit tests
To run the unit tests run the following command
make test
Logs will be found at tests/unit/reports
Behave tests
To run the behave tests run the following command
make behave
Logs will be found at tests/behave/reports
Documentation
To generate documentation, run the following command:
make docs
Installation
python setup.py install
Generate a hub key
Code
from bass.hubkey import create_hub_key
hub_key = generate_hub_key(
resolver_id='openpermissions.org',
hub_id='hub1',
repository_id='f8e3968eb99f48d6b9f84340efb64d47',
entity_type="asset"
)
print hub_key
Output
https://openpermissions.org/s1/hub1/f8e3968eb99f48d6b9f84340efb64d47/asset/79fa0ce2e082467cad24703dcfdf7317
Documentation
Additional code documentation can be found at http://bass.readthedocs.org/en/stable/
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
opp-bass-1.0.10.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for opp_bass-1.0.10-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad55c517ce0f994ced81f0502a76bfbadab8e74942bad4c50b31801d04113e1 |
|
MD5 | 0250b88452d992a5596592d893bd8141 |
|
BLAKE2b-256 | 122ce288eba59d3470ee95f484203c9eb8f0cc90ac26b2f5a781fd246562eafa |