Skip to main content

zlic-utils

A library for shared classes and functionalities in the ZLiC project.

Installation

pip install zlicutils

Installation for development purposes

pip install -e .   

Tests

python -m pytest tests/

Usage

create Server with tun access

from fastapi import Depends

from zlicutils.server import Server
from zlicutils.tan import TanManager

server = Server(host='0.0.0.0', port=8888)

tan_manager = TanManager()

server.router.add_api_route("/api/{id}", _api methods=["GET"])

server.router.add_api_route("/tan", tan_manager.tans_as_html, methods=["GET"])
server.router.add_api_route("/api/verified/{source_id}", self._api_verified_, methods=["GET"], dependencies=[Depends(tan_manager.verify_tan)])

server.start()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors and acknowledgment

License

GNU GPLv3

Metadata

Release files for zlicutils 1.1.0

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

Source distribution (sdist)

Source distribution for zlicutils 1.1.0
File Size Uploaded
zlicutils-1.1.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zlicutils 1.1.0
File Interpreter ABI Platform
zlicutils-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / zlicutils-1.1.0.tar.gz

Download URL zlicutils-1.1.0.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b6678f02335b7769ae1e965229e487e7aed0fb51192716ff26eba371c9bc16e9
BLAKE2b-256 checksum
How to use checksums
12b602b6b050176c6ca045ef52b84dfd2f10ca682f2a1acc69f4afb9ee0c301b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / zlicutils-1.1.0-py3-none-any.whl

Download URL zlicutils-1.1.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccbf18518a3960b0841bf11db564630b1687f3d3d2e217ad29b42cf80feb4e3d
BLAKE2b-256 checksum
How to use checksums
c6d66e0fe9ef6313283ec4adc9ad938e986700a0ed29c1356613e8554d6c43a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

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