pytigon-lib
Pytigon is a full-stack Python/Django application framework designed for building web applications across multiple environments: desktop, web server, Android, and WebAssembly (Emscripten).
This library (pytigon-lib) is the core component of the Pytigon platform, providing:
- Multi-format document rendering — Convert HTML to PDF, DOCX, XLSX, and Cairo graphics
- Indentation-based HTML preprocessor (ihtml) — Write templates in a concise, Python-like indented syntax
- Django extensions — Auto-generated CRUD views, GraphQL integration, custom model/form fields
- Spreadsheet processing — Transform ODF (.ods) and OOXML (.xlsx) spreadsheets
- Virtual filesystem — Unified API for local and Django storage backends
- Task scheduling — Background task scheduling with cron-like patterns
- HTTP/WebSocket tools — REST clients, ASGI bridges, OAuth2 helpers
Installation
pip install pytigon-lib
With optional dependencies:
pip install pytigon-lib[spreadsheet,llvm,plotting,svg]
Quick start
Render HTML to PDF
from pytigon_lib.schhtml.htmlviewer import stream_from_html
html_content = "<html><body><h1>Hello World</h1></body></html>"
pdf_bytes = stream_from_html(html_content).getvalue()
Auto-generate Django CRUD views
from pytigon_lib.schviews import GenericTable
views = GenericTable(MyModel).table('mytable').gen()
Requirements
- Python 3.12+
- Django >= 6.0
License
LGPLv2.1 — see LICENSE
Metadata
Release files for pytigon-lib 0.260920
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytigon_lib-0.260920.tar.gz | 262.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytigon_lib-0.260920-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 551.4 kB
Release files / pytigon_lib-0.260920.tar.gz
| Download URL | pytigon_lib-0.260920.tar.gz |
|---|---|
| Size | 262.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7e4a0ffb27dc4969c8b904bc09ade644100dde70e310a1f2dd36ea323013d52
|
|
BLAKE2b-256 checksum How to use checksums |
aaeb8a7eab5267e90b9b574974616f4f6688961cf27295fed7acb4f19e671df3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pytigon_lib-0.260920-py3-none-any.whl
| Download URL | pytigon_lib-0.260920-py3-none-any.whl |
|---|---|
| Size | 288.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aff4460b435c70ed5db18d432611905c86969b157e43deec85949cb0699c096e
|
|
BLAKE2b-256 checksum How to use checksums |
d55a36cef1c16b74def4fcfa3598df403267967d537bad0e6b5a731de5cf59fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|