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.7-cp312-cp312-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

hypern-0.3.7-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.7-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.7-cp312-cp312-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

hypern-0.3.7-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.7-cp311-cp311-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

hypern-0.3.7-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.7-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.7-cp311-cp311-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

hypern-0.3.7-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.7-cp310-cp310-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

hypern-0.3.7-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.7-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.7-cp310-cp310-macosx_10_12_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

hypern-0.3.7-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.7-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: hypern-0.3.7-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.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 37da7b4ec2c54ae6e7c3c5509ed8421570d2e8ecf468d9e6f809283a02b8266e
MD5 6cfd1ad1b3c0dee5b7c6cbb5d10b47b5
BLAKE2b-256 11225f698ba0cd561581d879e74aa7396c0319ac81b4d623ed34f3e55d51e7e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.7-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.7-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dce3ffc0a0c80807e300493d1b86b0bce10025bfb6131f4e4e9a94afd11ef32c
MD5 4ca7928f0f68f4e80a35ca21880a132b
BLAKE2b-256 bebfd811a6817476feae930d445e487c7d52ce6ae80227667a6f01177e838f78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 48bc06fede3a273a9d7eafd8ce640442f25edbf541d6a7ded07e6d87c6b7036d
MD5 58869cd3a860fd0693df50c9dc2a879c
BLAKE2b-256 a0431bb7eac19f124ac71bf0bb05c373d28eb1b53e1685b910e0287c6acceb16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 c0070eaaef2852f87cd6f8474755ddeefe0538480ca7b40e0461a8f1ddd38b05
MD5 ad1036de4d7e347e30519968bc40cdc8
BLAKE2b-256 27c8e76c5b0f212453f2c04a3db652369fcefec6a648801d701129ba8dcdffe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e6f3e1176b4caf2c568920d5ccc36c99de8a25552b5adb1e9a8105a9ad04d94b
MD5 a806511e2ff31dd1e64748f7e9545272
BLAKE2b-256 fd8d2fc922181c87b0569d4b2bba5df7b383fd112b0bb320085d760fc1c4118d

See more details on using hashes here.

File details

Details for the file hypern-0.3.7-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.7-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 3711e0b787440fd7464bd510c3aa35f0e2f2203f0c6d3126a1386632bf5f61de
MD5 6156253d1db9c80faff4454352d0003a
BLAKE2b-256 ba9c104948c9470d88263c04a840bdac40622079cefd0efb8222eac12b4e0a03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.7-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.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f316f4177b1496fe66f3d0e24cedca6fc9b71f6ff434741d31905399783c5b01
MD5 a5d7c851570a1f81f823f4ff610e367d
BLAKE2b-256 e22a10d4db96fa4647000f612be89b4043856fc6c87a45f380ddb9eb9ea0091b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.7-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.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bd26a8d057a9e3e17055269285f882819d616cc56c319dd14e7b2f837a95c270
MD5 ddb223b0726b0ef0ca0841f537e62ccc
BLAKE2b-256 dce01aa90da6cbedd5ca99ae26fa6ba5294a345f1a736fa9375b648610e804fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 995046cf5abbf178f51d57bd4c5767a66d89481951912e534ee4be1d2ff603cb
MD5 696c104a482e35c3d252f52746cafad7
BLAKE2b-256 2b4ecdbfce6eb1b99da568b5d6a404cfeec3bfacbdc1549262afad7d3ac48a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 8f8faaf168009bf6da3f757a4c12d96ca4cfa8164085161ad6d47beeff96922d
MD5 33616787955335ff808cd5d8587f952d
BLAKE2b-256 c93eef986c5231a3b357230c71dd5ff28579979bf412da72a6293e28ed1fdd9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4edeeff5309c9faa7f2a1b6178e126a3ae8ea10bfcbe59f14619d1f968ef1e8b
MD5 28d6ca6e9bcdb03d12a396e2815ee53f
BLAKE2b-256 f28c2effa426c057a638c4ceaa20ac3c68958983aa3bc198471016a3128802bd

See more details on using hashes here.

File details

Details for the file hypern-0.3.7-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.7-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 12251e54175b246c355cb5dcd33880e552b3224ddf423224cb6e2a57568220e2
MD5 4244691e7abc6df53bc074a4549f4f83
BLAKE2b-256 1b67e266c9f5429d3a3aca9a1e14d4a904ca56d53c9a250c2f183f42844ba705

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.7-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.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0e91e25edca3ad33b83fefb3c2971b4a214e5201903f42c7ac445af57f593fe7
MD5 cfd4a6486f6424f9c262368a471350c9
BLAKE2b-256 8dc84f7eb36b4bcfc7689dd937f69979e24fb1707b49b7f5f0a7d901ca0d4433

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.7-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.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 52674068de6515765278bdf1fb376d4f82e4851ed10fba360c083743ad1c0f6f
MD5 0c526092f2ed534bd189bf96112fa800
BLAKE2b-256 706ef00e51207af2175d0e49167ab7ae2e635c42adcbdd6eaef1513dc0d8a301

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 807fa4bdea70cf42bc3a2d632eae42452654518aa0fd99657eb1b60976248036
MD5 8ae109f4f9a86699a2d6662adc614e7b
BLAKE2b-256 8ae5779c6634254a5c066d9daa92acb51a9ae9fef829e9aa76ee5780f15337cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 071c688b477aad0db23a811466a4d70f5a0006de37756b8b072d3bc38a9de4e1
MD5 f8aacbbc19c0069567211760edcf1c00
BLAKE2b-256 b73897a849e2ce73510f0c1bb9e81640c1d718ebac425be283de1de412e97dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.7-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d0d995306ca2c4fa18846dcf4c46b6347d065cddac07a3d1e4f5f8fbac005f22
MD5 093873852ad630c7e732025bc98b97ca
BLAKE2b-256 f68fc7adfa7d065a261b38aa33755f846726a1825c92a23fed64f44e0e274a40

See more details on using hashes here.

File details

Details for the file hypern-0.3.7-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.7-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 ff673b5b761a2e3245bb4cf861cc1f44ac1c94f1adeb6fd94270b9bc1191a065
MD5 074435ff4fde98e8bc60bc6a099c26d7
BLAKE2b-256 0df42be8e983838aa3368f17afc321ffe08c6167e479b6eb0a8eb194f6c45a3e

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