No project description provided
Project description
Oxide
A Python HTTP server in Rust
Example
import oxide
import asyncio
server = oxide.Server()
class Echo(oxide.Route):
async def setup(self):
pass
async def get(self, param: str):
return oxide.Response(body=param, status=200)
server.add_route('/echo/:param', Echo)
async def main():
await server.start("127.0.0.1:8001")
asyncio.run(main())
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
oxide-0.1.0.tar.gz
(5.7 kB
view hashes)
Built Distributions
Close
Hashes for oxide-0.1.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b40403af3c732709a9eeaf8f3198fd63eee3e8d8acf839189a679d24731fffe3 |
|
MD5 | 4c623aa2a936a865bb299e923d49971a |
|
BLAKE2b-256 | 657fb6bdeca288cea0e7a508166b10fbe0ecfac695e809400a65a9ba21b2d8dc |
Close
Hashes for oxide-0.1.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abf56d87b1f2e08ff87759ae09b3280dcdae6366d340b3422030f241e3bc473f |
|
MD5 | 670ade3997503c7555fcba46982a4d0c |
|
BLAKE2b-256 | cd43f2d22e93065e3641894a5c1e04ce7ec9c50155a8a93abeefb334d3046331 |