ToastiePy is an express like python based http server framework.
Project description
ToastiePy
ToastiePy is an express like python based http server framework.
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))
Development
# Unit Tests
python3 -m unittest # Not Implemented Yet
python3 example.py
Project details
Release history Release notifications | RSS feed
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.13.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toastiepy-0.0.13.tar.gz.
File metadata
- Download URL: toastiepy-0.0.13.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f2c747739a34459110778b926f2a5d6f6cd07f277d6c39091b2d7fad35f5a8
|
|
| MD5 |
1cb10fe43b1d01eb5f93a6329ae96863
|
|
| BLAKE2b-256 |
0b173038bf79807f66ee3a6b5dbdf82193070071ac63767a6ced7b484b4c0e7b
|
File details
Details for the file toastiepy-0.0.13-py3-none-any.whl.
File metadata
- Download URL: toastiepy-0.0.13-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909d0610cc88edfdc0659fc2acb50dc6182522a875d069e1568c9b9a381ed574
|
|
| MD5 |
888aaa224ca4ef72196f3abe67ea4b1e
|
|
| BLAKE2b-256 |
4508ecc49872f23e8fc2162a4e9234de5c617d10b0356fa823143d125f075d97
|