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 details)

Uploaded Source

Built Distributions

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

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 details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

File details

Details for the file oxide-0.1.0.tar.gz.

File metadata

  • Download URL: oxide-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.12

File hashes

Hashes for oxide-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e9229cb0ca0f38a11be86fc5b6f6baafcf4f837907e83be072cc36ded09d2f9
MD5 3c3f81c32233c29ac7a4887d4d61480d
BLAKE2b-256 8b4d7f0306f253f608029f330534b3279c71e50e72d64757f4b81b22d828afa7

See more details on using hashes here.

File details

Details for the file oxide-0.1.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file oxide-0.1.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

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