Cloud Runtimes Specification for the Python3.
The Multi-Runtime Standard API for Mecha architecture Projects:
[Discussion] Future plans for dapr api
Make java-sdk as a independent project
Decompose core-API and enhanced-API.
- Service Invocation (RPC)
- Configuration Centor (Configuration)
- Publish/Subscribe (Pub/Sub)
- State Management (State)
- Secret Management (Secret)
- Application Log/Metrics/Traces (Telemetry)
- Database (SQL) -alpha
- Schedule (Schedule) -alpha
- ...
- Python 3.8+
- pip
pip install cloud-runtimes-python==0.0.1
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install cloud-runtimes-python==0.0.1
from cloud_runtimes import CloudRuntimesClient
# Initialize client
client = CloudRuntimesClient(
endpoint="http://localhost:3500",
timeout=30.0
)
# Example: Get state
# Note: This will raise NotImplementedError as per the API design
try:
state = client.state.get("my_key")
except NotImplementedError:
print("State runtime not implemented yet")
For detailed API documentation, please refer to:
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
git clone https://github.com/reactivegroup/cloud-runtimes-python.git
cd cloud-runtimes-python
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -e .[dev]
pytest tests/
We use:
- Black for code formatting
- isort for import sorting
- flake8 for linting
Run formatting:
black .
isort .
flake8