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

Uploaded CPython 3.12Windows x86-64

hypern-0.3.0-cp312-cp312-win32.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86

hypern-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hypern-0.3.0-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.12+ i686

hypern-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

hypern-0.3.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.4 MB view details)

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

hypern-0.3.0-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

hypern-0.3.0-cp311-cp311-win32.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86

hypern-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hypern-0.3.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.12+ i686

hypern-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

hypern-0.3.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.4 MB view details)

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

hypern-0.3.0-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

hypern-0.3.0-cp310-cp310-win32.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86

hypern-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hypern-0.3.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.12+ i686

hypern-0.3.0-cp310-cp310-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

hypern-0.3.0-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.4 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.0-cp312-cp312-win_amd64.whl.

File metadata

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

File hashes

Hashes for hypern-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e8a2e2bc3c7b01e563899cdd33da61d4d418d5753e407de7308970c71930030c
MD5 444e188f3ef1f3f772a49c79206ecfa8
BLAKE2b-256 a02a1bffdad2487662d5b3cc198e0cf292f3add55b314a2466c0967d547a8475

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hypern-0.3.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3e61ee5af8378cfdec9636f3ee7cd2aadd03c8de82cfe25a4a93a11ee362ee1d
MD5 b5adc36006ef98f6f3b8d1aa57dfd5d4
BLAKE2b-256 d1345dc86856564f341c00b86ae813f16b91e05fc733e9591c6a5b46138ff09b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a4f5250f69e73863438895ef0426b07c9d5182b021cd43cd9cac6a16a4325e1
MD5 8ba4d2994bc343d521b670fca548b39a
BLAKE2b-256 9a635d1267aee2ba904891bf5a5d9fa02139ff1eff8d89a810d70af8c8c827c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 f3926a177ecb5d820225702e6107c7fdb315332eece52cf41cbc72f858bb5c50
MD5 3feaba12a876e762336c7926ea71ed8f
BLAKE2b-256 dea1d50bc763bb5c7e3fa29e12e6bd4afd83bf9703e0a84761a3e9f193ca7f77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 88d54cc8228386685064911917eab142c08792e70b4d384d74ffadfb533805a9
MD5 1d2907b2a6a9f90945901ce4acd5a86a
BLAKE2b-256 bc43b559513e6b42a14f3de40e074478e6a9e16a3f475844782953cbcc55d7fe

See more details on using hashes here.

File details

Details for the file hypern-0.3.0-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.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 441e0ec33418c7e5cc564f3d2105d5a26d22c7e445b10a0635003de6879d5f7a
MD5 3154395b9c2909562773f6c2a36ebedb
BLAKE2b-256 fffad4cc1fbe7bba7c7d26ce72e75168dd3fda365849355ae8ec2f07dc343013

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hypern-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 11c44de47b2d6e0281f322616ab287c9b90b15dca7d939cdb0881146f6f0ddd9
MD5 e5132091b5a458a8921b37ef48ab40c0
BLAKE2b-256 93beb4dd9916539e359798a770c359980f38dbc245ecff37ae4e05743e4e2fe8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hypern-0.3.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 485ec1913a8578b66b766b0bf802665f170686c616e1eece308e7654baec035a
MD5 35aace553681c93f3934e2d75823455b
BLAKE2b-256 8caf6de188e0c2dbb9746aaafaf88465bfaf3a50b02a25ec86a509e660252b58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a36ddccca5dba1511549751de3bc76b861ea0e875310c555a2c53b67ec075f2e
MD5 90834bf4ee115bb1059d59e987236965
BLAKE2b-256 e656f30b0ee9b8112e381c8acabc17313a9041122085eff37ceec6c9187726bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 f061a05acf7e7dea45fc63f694ef0b56e3394b49be01f39dbf999bd2642fac3b
MD5 e9c7867c390fcd1fc503f8085b75e8c9
BLAKE2b-256 07b38ab9b2156da495453bbebb3075b77c33e9c23a6eba36a9d8fb23776453d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 840f56a62fc908bbf734103ac43842bb2d9c387f32cedc0de2b991f681896798
MD5 f6d91e5489f259111783683094226ca9
BLAKE2b-256 878d31af507567a5b75071ffeac3714b605aabd6427b322857a6429a15a97e2a

See more details on using hashes here.

File details

Details for the file hypern-0.3.0-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.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a7aa9a81cce29e2c728bad0d6eefbf23aa156ad9f619f3f27a415b47259d78a1
MD5 51c4996a79ba79ef29e096a5714b65d3
BLAKE2b-256 d6b5384cb53fcd7f1677e22bd4e0cd45693ebce923aee7a0f67de0def933929f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hypern-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0c9efad1a63aa8d376f2a5cc6bea4403451041ffd66a1371e3bdc01066e3c18
MD5 f99f6b65a6028fc18be2e4ad05cc51f4
BLAKE2b-256 a4d3705d6e31e3870aba0e89f36ea65be8345da9a414044406f9598b709778e8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hypern-0.3.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d5dc409a9768641a74d1bd259867452da974c4112f957797eccd098c5a2f4910
MD5 4f5118a9f4ff917d591588f59b0571b8
BLAKE2b-256 94dfef99ab94f374c8dd4b23ba87f89d28ca2f0209ae07b62ede123e76e33436

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0a02d91b2fac9594a8a7ff2ae78a7e67e6c7ecf20824a70933655e9ce1b520a
MD5 e5c36333cae9bb7cf26afef727c921cf
BLAKE2b-256 0769d02a4fd4f21299261124c0c473e3672ae785234a59de08679347671cc101

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 092eb3770ed73548d5e27dde9b4974cacbd41d764c90c75802bb596969b735fb
MD5 f4b2d87ef56abad7779daa69d3e34ded
BLAKE2b-256 eacb5219811f25015b7fd561fec1ba5af83efe6e25216ca7f5115b73b97076ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b41d1be86130d232437717f4b376d9099774ea2786130e82f351909249a0ba70
MD5 b0c4f44301e4aa0c4c794db6f4299768
BLAKE2b-256 767e281eda6dbbec95e5a767eb813ab7002bd394825c7745e8513ae609ea73fa

See more details on using hashes here.

File details

Details for the file hypern-0.3.0-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.0-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 51948e903ccc300a3dbc10e675a4dc5a122fff2eaff52418133d901372c31467
MD5 1d6b88cf5673f72fd88dbc94ec68e180
BLAKE2b-256 cd58129ad5da50cfc48e2a84ee57e1d8d8de863cd484b259b9434dc401758af0

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