A hierarchical finite state machine (HFSM) library for Python, focusing on reliability and ease of use.
- Hierarchical state machines with composite states
- Type-safe state and event handling
- Thread-safe event processing
- Guard conditions and transition actions
- State data management with lifecycle hooks
- Timeout events
- History states (both shallow and deep)
- Error handling
- Activation hooks for monitoring
- Plugin system
Version 1.0.2
Initial release!
gotstate
is designed with the following principles:
- Safety: Runtime validation and type checking
- Clarity: Intuitive API design
- Reliability: Built for real-world applications
- Performance: Minimal overhead
- Flexibility: Extensible through plugins
Install using pip:
pip install gotstate
- Python 3.8 or higher
- See
requirements.txt
for full dependencies
Documentation is available in the docs/
directory:
- API Reference
- Usage Guide
- Examples
Licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please read our contributing guidelines in CONTRIBUTING.md.
This package follows Python security best practices.