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.12.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.12-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toastiepy-0.0.12.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.12.tar.gz
Algorithm Hash digest
SHA256 d58a87643f597db925d5432dc82da6f61923f9b27f3f5c80893844171bdbac2a
MD5 1d9316ea962e23d378c7f05cc7f31996
BLAKE2b-256 18516f9fb33dafae6a5cd305008f38fd060424130548d325eb766fdc39d9fac1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: toastiepy-0.0.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 03fd363ded67fd420da78c36f9cc08b2784c00b7f0e12906816d250c5b54409e
MD5 79e9c5981b52009ba6dd4b5d31af89f3
BLAKE2b-256 cdcc20673e07d124cfc9aca301c633e9658b2c65a7f88904b4f88ec7f530744e

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