Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Documentation Status

Rattle.py is a pure python templating library for html. And this library has no special notation like Django or Jinja. For example:

<html>
    <head>
        <title>Hello, Rattle.py!</title>
    </head>
    <body>
        <h1 class="heading">Hello, Rattle.py!</h1>
    </body>
</html>

The above HTML equals to below Python code with rattle.py:

greeting = "Hello, Rattle.py!"
with html() as html:
  with head():
    with title():
      text(greeting)
  with body():
    with h1(className="heading"):
      text(greeting)

# show as HTML
print(html)

And then, you can also make reusable components by yourself:

def greet(name):
  with node("div", className="greet-wrapper") as component:
    with node("h1"):
      text(f"Hello, {name}=san")
    with node("button", className="ok-btn"):
      text("ok!")
  return component

# and using:
with greet("User"): pass

Enjoy!

Metadata

Release files for rattlepy 0.0.5a1

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

Source distribution (sdist)

Source distribution for rattlepy 0.0.5a1
File Size Uploaded Provenance Actions
rattlepy-0.0.5a1.tar.gz 8.5 kB Without provenance Details for rattlepy-0.0.5a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rattlepy 0.0.5a1
File Interpreter ABI Platform Actions
rattlepy-0.0.5a1-py3-none-any.whl Python 3 none any Details for rattlepy-0.0.5a1-py3-none-any.whl

Total release size: 18.9 kB

Release files / rattlepy-0.0.5a1.tar.gz

Download URL rattlepy-0.0.5a1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c94b0bceca0dd1c75a50cba8d6944fe0f5f25f52d29ca1edf9ebe1469b55f18
BLAKE2b-256 checksum
How to use checksums
4fdf29f14c7213ccb5fafd9b62e6f0b07fd85e7a4313ac7193bab1c4eb271b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.19.4 CPython/3.6.5

Release files / rattlepy-0.0.5a1-py3-none-any.whl

Download URL rattlepy-0.0.5a1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1261199b55807d21f6b69fb7e766c0f4968792a678ebc2e7f66669c71c37e341
BLAKE2b-256 checksum
How to use checksums
f09cf7ec472c1a46893b2d8ca07a3226d3a7bf6a0654c79a781fa7da06e3d748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.19.4 CPython/3.6.5

Security for rattlepy 0.0.5a1

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.

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