Skip to main content

A Fast Async Python backend with a Rust runtime.

Project description

Hypern

Hypern: A Versatile Python and Rust Framework

Hypern is a flexible, open-source framework built on the Axum, designed to jumpstart your high-performance web development endeavors. By providing a pre-configured structure and essential components, Hypern empowers you to rapidly develop custom web applications that leverage the combined power of Python and Rust.

With Hypern, you can seamlessly integrate asynchronous features and build scalable solutions for RESTful APIs and dynamic web applications. Its intuitive design and robust tooling allow developers to focus on creating high-quality code while maximizing performance. Embrace the synergy of Python and Rust to elevate your web development experience.

🏁 Get started

⚙️ To Develop Locally

  • Setup a virtual environment:
python3 -m venv venv
source venv/bin/activate
  • Install required packages
pip install pre-commit poetry maturin
  • Install development dependencies
poetry install --with dev --with test
  • Install pre-commit git hooks
pre-commit install
  • Build & install Rust package
maturin develop

🤔 Usage

🏃 Run your code

You will then have access to a server on the localhost:5005,

# main.py
from hypern import Hypern
from hypern.routing import Route, HTTPEndpoint

class MyEndpoint(HTTPEndpoint):
    
    async def get(self, request):
        return {"data": "Hello World"}

routing = [
    Route("/hello", MyEndpoint)
]

app = Hypern(routing)

if __name__ == "__main__":
    app.start(host='localhost', port=5005)
$ python3 main.py

You can open swagger UI at path /docs

💡 Features

⚡ High Performance

  • Rust-powered core with Python flexibility
  • Multi-process architecture for optimal CPU utilization
  • Async/await support for non-blocking operations
  • Built on top of production-ready Axum web framework

🛠 Development Experience

  • Type hints and IDE support
  • Built-in Swagger/OpenAPI documentation
  • Hot reload during development
  • Comprehensive error handling and logging

🔌 Integration & Extensions

  • Easy dependency injection
  • Middleware support (before/after request hooks)
  • WebSocket support (Comming soon)
  • Background task scheduling
  • File upload handling

🔒 Security

  • Built-in authentication/authorization (Comming soon)
  • CORS configuration
  • Rate limiting
  • Request validation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hypern-0.3.4-cp312-cp312-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.12Windows x86-64

hypern-0.3.4-cp312-cp312-win32.whl (4.4 MB view details)

Uploaded CPython 3.12Windows x86

