Django Logic - easy way to implement state-based business logic
Project description
Django-Logic (under development)
django-logic - easy way to implement state-based business logic
Django Logic is a lightweight workflow framework that provides an additional layer to implement the business logic with a Django. Inspired by Django FSM package and UML-state machine, we have developed a package which tends to solve a problem “Where to put the business logic in Django”.
The vision behind this package is that Django especially useful for small-medium size projects and developer teams. Especially who have many ideas needs to validate/business rules need to implement, validate and improve. The Django-Logic package provides a set of tools helping to build a reliable product within a limited time. Here is the functionality what the package can do for you:
- Implement state-based business processes combined into Processes.
- Provides a business logic layer as a set of conditions, side-effects, permissions, and even celery-tasks combined into a transition class.
- In progress states
- REST API actions - every transition could be turned into a POST request action within seconds by extending your ViewSet and Serialiser of Django-Rest-Framework
- Form buttons (TODO) - add buttons to your form and templates based on available transitions
- Background side-effects before or after transition executed. It gives you reach functionality to implement complicated business rules without into details.
- Draw your business processes to get a full picture of all transitions and conditions.
- Easy to read the business process
- One and only one way to implement business logic. You will be able to extend and improve the Django-Logic functionality and available handlers. However, the business logic will remain the same and by following SOLID principles.
- Test your business logic by unit-tests as pure functions.
- Protects from overwritten states, locks, etc. already implemented in Django Logic and you could control the behaviour.
- Several states can be combined under the same Model.
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
Built Distribution
Hashes for django_logic-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19a549028e4c366cea8b1c061e5aa6f3b93c0138e36cb624f142ebdf6b97ae42 |
|
MD5 | 61c090885fc1ac0cdadc5388066e436f |
|
BLAKE2b-256 | 7d7b379eb8b98dc5554603aaead9ab724b50f45fd732ba6ec3a30a1ac638f009 |