Amantadine
Amantadine is a framework for rendering HTML on the server
It is not ready for production.
Introduce
The heavy HTML, CSS and JS files are rendered into independent HTML files, and asynchronous data collection through network requests is supported, and functions are defined as parameters. Only render CSS tags used in HTML to reduce volume
Install
$ pip install -U amantadine
Usage
import amantadine
pages = amantadine.Pages(
body=[amantadine.Record("h1", [amantadine.OnlyText("Amantadine")])],
head=[
amantadine.Record("meta", attrs={"charset": "UTF-8"}),
amantadine.Record("title", [amantadine.OnlyText("Amantadine")]),
],
)
print(amantadine.renderDoc(pages))
After rendering:
<!DOCTYPE html>
<html lang="en">
<head>
<meta class='' charset=UTF-8></meta>
<title class=''>Amantadine</title>
</head>
<body>
<h1 class=''>Amantadine</h1>
</body>
</html>
Build
Not only that, you can also render large web projects. This reduces the redundancies of the top and bottom columns, which you can learn from the examples in the /example folder in the directory
$ python main.py
🎍 Build Production .
All Chunk:
docs/index.html 50722B
License
MIT LICENSE
Metadata
Release files for amantadine 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amantadine-0.0.4.tar.gz | 3.8 kB | Without provenance | Details for amantadine-0.0.4.tar.gz |
Release files / amantadine-0.0.4.tar.gz
| Download URL | amantadine-0.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5aeeac3f7105d64316750a8115d5500717e3d70eb0ad6cda7cf8c3055dc0bc3
|
|
BLAKE2b-256 checksum How to use checksums |
565ee6211f9fe2e36a9467fb4902de89f82863fb03a9d414b8404bb984c82a5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Security for amantadine 0.0.4
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.