Pytigon library — Python/Django application framework with multi-format rendering and indentation-based HTML preprocessor
Project description
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.main import html_to_pdf
html_content = "<html><body><h1>Hello World</h1></body></html>"
with open("output.pdf", "wb") as f:
f.write(html_to_pdf(html_content))
Auto-generate Django CRUD views
from pytigon_lib.schviews import GenericTable
GenericTable(MyModel).register()
Requirements
- Python 3.8+
- Django >= 6
License
LGPLv3 — see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytigon_lib-0.260705.tar.gz.
File metadata
- Download URL: pytigon_lib-0.260705.tar.gz
- Upload date:
- Size: 240.7 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cef651bb9daf09a2d6b06240b1a5d62a724a1de16adffb2a1d317a9c1ae3343
|
|
| MD5 |
4c40fe105c0a631bbe5c5c7db5dc7244
|
|
| BLAKE2b-256 |
145ade2c1861449982566829fa83c67ad96d610e4a7fa631cbea890eedbb463b
|
File details
Details for the file pytigon_lib-0.260705-py3-none-any.whl.
File metadata
- Download URL: pytigon_lib-0.260705-py3-none-any.whl
- Upload date:
- Size: 261.0 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74d7dc37d0c742bfe8d3d9f97e22b02a7108877687119fab05ff7139d9865900
|
|
| MD5 |
d8935f0abb4c3c686ae3c030f54f71b5
|
|
| BLAKE2b-256 |
ebcee64e7e786ae86bbc32c9adeb1c14b7186093863d7e001df1795fc1b5370d
|