Skip to main content

Framework for dependency injection and state management within structured concurrency model.

Project description

🚗 haiway 🚕 🚚 🚙

PyPI Python Version License Docs CodeRabbit Pull Request Reviews

Modern Python framework for functional programming with structured concurrency

Haiway brings functional programming principles to Python's async ecosystem, providing a robust foundation for building scalable, maintainable applications with immutable state management and automatic resource cleanup.

Why Haiway?

Building concurrent Python applications often involves complex state management, dependency injection frameworks, and careful resource handling. Haiway simplifies these challenges through:

🔒 Immutability First

Type-safe data structures that prevent race conditions and ensure predictable behavior in concurrent environments

Zero-Config DI

Context-based dependency injection without decorators, containers, or complex frameworks

🎯 Functional Design

Pure functions and explicit data flow make code easier to understand, test, and maintain

🔄 Structured Concurrency

Automatic task lifecycle management with guaranteed cleanup, even in error cases

Core Principles

🎯 Type Safety Throughout

Full type checking with modern Python features - unions, generics, protocols. Runtime validation ensures data integrity.

🧩 Composable Building Blocks

Small, focused components that combine into larger systems. No framework lock-in or magic.

🔄 Explicit Over Implicit

Dependencies are visible in type signatures. No hidden global state or surprising side effects.

🎭 Async-Native

Built for Python's async/await from the ground up. Includes utilities for retries, timeouts, and concurrent operations.

🖥️ Install

With pip:

pip install haiway

👷 Contributing

As an open-source project in a rapidly evolving field, we welcome all contributions. Whether you can add a new feature, enhance our infrastructure, or improve our documentation, your input is valuable to us.

We welcome any feedback and suggestions! Feel free to open an issue or pull request.

⚖️ License

MIT License

Copyright (c) 2024-2025 Miquido

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haiway-0.42.0.tar.gz (104.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haiway-0.42.0-py3-none-any.whl (134.7 kB view details)

Uploaded Python 3

File details

Details for the file haiway-0.42.0.tar.gz.

File metadata

  • Download URL: haiway-0.42.0.tar.gz
  • Upload date:
  • Size: 104.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for haiway-0.42.0.tar.gz
Algorithm Hash digest
SHA256 f0395f6eaabe3de21df1dad0a7ae8693b9c602e72fc0c05db4f20618ecd9794a
MD5 80df112598c80e3041da4d665f0f51e4
BLAKE2b-256 13cee1ea86849414878a2339bd02d07c72335266f5a9f5670b7e24de7492a3f9

See more details on using hashes here.

File details

Details for the file haiway-0.42.0-py3-none-any.whl.

File metadata

  • Download URL: haiway-0.42.0-py3-none-any.whl
  • Upload date:
  • Size: 134.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for haiway-0.42.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4a99d295e0fdc5940a6a11aa2daf0b6b99a4dc53f17641d0bc48b8715ce2b18
MD5 ac648a7726ba7af055dcb7b72e5fee8e
BLAKE2b-256 de838c95bb99658b673449c52835109c9a82e45f1dd430ab1b0e83537741f0bd

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