{"id":28412809,"url":"https://github.com/dvnghiem/hypern","last_synced_at":"2025-06-24T13:30:48.760Z","repository":{"id":248224883,"uuid":"781510223","full_name":"DVNghiem/Hypern","owner":"DVNghiem","description":"Hypern is an open-source framework designed to accelerate high-performance web development. Its flexible architecture and robust features empower developers to easily build scalable APIs, microservices, and full-stack applications.","archived":false,"fork":false,"pushed_at":"2025-06-03T05:54:56.000Z","size":958,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T12:40:22.324Z","etag":null,"topics":["async","axum","backend","framework","python","rust","web"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DVNghiem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-03T14:17:46.000Z","updated_at":"2025-06-03T05:54:55.000Z","dependencies_parsed_at":"2024-08-05T18:32:15.735Z","dependency_job_id":"d040875a-1d31-4572-ad63-555fedbd9df7","html_url":"https://github.com/DVNghiem/Hypern","commit_stats":null,"previous_names":["dvnghiem/python-template","dvnghiem/pyfast","dvnghiem/hypern"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/DVNghiem/Hypern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DVNghiem%2FHypern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DVNghiem%2FHypern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DVNghiem%2FHypern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DVNghiem%2FHypern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DVNghiem","download_url":"https://codeload.github.com/DVNghiem/Hypern/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DVNghiem%2FHypern/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261685268,"owners_count":23194075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","axum","backend","framework","python","rust","web"],"created_at":"2025-06-03T00:38:59.010Z","updated_at":"2025-06-24T13:30:48.743Z","avatar_url":"https://github.com/DVNghiem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Hypern\n\nHypern: A Versatile Python and Rust Framework\n\nHypern is a flexible, open-source framework built on the [Rust](https://github.com/rust-lang/rust), 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.\n\nWith 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.\n\n\n### 🏁 Get started\n\n### ⚙️ To Develop Locally\n\n- Setup a virtual environment:\n```\npython3 -m venv venv\nsource venv/bin/activate\n```\n- Install required packages\n\n```\npip install pre-commit poetry maturin\n```\n- Install development dependencies\n```\npoetry install --with dev --with test\n```\n- Install pre-commit git hooks\n```\npre-commit install\n```\n- Build \u0026 install Rust package\n```\nmaturin develop\n```\n\n## 🤔 Usage\n\n### 🏃 Run your code\n\nYou will then have access to a server on the `localhost:5005`,\n```python\n# main.py\nfrom hypern import Hypern\nfrom hypern.routing import Route, HTTPEndpoint\n\nclass MyEndpoint(HTTPEndpoint):\n    \n    async def get(self, request):\n        return {\"data\": \"Hello World\"}\n\nrouting = [\n    Route(\"/hello\", MyEndpoint)\n]\n\napp = Hypern(routing)\n\nif __name__ == \"__main__\":\n    app.start()\n```\n\n```\n$ python3 main.py\n```\nYou can open swagger UI at path `/docs` \n\n## CLI\n\n    - host (str): The host address to bind to. Defaults to '127.0.0.1'.\n    - port (int): The port number to bind to. Defaults to 5000.\n    - processes (int): The number of processes to use. Defaults to 1.\n    - workers (int): The number of worker threads to use. Defaults to 1.\n    - max_blocking_threads (int): The maximum number of blocking threads. Defaults to 32.\n    - reload (bool): If True, the server will restart on file changes.\n    - auto_workers (bool): If True, sets the number of workers and max-blocking-threads automatically.\n\n\n## 💡 Features\n\n### ⚡ High Performance\n- Rust-powered core with Python flexibility\n- Multi-process architecture for optimal CPU utilization\n- Async/await support for non-blocking operations\n- Built on top of production-ready Rust language\n\n### 🛠 Development Experience\n- Type hints and IDE support\n- Built-in Swagger/OpenAPI documentation\n- Hot reload during development\n- Comprehensive error handling and logging\n\n### 🔌 Integration \u0026 Extensions\n- Easy dependency injection\n- Middleware support (before/after request hooks)\n- WebSocket support\n- Background task scheduling\n- File upload handling\n\n### 🔒 Security\n- Built-in authentication/authorization (Comming soon)\n- CORS configuration\n- Rate limiting\n- Request validation\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvnghiem%2Fhypern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvnghiem%2Fhypern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvnghiem%2Fhypern/lists"}