Skip to main content

EZTea Web Framework

# use falcon
pip install eztea[falcon,mysql,migration,testing]

# use django
pip install eztea[django,postgresql,testing]

Usage

Falcon Example

from validr import T

from eztea.falcon import Application, ResponderContext, Router

router = Router()


@router.get("/")
def hello(
    ctx: ResponderContext,
    name: str = T.str.default("world"),
) -> T.dict(hello=T.str):
    return {"hello": name}


app = Application()
app.include_router(router)

Django Example

from validr import T

from django.http import HttpRequest
from eztea.django import Router

router = Router()


@router.get("/")
def hello(
    req: HttpRequest,
    name: str = T.str.default("world"),
) -> T.dict(hello=T.str):
    return {"hello": name}


urls = router.to_url_s()

Testing Example

from eztea.falcon.testing import WebTestClient
from eztea.django.testing import WebTestClient
from myapp.wsgi import application

def test_hello():
    client = WebTestClient(application)
    response = client.get('/')
    assert response.status_code == 200
    assert reesponse.json() == {"hello": "world"}

Metadata

Release files for eztea 0.1.12

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

Source distribution (sdist)

Source distribution for eztea 0.1.12
File Size Uploaded Provenance
eztea-0.1.12.tar.gz 20.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 48.2 kB

Release files / eztea-0.1.12.tar.gz

Download URL eztea-0.1.12.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2b19db4e8209eca0f5306c0867acc71600c9fe08a8541f8823634238cda10dbe
BLAKE2b-256 checksum
How to use checksums
2d7fe4ed06c7ffb88a99470277e82c40e27dd3fd10235bda0ab9f76c41f9d9b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.19 Darwin/23.4.0

Release files / eztea-0.1.12-py3-none-any.whl

Download URL eztea-0.1.12-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
906c88f7d61acc222c49fea8e53cd4197ff11cb74d35aa0fb3efdf59b38fe5ba
BLAKE2b-256 checksum
How to use checksums
822551bfa1a3eb65a49864704b4eea9937cca6f20fd6c2b315cb1d2fa2715a3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.19 Darwin/23.4.0

Security for eztea 0.1.12

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.

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