Skip to main content

A dynamic, ORM-friendly HTTP framework built on Python sockets

Project description

# Live_rocket 🚀

A lightweight, custom HTTP server framework written in Python.

Designed to help you build simple web servers or REST APIs without external dependencies.


## 🔧 Features

- Minimal and dependency-free HTTP server

- Supports routing, request parsing, response handling, Build in OMR

- Multithreaded request handling

- Educational and customizable


## 📦 Installation

You can install Live\_rocket using pip (after uploading to PyPI):

pip install live-rocket


example:
from live_rocket import live_rocket
from ObjectModel import Model

class MainModel(Model):
    print()

def callable_(req):
    print("Hello")
app=live_rocket(middlewares=[])

@app.get('/',middlewares=[callable_])
def hello(req,res):
    res.render("index.html")
@app.get('/edit/<name>')
def redirect(req,res,name):
    print(name)
    res.redirect(hello)   
@app.get('/upload/<file>') 
def hell(req,res,file):
    print(file)
    res.send({file})
    
if __name__ == "__main__":

    server = app.run('localhost', 8000, app)

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

Live_rocket-0.1.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Live_rocket-0.1.2-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file Live_rocket-0.1.2.tar.gz.

File metadata

  • Download URL: Live_rocket-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for Live_rocket-0.1.2.tar.gz
Algorithm Hash digest
SHA256 190ec5893fafdd2634abcc6f8febbc83f76f5528e0cb208f133f1ff958e5bfc8
MD5 8a89899714d5454f5577998170667c7a
BLAKE2b-256 93938e33a8006aa77dba8afa42df10557bc3f460d9c095c2b17d061ec27d8473

See more details on using hashes here.

File details

Details for the file Live_rocket-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: Live_rocket-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for Live_rocket-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef18b250e4434de65becf54552cfb95cfcee731eeb4275dd6b2af3f6478f5eb0
MD5 83067c868e62dc4df18216209746f27d
BLAKE2b-256 e22a188b6ca4fd1b4293010e4597bb1c9d5a06a692e01cd17a1d5592a88fc40c

See more details on using hashes here.

Supported by

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