Skip to main content

Amantadine is a framework for rendering HTML on the server

Project description


Amantadine is a framework for rendering HTML on the server

It is not ready for production.


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


$ pip install -U amantadine


import amantadine

pages = amantadine.Pages(
    body=[amantadine.Record("h1", [amantadine.OnlyText("Amantadine")])],
        amantadine.Record("meta", attrs={"charset": "UTF-8"}),
        amantadine.Record("title", [amantadine.OnlyText("Amantadine")]),


After rendering:

<!DOCTYPE html>
<html lang="en">

    <meta class='' charset=UTF-8></meta>
    <title class=''>Amantadine</title>

    <h1 class=''>Amantadine</h1>



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
🎍 Build Production .
All Chunk:
docs/index.html 50722B



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amantadine-0.0.4.tar.gz (3.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page