Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

utvsapitoken

A little Python class that allows to check a token against ČVUT OAAS and get s personal number form Usermap API. Used in ÚTVS API.

Usage

from utvsapitoken import TokenClient
client = TokenClient()
info = client.token_to_info('token')

You can provide custom URIs for the constructor:

client = TokenClient(check_token_uri='http://localhost:8080/token',
                     usermap_uri='http://localhost:8080/user'))

This comes with a fake OAAS that can be used for various testing, including the tests of this very project. To start the fake server, just run:

from utvsapitoken import fakeserver
fakeserver.serve_forever(port=8080)

In order to run the testsuite, no need to start the server, just run:

PYTHONPATH=. py.test-3 -v --port 8080

You can omit the port argument to use the default (8080).

This requires Python 3 and requests.

License

This software is licensed under the terms of the MIT license, see LICENSE for full text and copyright information.

Metadata

Release files for utvsapitoken 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utvsapitoken 0.0.2
File Size Uploaded Provenance Actions
utvsapitoken-0.0.2.tar.gz 4.7 kB Without provenance Details for utvsapitoken-0.0.2.tar.gz

Release files / utvsapitoken-0.0.2.tar.gz

Download URL utvsapitoken-0.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8f37456bbc812842d6efb6fc1fc8f92c01de6c53c44b4002681fd697807052c0
BLAKE2b-256 checksum
How to use checksums
afaf4d43a2ec29c96b5649b0e3ccd610f6d713f66d5d50f36ca1560cce930ca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for utvsapitoken 0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page