Skip to main content

pantra

Python Full-stack Framework

Inspired by Svelte, React, Django, Web2Py and Zen of Python

https://raw.githubusercontent.com/zergos/pantra/master/docs/source/images/logo_cutted_mini.png

What is it?

Component based Web framework with specific features: 1. HTML-like definition with SCSS styling 2. Web Socket protocol for DOM processing 3. Python language for backend and frontend 4. Portable database schema compatible with ORM (Pony, Django, etc) 5. I18n in gettext-compatible style

<h1>Choose your destiny</h1>
<div class="list">
{{#for destiny in destiny_set}}
  <button type="button" on:click="choose" data:value="{destiny}">{{destiny}}</button>
{{/for}}
</div>
<h2 class="verdict">!{{chosen}}</h2>

<style type="text/scss">
.list {
    display: flex;
    flex-flow: row;

    > button {
        padding: 0.3rem 1rem;
    }
}
.verdict {
    font-weight: bold;
    font-style: italic;
}
</style>

<python>
from pantra.ctx import *

chosen: str = _('Make a choice...')
destiny_set = ('Good', 'Evil', 'Rich', 'Sexy')

def choose(node):
    ctx['chosen'] = node.data.value
</python>

Why another framework?

I need flexible, simple and rich tool to perform modern dynamic Web application.
  • I want power of NodeJS, but based on Python language.

  • I want to change the HTTP mass query conception to Web Socket’s constant connection.

  • I want to manipulate solid chunks of business logic as components (MVC joined in one file).

  • I want to deal with data most natural way, without SQL usage.

  • I want advantages of asynchronous programming, but get away coloring with async.

  • I want it made simple. Enough to teach newbies within the shortest learning curve.

  • I want ability to make it scalable and globally usable.

  • I need a perfect tool to build startups as fast as possible.

Installation

It still under active development and does not exist as special PYPI package. However, feel free to download and make your own Apps experience.

Execute:

pip install pantra

or use git:

pip install git+https://github.com/zergos/pantra.git

Install core components:

pantra get_boilerplate

Everything is ready to start now:

python pantra.py run

Now, you can open your browser and check demo app by local address <http://localhost:8005/demo>

Metadata

Release files for pantra 1.5.6

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

Built distribution (wheel)

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

Release files / pantra-1.5.6-py3-none-any.whl

Download URL pantra-1.5.6-py3-none-any.whl
Size 132.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31a3db1a27887c41119dec9151c5bd5b84b6da1dc9d3ed2c54d7b4f7fef37717
BLAKE2b-256 checksum
How to use checksums
82c550921dbf6431203d604183b505363cebdb0604d220cce4cb7f2d266ff4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for pantra 1.5.6

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