Skip to main content

ToastiePy is an express like python based http server framework.

Project description

ToastiePy

git | pypi

ToastiePy is an express like python based http server framework.

Toastie (The Cat)

Installation

pip install toastiepy

Usage

# main.py
import toastiepy

app = toastiepy.server()

@app.get("/")
def index(req, res): # function name does not matter 
	res.send("Hello from Toastiebun")

if __name__ == "__main__":
	asyncio.run(app.listen("127.0.0.1", 8000))

Hello from TostiePy

Development

# Unit Tests
python3 -m unittest # Not Implemented Yet

python3 example.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

toastiepy-0.0.14.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

toastiepy-0.0.14-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file toastiepy-0.0.14.tar.gz.

File metadata

  • Download URL: toastiepy-0.0.14.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for toastiepy-0.0.14.tar.gz
Algorithm Hash digest
SHA256 d3f7f4337f043a12fce453910a4b6be7a97adef9a4b96fe7a28f92d3a7b3e75b
MD5 b0eecbaf262b7d525a235abd8a839f82
BLAKE2b-256 4655c69b7b259af41c9804c826a18ec65fa5287dcd1ee7231413fa6705e0c883

See more details on using hashes here.

File details

Details for the file toastiepy-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: toastiepy-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for toastiepy-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 8b075ad2572accddbdad1df6cfae68bea38ff39cdee4b0c6069fb33f90a8639e
MD5 436ce53be73e2d5aaa157a5104591bcf
BLAKE2b-256 78d3cd50b854a7c3430fa71aa9941f0570cb53087a5a8fa5a35d0357117241a4

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