Skip to main content

Fastest, easiest and simple web framework for Python.

Project description

Retic.py

Fastest, easiest and simplest web framework for Python.

  • Building secure and fast REST services with Python
  • A easy Python web framework for beginners.
  • Simple integration with frontend frameworks to deploying a machine learning model in a modern web application.

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

# Retic
from retic import Router, App as app

router = Router()
router \
    .get("/", lambda req, res, next: res.ok({"msg": "Welcome to Retic ^^"})) \
    .get("/example", lambda req, res: res.ok({"msg": "Simple rest api example in Python"})) \
    .get("/withoutres", lambda req, res: print("REST api Python example"))

app.use(router)

app.listen(
    use_reloader=True,
    use_debugger=True,
    port=1801,
    hostname="localhost"
)

Quickstart

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retic-0.0.15.tar.gz (21.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page