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

hypern-0.2.1-cp312-none-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

hypern-0.2.1-cp312-none-win32.whl (2.1 MB view details)

Uploaded CPython 3.12 Windows x86

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

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

hypern-0.2.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl (2.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.12+ i686

hypern-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

hypern-0.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.3 MB view details)

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

hypern-0.2.1-cp311-none-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11 Windows x86-64

hypern-0.2.1-cp311-none-win32.whl (2.1 MB view details)

Uploaded CPython 3.11 Windows x86

hypern-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

hypern-0.2.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl (2.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.12+ i686

hypern-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

hypern-0.2.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.3 MB view details)

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

hypern-0.2.1-cp310-none-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

hypern-0.2.1-cp310-none-win32.whl (2.1 MB view details)

Uploaded CPython 3.10 Windows x86

hypern-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

hypern-0.2.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl (2.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686

hypern-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

hypern-0.2.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.3 MB view details)

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

File details

Details for the file hypern-0.2.1-cp312-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for hypern-0.2.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 97aecd0aaf534120dfc2b0f9fec24fc500d41cdf1bd3b56e28b5d76f9760daff
MD5 5129a180b64fe7c682e1c50dea10cd45
BLAKE2b-256 221059a812d391b1bcd0b0f20e1e5ec1a8ddc48d178d1c1eb3cff78733dceafb

See more details on using hashes here.

File details

Details for the file hypern-0.2.1-cp312-none-win32.whl.

File metadata

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

File hashes

Hashes for hypern-0.2.1-cp312-none-win32.whl
Algorithm Hash digest
SHA256 9b2738384e8c138cfe95b4bbc2565925270156b682d157cb673f889b68b4a478
MD5 d0117b74ebef5545ac64a884f81a2d4c
BLAKE2b-256 272d1ee254b2a428daea3e8e0b529f6830280449cf11d96cff517701a285f862

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19a8f6b0d378d20b066ce0c5fc67d41a956b5e4e54f0a76bb8a33e2364294d9d
MD5 facc0b032d2f0980aea5f5a7cc91191e
BLAKE2b-256 53ebe1c00f4cdf80b4901f5834e0225a71cd2d075ae906bd5e95a15a4669e0fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 5c6b18964a7219fb02ed275fff265dbfddf7b90d4d73fa91fc0d7358a8cec8fb
MD5 9cba1f7560997543430ef42a71b32cb6
BLAKE2b-256 7b69ddeaa39086575488c5206b4010aae5764b8a53090ed91c95c249cff52a5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 29fb67cea3b9fa3f5ac78637618018a471bc9301a072a99353be1dacf4111ae4
MD5 c8875f9af2f409e0c006e9e230cb08e9
BLAKE2b-256 62f687324a3f6cd40a5942d8f18a54f0b2ace5adfd8e63400cf86cbd937f02cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 6c3f24c6c47e53b032c6acc8ed46ea3757581d818d93f5681bbc5b1245534870
MD5 93c4e8fa4ad6a6bc2e0d8ccf71bdacce
BLAKE2b-256 15b31fb64e00aa2468334fcfef0d0d5df1005feb1b9d38a0cd972fe77a8c38e8

See more details on using hashes here.

File details

Details for the file hypern-0.2.1-cp311-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for hypern-0.2.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 ae9960933f09baf1c58b3c73e04ca1f07e294e035d7be15e255401039a0f8c02
MD5 a65ee76488b8f49f54c927951ec38dcd
BLAKE2b-256 3a296ecc44d59610c4e5fee80019271e559359fa3ee5d50ad4ce77737f5fc0a6

See more details on using hashes here.

File details

Details for the file hypern-0.2.1-cp311-none-win32.whl.

File metadata

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

File hashes

Hashes for hypern-0.2.1-cp311-none-win32.whl
Algorithm Hash digest
SHA256 ddc02bd12862f005283887b1cc8f3f380045b5f223937fce02f7e35f6e3779c7
MD5 52eb3fcb9f8201bc40355daa4147aa92
BLAKE2b-256 bc45be669edcba39a03d6cf5283957f948e0904312f0c302fd74b5914b909a1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0637d9dbc711928ca441a8d9355438362e72e548aa355299cf5de1da22220b6d
MD5 1f2243a7be941ad434e2d6a5340d5fbc
BLAKE2b-256 453c2aabc75f9350487318b5d8772424f15a6f39df474a683190abd98ebd022a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 c4f6d7f7f825f1b0dd8c5e117ccb01d927b4679b2924cec5262dfd86858b4535
MD5 781d9379aa6d7eee73642ff070725bfa
BLAKE2b-256 fb7b86ee5cd19b5c46e385b590cc1b4370918eebba4058dcee0cc2f9a18f09de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3d5422a7a422e2d18d364dc226a2b4f9d2f48321ce640f68f2832ee3fa6f22f5
MD5 ad54e5fcf9966819d42c4a5507a3695a
BLAKE2b-256 a7e811cfdd96426d78f73c91f0766a51f136fade64e919a1e1fab1f3a6a7edfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 83c526a8fbd47131b03296fbe8635693706fc47bdff7a97bd55d217df1866002
MD5 026497c059ffe1c126da76ecaa26006d
BLAKE2b-256 094fae3d7287f69e501a560c9fd8949af1b0aa3652bc8cac9ae4cefc1b49c84f

See more details on using hashes here.

File details

Details for the file hypern-0.2.1-cp310-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for hypern-0.2.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 687ff524cf952c168a5c62a46e1918afc1419192898ae07f690bee3cfcadcca6
MD5 8c07556a36173a2d8ef8baf1e8bd8ed2
BLAKE2b-256 c22c07f8c6652c1062046e289689e0846d6ecc139039365abe9aa1e18f0bd5f0

See more details on using hashes here.

File details

Details for the file hypern-0.2.1-cp310-none-win32.whl.

File metadata

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

File hashes

Hashes for hypern-0.2.1-cp310-none-win32.whl
Algorithm Hash digest
SHA256 643a8ba63993181403d4cc4134f04c663f5452bb4b5dfa9dcc3bdff2567988dd
MD5 3264476a20ec36344b60d6ba3fa3fae0
BLAKE2b-256 95b1fde60eff55c39760f5edf049c6f66111d9c54af8aad167e0b667c54164cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b532fdacf7268f200027a96bb32448fcc4b625c392a9f08b8725ab398fd816be
MD5 0f3586c72e4036fb18906edc9a49633f
BLAKE2b-256 f16699e64cad951d498f51508900f8e0809a99e5fd803573cd9e5d206e834dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 80712566ba42fe532936f7858b608985b18ac700267106201fec4eaf6841198a
MD5 57e12a8139137b4e13a466fbd614ea88
BLAKE2b-256 3a9f818065b596c371cb7142de52e2cabc441ae60c0d588b93a9fa330e6e9d84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fc2cccc0de9e79eb1c4785be720fccb9af59932d0e03cd65b2a1a9f839ec9141
MD5 97d7c256ee1f042bdc36ab0729a727a6
BLAKE2b-256 e239f1159de0afe884e5018a1095b038bd7e641d8a7d0bb568909689ad2e3d44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.2.1-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 f980762aff7ae9cab633394b5621fd15f009daff400e6a1f21cae2581638597a
MD5 2da5e3a8e27485dfb0aebe162c0a46f6
BLAKE2b-256 78e8a535a983effc1ad31094b9a5ad25119d8720a18f56f1bacaaac3bf78e143

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