Skip to main content

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


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)

Uploaded Source

Built Distributions

oxide-0.1.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (870.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

oxide-0.1.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (870.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page