Skip to main content
Tjamgo

Tjamgo: Python Web Framework built for learning purpose

Static Badge PyPI Version

Tjamgo is a python web framework built for learning.

It's a WSGI framework and can be used with any WSGI application server such as Gunicorn.

Installation

pip install tjamgo

How to use it

Basic usage:

from tjamgo.app import TjamgoApp

app = TjamgoApp()

@app.route("/home", allowed_methods=["get"])
def home(request, response):
    response.text = "Hello from the home page"


@app.route("/about", allowed_methods=["put"])
def about(request, response):
    response.text = "Hello from the about page"


@app.route("/hello/{name}")
def greeting(request, response, name):
    response.text = f"Hello {name}"


@app.route("/books")
class Books:
    def get(self, request, response):
        response.text = "Books page"

    def post(self, request, response):
        response.text = "Endpoint to create a book"


def new_handler(req, resp):
    resp.text = "From new handler"


app.add_route("/new-handler", new_handler)


@app.route("/template")
def template_handler(req, resp):
    resp.body = app.template(
        "home.html",
        context={"new_title": "tjamgo", "new_body": "Best framework"}
    )

Metadata

Release files for tjamgo 0.1.7

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

Source distribution (sdist)

Source distribution for tjamgo 0.1.7
File Size Uploaded Provenance Actions
tjamgo-0.1.7.tar.gz 7.2 kB Without provenance Details for tjamgo-0.1.7.tar.gz

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / tjamgo-0.1.7.tar.gz

Download URL tjamgo-0.1.7.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fe3632c40f055e2a4e29ffc7c9da964da0621538a1c505652affd655728f9b5c
BLAKE2b-256 checksum
How to use checksums
6190bee1117a4ad6fe1d55cc994556518a2dcf72964f74c3d29ed91547b506ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / tjamgo-0.1.7-py3-none-any.whl

Download URL tjamgo-0.1.7-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
714f57b1d6ea698f28296918019e8bcdda2e160fedb570358715b3509e15ba0d
BLAKE2b-256 checksum
How to use checksums
5ce2247b276ce49b0500918d2230854e2986bd23e2e62aa2e1ccf46017382230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for tjamgo 0.1.7

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