Skip to main content

Retic

Retic is a framework for Python.

Designed to attack the following points in software development:

  • Learning curve: Python has a short learning curve.

  • Hosting: Quick and easy configuration on the servers.

  • Artificial intelligence: The most important libraries are written in Python.

Install a Python rest api framework

Install and update using Pip:

# Get the latest stable release of Retic
pip install -U retic

Simple rest api example in Python

# app.py

"""Main app"""

# Retic
from retic import Router, App as app

"""Define Router instance"""
router = Router()

"""Define paths"""
router \
    .get("/", lambda req, res, next: res.ok({"msg": "Hello world! - HTTP GET"})) \
    .post("/", lambda req, res, next: res.ok({"msg": "Hello world! - HTTP POST"})) \
    .put("/", lambda req, res, next: res.send({"msg": "Hello world! - HTTP PUT"})) \
    .delete("/", lambda req, res: res.send({"msg": "Hello world! - HTTP DELETE"}))

"""Import router to App"""
app.use(router)

"""Create web server"""
app.listen(
    hostname="localhost",
    port=1801
)

Want to help?

Do you want to send an error, contribute some code or improve the documentation? Great, you can do it! Read our guidelines to contribute and then review one of our issues in the hotlist: community-help.

License

MIT

Metadata

Release files for retic 0.1.2

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

Source distribution (sdist)

Source distribution for retic 0.1.2
File Size Uploaded Provenance
retic-0.1.2.tar.gz 14.9 kB Without provenance Details

Release files / retic-0.1.2.tar.gz

Download URL retic-0.1.2.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
80d88106fa064a469ce0ffe21893d4484f1ed7be55dd9aba2e89de87b2692903
BLAKE2b-256 checksum
How to use checksums
2b8002288102a697f76e33ac33dd933875317f73afa485b4d6cb33bdd8fbd84b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

Security for retic 0.1.2

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