Protean Application Framework
Project description
Protean
Protean is an opinionated and pragmatic framework for building event-driven applications using the CQRS pattern.
Installation
Protean is available on PyPI:
$ python -m pip install protean
Collecting protean
Downloading protean-0.13.0-py3-none-any.whl.metadata (5.9 kB)
...
Installing collected packages: ...
Successfully installed ...
Protean officially supports Python 3.11+.
Quick Start
from protean import Domain
from protean.fields import String, Text
domain = Domain(name="Publishing")
@domain.aggregate
class Post:
title = String(required=True, max_length=1000)
slug = String(required=True, max_length=1024)
content = Text(required=True)
domain.init()
with domain.domain_context():
post = Post(
title="Hello World",
slug="hello-world",
content="Lorem Ipsum ..."
)
domain.repository_for(Post).add(post)
Documentation
Online docs are available at https://docs.proteanhq.com.
Contributing
Note: Protean framework is not associated or related to Protean eGov Technologies or Code for Gov Tech initiatives.
- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
- Fork the repository on
GitHub, branch off
mainand start making your changes. - Write a test which shows that the bug was fixed or that the feature works as expected.
- Send a pull request and bug the maintainer until it gets merged and published.
For more information, please check out the community section.
License
BSD 3-Clause License
Copyright (c) 2018-2024, Subhash Bhushan C. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file protean-0.14.2.tar.gz.
File metadata
- Download URL: protean-0.14.2.tar.gz
- Upload date:
- Size: 163.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.9 Linux/6.12.10-76061203-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b298460a22e282c573c6e1c93e4af27afee6d6c08bb209759a803adfe45a767
|
|
| MD5 |
8783fa89137967d714e3d4256c54a2ee
|
|
| BLAKE2b-256 |
da77c1750ad5af6ff7b035d05e25268c17a327071d4d8ec5dbe4ce42f4a073f5
|
File details
Details for the file protean-0.14.2-py3-none-any.whl.
File metadata
- Download URL: protean-0.14.2-py3-none-any.whl
- Upload date:
- Size: 210.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.9 Linux/6.12.10-76061203-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2333e3a94f4510e43a9502264937f9b484888e928b2f7fe7273fde30e8f463ba
|
|
| MD5 |
8762e08026eedb6f2337bf3992434d7f
|
|
| BLAKE2b-256 |
a2b2ebba267bd14e2beba2f5950babe2f8a7cc723143ecd4e65d93348a58f4c8
|