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

Uploaded CPython 3.12Windows x86-64

hypern-0.3.5-cp312-cp312-win32.whl (4.3 MB view details)

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 10.12+ x86-64

hypern-0.3.5-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (9.1 MB view details)

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

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 10.12+ x86-64

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

File metadata

  • Download URL: hypern-0.3.5-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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3e22c218e7c1368883b617e53420874e0a76080f58c9a9ed5b44b1f02d5c557d
MD5 109cd904fcd7d82c27c577028dd3a6c5
BLAKE2b-256 ff5d91de058860fb39a068901ef6a07c2a41aac49866aa716e67a4c047b4518b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.5-cp312-cp312-win32.whl
  • Upload date:
  • Size: 4.3 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.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c96480b7f5460606c962a111db661bed5c7e642bdb4353f5b8595e2d01db0063
MD5 56f134d6644189acb7cfba6aacd1b85d
BLAKE2b-256 036df276366c0e762a2f002626e99803e9c445fdfa28860c7e08fa15c682a085

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3322496d532eb93b48e8adaa51db8b8bf5d5a11e2a88be03e01260344f70c31c
MD5 d0626befb75ec2fbce4706082094e306
BLAKE2b-256 4c9f33b80da680d1155e844f340a7673afe738d95a978e97e6379b88542db4d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 13a7378a821b676f5da882cfc7659345798b8db41304159f7aa50d7ec49f6ed9
MD5 25d33a8849002c149a2d6ff658b5caca
BLAKE2b-256 c0456c0a5990c4f5df2e9d4a1f2e42db9ab87f9eb8bfd0880df1649fb79faabd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 65236004f7f12ba06d8f9c177ea621a1a2c04c4080681aef75eb1df91b38a3b4
MD5 7fa90929413d00298f05aa4617c9f967
BLAKE2b-256 9d31ae346dc3609514f69118fa8646b72e68a406fd5112748f2ce9dcfd222713

See more details on using hashes here.

File details

Details for the file hypern-0.3.5-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.5-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e93947c6bc27d17df85fe90f94884dd84591746d4ec1e6d95585fc12a4bb0ef2
MD5 bca150c5e917f42f60c6504350a78922
BLAKE2b-256 91ff573fdb910176fa145866f892c1b8c83f58910849e07e13a24f4c1c01641d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.5-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.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9889e5299604e1e62273f52fa3caba5ab63925e6011cad8e6d81c98272977513
MD5 c58854f5539f43c1e14757ef178b5ea4
BLAKE2b-256 8a55791fd65feca9a8716ff686752e0c50311c77817448a4e7aae4a3bc626289

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.5-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.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e4a89bffffe7e983f61f025c0a38e20bccfb70c847a2128739fdbc3b7c66cfe0
MD5 a3c2333462d9b999bc359ec0ae7e3a98
BLAKE2b-256 7c1eb39f77de8d62dec64313238e9c900275a9a5e03d9f087edf1693f3038ed1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8ea411f282737a2dd271ae845e41e42c1bb12aa4e7841d8846fea9d40d0032b
MD5 686ca3a49a6a46b3e5c159aa21d088ea
BLAKE2b-256 4909d8bbc6d2c2524742f9ecdcf588c29ab2526b428f0dd489607c71894991ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 7fe6cd602a42fc93ffcd44da6068fb39eac9cf7cde06ed3b3348f550a84c2652
MD5 1102ecf1f9f8ab6ca64a8c0fb9d87da1
BLAKE2b-256 8adcb480068ea8d902eadf312263cc543195a781425ee28cb9f35578431cd817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3ee0ffcee826a6303a9b8ae74ce2d28df07ab3f500fd7443fda51e6c278c335b
MD5 1064c032a3844aeb68b846e2a4d0e631
BLAKE2b-256 0f08a530dcd4a801a625a3e3371e6c694defdc8ebd3b928f0137baaa2c0f0bc7

See more details on using hashes here.

File details

Details for the file hypern-0.3.5-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.5-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 bb1cdf404e23db09063bd6feac1a91528fffe9c0088d898225fbac4fb4eb2407
MD5 19488392739137e962df9db7a8a3d593
BLAKE2b-256 c91e0172cf8822e47c787a418a48fd6b16bccff9a831b67bb36f0e673bcba626

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.5-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.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4d02c723e3799f843f1413989cdd762e0a96865e4ebe6eee2ed04914efecc183
MD5 91cacac3355c4f4ce805d0672b7c07f6
BLAKE2b-256 2ee8ea17849c253f7cbfd6550fee15a6b1bd54436fce67eadd839eea8f2de227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypern-0.3.5-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.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4be6205c55f494c584f0103149a58f18f0314bf9efa55f2fcdb622237e2f6ddb
MD5 95c8b0861aa0b94b5033beb3ced9c7cf
BLAKE2b-256 f2c493b75e6087df4b0f6972c07b41c90318bd28309ba2096d44a00b8e5c175b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecace07a0edf7e5db2301522e437d5ab81fdc898a063eb598c01f42e13a59bab
MD5 021dadd62039bed4da9cb6333e4cbd7c
BLAKE2b-256 4c1b82c5846c0e7f9019bb6afd7e805bcb5ea6c1aab18fff105dd1dec44b3a92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 302cf09e90e0fff18bbc6a96a633c41a5e42e22b31ed90c37c89cf4e4ac2d5d3
MD5 32b91ae9663e82c0602bd58236e77732
BLAKE2b-256 7a4963ef913a1c80f58c86af53910cc3f74da6eebf3ae73b423131243ba520ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hypern-0.3.5-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ce27b07df3f76dba65d8b9fa3badb531c70e4ee0580ea3c13289bf64fc171a5b
MD5 d0fbaf1775d0800d385f48b1fa3050ba
BLAKE2b-256 7a4e96fd7297a2cb3ad5fb21538abd0a4638b9cb5d9a21f0ba027a3f8cdbf769

See more details on using hashes here.

File details

Details for the file hypern-0.3.5-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.5-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 21a0fc4f519b00335420e262b4bd1780b88224c24808b267e80b555830e18ed8
MD5 b0f440ffe69f0aeb1cb3ee08c875e2cd
BLAKE2b-256 0f98aeaebe9f023ccffba5deaa23d18b95cabf587fa10eace80f53ddfbf2c5cd

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