Skip to main content

djungle-rulesengine-client

A client to Djungle Studio rulesengine API

Tests

This project uses tox to run the test suite: simply run the command tox in the root of the repository.

Release

This project uses tox to release a version to PyPI. Run tox -e release -- <env>, where <env> is an index identifier in your ~/.pypirc file.

Alternatively, push a tag to the main branch to make a release using GitHub Actions.

Usage examples

from rulesengine.async_client import AsyncEngineClient
from rulesengine.client import EngineClient

engine = EngineClient(base_url="https://example.com", token="abcde")

# To push an action to the engine:
engine.push_action(subject_id="sys-1", action="my-action", payload={"key": "value"})

# To get a pluggable prop from the engine
prop_value = engine.get_pluggable_props(subject_id="sys-1", props="my-prop")

# To make a "direct" call to the engine
return_value = engine.direct_post(
    subject_id="sys-1", path="/my/path/", params={"key": "value"}, data={"my": "payload"}
)

# To push an action to the engine (async client):
async_engine = AsyncEngineClient(base_url="https://example.com", token="abcde")

await async_engine.push_action(subject_id="sys-1", action="my-action", payload={"key": "value"})

MIT License

Copyright (c) 2023 Djungle s.r.l.

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.

Metadata

Release files for djungle-rulesengine-client 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djungle-rulesengine-client 0.4.0
File Size Uploaded Provenance Actions
djungle-rulesengine-client-0.4.0.tar.gz 4.8 kB Without provenance Details for djungle-rulesengine-client-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djungle-rulesengine-client 0.4.0
File Interpreter ABI Platform Actions
djungle_rulesengine_client-0.4.0-py3-none-any.whl Python 3 none any Details for djungle_rulesengine_client-0.4.0-py3-none-any.whl

Total release size: 9.9 kB

Release files / djungle-rulesengine-client-0.4.0.tar.gz

Download URL djungle-rulesengine-client-0.4.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a7a827ab384dc229bd785da79eaab3d1e5852dd70d135bda6f1a2d75da134a42
BLAKE2b-256 checksum
How to use checksums
83766678b4248df720c555265218a21b66bedd05396b7c0452f6c00c6c53822d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / djungle_rulesengine_client-0.4.0-py3-none-any.whl

Download URL djungle_rulesengine_client-0.4.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
138f2028e6291bc62e6e5676b90aa254ae759dbd9099eb2b920c207d95c11c1e
BLAKE2b-256 checksum
How to use checksums
7e708e930008b5cef56d1ae0e5f5a9982e1fcd70d8b1ac1e1093d27123e4e990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Security for djungle-rulesengine-client 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page