Skip to content

A web framework built using python for faster AI powered web app development

Notifications You must be signed in to change notification settings

harishsg99/Oreoweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oreoweb Join the chat at https://gitter.im/Oreoweb/community testBuild Status

Oreoweb is a Python Web Framework built for Developers to integrate and scale AI powered web and API based applications.Oreoweb framework supports web development and API development with inbuilt Database , deep learning library and AUTOML library

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

Check out Oreoweb Docs :https://harishsg99.gitbook.io/oreoweb-do/

Features

  • WSGI compatible
  • Basic and parameterized routing
  • Class based handlers
  • Test Client
  • Support for templates
  • Support for static files
  • Custom exception handler
  • Middleware
  • Deep learning
  • NoSQL DB
  • AutoML
  • Inbuilt templating engine
  • Tor proxy support(Added API)
  • Ngrok support(Coming soon)
  • Request and Response Encryption Support(Coming Soon)
  • Hormonic Encryption(Coming Soon)

Quick Start

Install it:

pip install oreoweb

Basic Usage:

# app.py
from oreoweb import oreoweb

app = oreoweb()


@app.route("/")
def home(req, resp):
    resp.text = "Hello, this is a home page."


@app.route("/about")
def about_page(req, resp):
    resp.text = "Hello, this is an about page."


@app.route("/{age:d}")
def tell_age(req, resp, age):
    resp.text = f"Your age is {age}"


@app.route("/{name:l}")
class GreetingHandler:
    def get(self, req, resp, name):
        resp.text = f"Hello, {name}"


@app.route("/show/template")
def handler_with_template(req, resp):
    resp.html = app.template("example.html", context={"title": "Awesome Framework", "body": "welcome to the future!"})


@app.route("/json")
def json_handler(req, resp):
    resp.json = {"this": "is JSON"}


@app.route("/custom")
def custom_response(req, resp):
    resp.body = b'any other body'
    resp.content_type = "text/plain"

Start:

gunicorn app:app