hypern-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hypern-0.3.4-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl (5.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.12+ i686

hypern-0.3.4-cp312-cp312-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

hypern-0.3.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (9.2 MB view details)

Uploaded CPython 3.12macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

hypern-0.3.4-cp311-cp311-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.11Windows x86-64

hypern-0.3.4-cp311-cp311-win32.whl (4.3 MB view details)

Uploaded CPython 3.11Windows x86

hypern-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hypern-0.3.4-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl (5.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.12+ i686

hypern-0.3.4-cp311-cp311-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

hypern-0.3.4-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (9.1 MB view details)

Uploaded CPython 3.11macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

hypern-0.3.4-cp310-cp310-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.10Windows x86-64

hypern-0.3.4-cp310-cp310-win32.whl (4.3 MB view details)

Uploaded CPython 3.10Windows x86

hypern-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hypern-0.3.4-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl (5.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.12+ i686

hypern-0.3.4-cp310-cp310-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

hypern-0.3.4-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (9.1 MB view details)

Uploaded CPython 3.10macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file hypern-0.3.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: hypern-0.3.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hypern-0.3.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2624e44129dc2b1d8578c29be46a138d30dec1b29b4c0f2f9257a6a18a51141b
MD5 e2ef849c8144816fffd08149e9dafdf5
BLAKE2b-256 a5e912508cd1a00165243bba1ec3542069ff069fa39d209713beb4d836b74f0f

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp312-cp312-win32.whl.

File metadata

  • Download URL: hypern-0.3.4-cp312-cp312-win32.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hypern-0.3.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 547a388d7183e53327f03f1132bafd2743ad84c65a948ac59b8982f3bb943878
MD5 7d0cbf0f78322d41a08b40c6e4ea4f3d
BLAKE2b-256 89265f2afd9f3a62babd75d29ad410392fa2e9fe73ea21024cd446bc57a266bd

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 768765610cf6eb58d422c5c1ae953f900537676cb252f0beb3aa2638cfeb7420
MD5 04983a6cf5625417d7706f66b4cde814
BLAKE2b-256 ebf2aa76cbb818d14fd267c196223350a2321d6285f877225f485d19399a588f

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 7be20907bc81c232c48c923ba081c5f499357e5b4e2abff14b6e273bd50af214
MD5 ce2ec8481cb0ca7ffb6082934a9aab57
BLAKE2b-256 4cacbd0cdd5f0f23e96a868ff63ca761b515d6933fe6e09022c2862af78f084c

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 df5cc749851ab0a021a132a786e9abdf7b96ebd0680e1fc18bbe01f251d48d7f
MD5 77152adabfbdc71d3bfe1562ffb222b0
BLAKE2b-256 a09138b7a1704e25bbcae85a918950fa6d81489d04fc9fa45ee8d0c78e95662e

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 d10440624f439f451314cf2cdcf08ecdf6df87ecbbf27d08a9cbfc47273445f3
MD5 35f02b1fa78811382dcc14b06f11657b
BLAKE2b-256 a21639518ae1da8d9f5204752f3925be863af9352ff459158038e75450677a5f

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: hypern-0.3.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hypern-0.3.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce95f811723e4a7726ea98c791961f65df36ea2cdca5fe2e23c846b59284f1b8
MD5 f6305ce48365f5a9506fb5aba353c060
BLAKE2b-256 efa30616c577736a498cef5946a6961598589e37a5d92cb3c2bac35d011d7899

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp311-cp311-win32.whl.

File metadata

  • Download URL: hypern-0.3.4-cp311-cp311-win32.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hypern-0.3.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a11c7b59eb127018761853ea6e854a352a0ba2cb6c5a6035991e15def63e97f1
MD5 7c8af96b73f35b63f9bff8f15ec33420
BLAKE2b-256 63ce39c95e096fe797e20013067781eb4b2118a093149a28e7f8ac7700a4ffb5

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7c7cfbc342f3008ceedd51a8dd93693a325fda5cdff1b0ee75b907a63b8b8b5
MD5 5489d343238d0120fffb136d9650c570
BLAKE2b-256 fd0ba829c66deeb66f32d6a4d6ccfb9f33f2d6ac8ec258b06ece7542cdb7bd9e

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 d6ec8dedcf609a936d6d8a4d48de8c74e31d6493dd69202be14d35d9328db27c
MD5 fd99b2963594d073eff1527394d53f20
BLAKE2b-256 055b19819bb6a354386a579671746170bedffd16244e384ec55f04da3f30a664

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5224d2abad48b364055a3a4ea4e5624a783d49293ece303b0657450cd3b56fd8
MD5 c104e2a654d93903cb5c1070e753bfde
BLAKE2b-256 7fa2183156a50209557532d33cc68a2e148cbccc249f2b8941f7589cd9cce7cd

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 83570e559ef4733f135da36e860ac0e4a3028cae468479f5be26dac03915309b
MD5 f9e283810eeb848957328e2674ead476
BLAKE2b-256 50d93ac7c9588d8aecbb7d56b9036529685fb27a1d125a7a96ac1d713ab8f336

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: hypern-0.3.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hypern-0.3.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1f37d66092d0dbd5c6dc91e9cd8a0f1734abf3e5a8b0050ff202f2884b23c246
MD5 cbe13366b647e1cf126efadf64b27123
BLAKE2b-256 823da99260e660cf525be716437f19d68a2d69c2eacf7f81e8f12cd9bf66e7a1

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp310-cp310-win32.whl.

File metadata

  • Download URL: hypern-0.3.4-cp310-cp310-win32.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hypern-0.3.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d128c9d361f90488eabbab5381648e93de6368ae0ee66cfa07ff47c5f6138988
MD5 71205427d4cf2484a2f12a48397dcb1e
BLAKE2b-256 86d7cd9502a954d3fea9d1bb150364abf9d61ca581fd7d07dad2ab6249106997

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b314112ede53e8385ec5028bd21bdf8ccae7d945e65ec1cae89c8dc19e97c088
MD5 d67080e7ce200f2c55b76395eb47efa4
BLAKE2b-256 770119c6a376e3bba01a2c49a6011fe47581560ddc9fd9023a2903f936632506

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 4aa93d148c1cc53193359784ac1b83f5f53d74a497d1986814bf549d2231e8c9
MD5 a0845294c28a40cab801003016d290d0
BLAKE2b-256 2259ae2683f24a23ce4162c10871fc28a173113a6e7b96036e3655b3926a68e2

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 82018c744743ef9e1ae076f8ac20946dbcdfcdaceaabac9e97359248c778fb38
MD5 bb77c51399db16ec06f2b61ae532095b
BLAKE2b-256 f5fe21113c321427b6ee5d62d6b577fdb493cb7f958f35386cb4daff4d3bd66b

See more details on using hashes here.

File details

Details for the file hypern-0.3.4-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for hypern-0.3.4-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 388af78a4941a77dfa68ec042b241d86e3ecd20d27664aace8e337a3c2680e6d
MD5 1177bb3e14e71a456eaf7e13d9640b66
BLAKE2b-256 abc7ba3db36fcf246cd1aa1f5d882487b548fad89b9006002fe5dbde75021dfd

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