Skip to main content

Lightweight HTTP server framework

Project description

PyDobby

Lightweight HTTP server framework built on Python's socket programming using TCP.

Features

  • Routing
  • Path parameter parsing
  • Query parameter parsing
  • Middleware system for request/response processing

Installation

pip install pydobby2

Quick Start

from pydobby import PyDobby, HTTPRequest, HTTPResponse

app = PyDobby()

@app.get("/hello/<name>")
def hello(request: HTTPRequest, name: str) -> HTTPResponse:
    return HTTPResponse(body=f"Hello, {name}!")

if __name__ == "__main__":
    app.start()

Development

  1. Clone the repository:
git clone https://github.com/yourusername/pydobby.git
cd pydobby
  1. Install in development mode:
pip install -e .
  1. Run the example:
python examples/basic_app.py

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

pydobby-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

pydobby-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pydobby-0.1.0.tar.gz.

File metadata

  • Download URL: pydobby-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.16 Linux/5.15.0-127-generic

File hashes

Hashes for pydobby-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57327a9e7504aa01140ad6d85c176bfababf9735835d813e207b0a7b53ed4561
MD5 a1632bf61d9160770290f3ac9c042be0
BLAKE2b-256 3c4a8a9fb0237cc8f99e9ee0ecdabd5d770549f734a60fbe23380760177c70d4

See more details on using hashes here.

File details

Details for the file pydobby-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydobby-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.16 Linux/5.15.0-127-generic

File hashes

Hashes for pydobby-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b2a788f10fda08775d894a1de40eadc58579ffbb096a15b327765dc03189771
MD5 e28d651a0e5d492ed5f268b081b9dbda
BLAKE2b-256 7caf058a29f7ea6ef02f6362a5fac815cf98a75f59de25945a7f53c9e6fba2c6

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