Skip to main content

Notitia core - pluggable payload procesing - everything is famous.. sort of..

import motor.motor_asyncio
from bstk_notitia import Notitia

# An Investigator looks for and specialises in dealing with particular types of cases
# Observers watch for information that may or may not be useful to an investigator
# Informants provide new or supporting information upon request by the investigator
# Reporters are used by the investigator to disseminate information and receive feedback

# Only certain cases get investigated
# The investigator decides what cases to take
# Each case must run to completion, even if completion means new cases are created

motor_client = motor.motor_tornado.AsyncIOMotorClient(host=['localhost:27017'])

notitia = Notita(
    department="08e32fd8-9259-4a3e-891a-bc39b7c8ef22", # [str | None] - for tenancy isolation
)

notitia.set_driver(
    driver="mongodb"
    driver_settings={
        "async_client": motor_client,
        "database": 'myappdb',
        "collection_prefix": "bn_",
        "archive_suffix": "_arch",
        "completion_action": "immoliate",
    },
)

notitia.enlist(investigator="portaone/espf")

espf_payload = {
    "event-type": "Test/Event",
    "variables": {
        "i_event": 1,
        "i_account": 999
    }
}

# A valid case
try:
    case = await notitia.dispatch(
        observer="portaone/espf",
        information=espf_payload,
        completion_action="archive". # [archive | immoliate | None]
    )
    print(f"Tracking case as {case.number}")
except NotitiaInvalidCasePayloadException as ex:
    print(f"Invalid Payload: {ex.message}")

async for movement in notitia.spy(case):
    print(f"Case moved {movement.id}")

Metadata

Release files for bstk-notitia 0.6.9

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

Source distribution (sdist)

Source distribution for bstk-notitia 0.6.9
File Size Uploaded Provenance Actions
bstk_notitia-0.6.9.tar.gz 22.7 kB Without provenance Details for bstk_notitia-0.6.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bstk-notitia 0.6.9
File Interpreter ABI Platform Actions
bstk_notitia-0.6.9-py3-none-any.whl Python 3 none any Details for bstk_notitia-0.6.9-py3-none-any.whl

Total release size: 57.8 kB

Release files / bstk_notitia-0.6.9.tar.gz

Download URL bstk_notitia-0.6.9.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ecf9d165e9738b27ca28544a958fd76944fbd8a31c2bb253ae31adef309c655d
BLAKE2b-256 checksum
How to use checksums
636eb89d4f603ac5038f0c6e6677ed9f6b848165ddb0a454a97d19c15def4a30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / bstk_notitia-0.6.9-py3-none-any.whl

Download URL bstk_notitia-0.6.9-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4e36f0994c18f4d761d23d7d57abb7964e340546aefe1e9d765d97eba40e1f2
BLAKE2b-256 checksum
How to use checksums
73d89f544200143fd6f039bce42d6df7145c5292ed3f315ee96da2e2b49c6695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for bstk-notitia 0.6.9

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