{"id":24425334,"url":"https://github.com/kython28/leviathan","last_synced_at":"2025-09-22T03:59:01.820Z","repository":{"id":272399111,"uuid":"869666519","full_name":"kython28/leviathan","owner":"kython28","description":"A lightning-fast Zig-powered event loop for Python's asyncio.","archived":false,"fork":false,"pushed_at":"2025-04-24T11:09:17.000Z","size":5101,"stargazers_count":160,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T11:11:30.991Z","etag":null,"topics":["asyncio","iouring","python","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kython28.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-08T17:19:06.000Z","updated_at":"2025-05-29T21:48:18.000Z","dependencies_parsed_at":"2025-01-14T07:35:25.298Z","dependency_job_id":"0f4a79c3-441a-41ff-be27-8ff5cbf2587d","html_url":"https://github.com/kython28/leviathan","commit_stats":null,"previous_names":["kython28/leviathan"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/kython28/leviathan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kython28%2Fleviathan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kython28%2Fleviathan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kython28%2Fleviathan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kython28%2Fleviathan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kython28","download_url":"https://codeload.github.com/kython28/leviathan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kython28%2Fleviathan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276342544,"owners_count":25625581,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asyncio","iouring","python","zig","ziglang"],"created_at":"2025-01-20T11:01:30.312Z","updated_at":"2025-09-22T03:59:01.815Z","avatar_url":"https://github.com/kython28.png","language":"Zig","readme":"![Banner](media/banner.png)\nFrom the depths of the sea, where darkness meets vastness, emerges Leviathan: an unyielding force of speed and power. In a world where the arcane and the agile intertwine, a loop forged in Python takes its dance. Leviathan, master of the journey, governs events with a steady hand—an **ultra-fast event loop** that deploys its bastion in **asyncio**, powered by the artistry of Zig. Between promises and futures, its path is clear: to rule swiftly where code is prepared.\n\n## 🚀 Features\n\n- **Ultra-fast speed**: Thanks to low-level optimizations enabled by Zig.\n- **Full asyncio compatibility**: A drop-in replacement for the default event loop.\n- **Efficient design**: Focused on maximizing performance and minimizing latency.\n- **Simplicity**: Easy integration with existing Python projects.\n- **Robust Safety**: Carefully engineered for critical systems with advanced error recovery and graceful degradation mechanisms.\n\n## 📜 Requirements\n\n- Python \u003e= 3.13\n- Zig \u003e= 0.14.0 (for development or contributions)\n- Linux \u003e= 5.11\n\n## 🔧 Installation\n\nTo install Leviathan, just execute:\n\n```bash\npython setup.py install\n```\n\n## 📦 Basic Usage\n\n```python\nimport leviathan\nimport asyncio\n\nasync def main():\n    print(\"Hello from Leviathan!\")\n    await asyncio.sleep(1)\n    print(\"Goodbye from Leviathan!\")\n\nleviathan.run(main())\n```\n\n## 🧪 Benchmarks\n\nLeviathan stands out for its speed and performance. Here is a preliminary chart illustrating its superiority over other event loops:\n\n![Performance Benchmark](benchmark_results/chat.png)\n\nFor more information and additional tests, check the following file: [More benchmarks and details](BENCHMARK.md).\n\n---\n\n⚠️ **Warning**: Leviathan is still under active development. Some integrations, such as full networking support, are pending implementation.\n\n","funding_links":[],"categories":["Libraries","Zig","Web \u0026 Networking"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkython28%2Fleviathan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkython28%2Fleviathan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkython28%2Fleviathan/lists"}