GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - resolvingarchitecture/ra-common-python

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
src/ra_common
src/ra_common
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
DESIGN.md
DESIGN.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TODO.md
TODO.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Resolving Architecture Common Library (Python)

A Python port of ra-common-java — the foundational types for the Resolving Architecture / 1M5 ecosystem.

This package provides:

  • Envelope — the universal message wrapper passed between services.
  • messaging — Message (Document / Command / Event / Text), producer/consumer/channel/bus contracts.
  • route — routing slips (DynamicRoutingSlip) and external/relayed routes.
  • service — the Service / LifeCycle contract and ServiceCore shared state.
  • identity — Did, PublicKey, Signature.
  • crypto — Hash, Multihash, HashCash, password hashing.
  • content — typed content (text / html / json / image / audio / video / binary).
  • tasks — Task + a thread-based TaskRunner.
  • config — .properties loading + XDG directory resolution.
  • utilities: base32/58, version comparison, replay Nonce, UniqueId, byte packing.

Serialization is JSON-based and not wire-compatible with the Java version (the Java library used a hand-rolled JSON layer and reflective polymorphism).

Install

pip install -e .            # from a checkout
pip install -e '.[test]'    # with pytest

Requires Python 3.13+ and has no runtime dependencies.

Usage

from ra_common import Envelope

e = Envelope.document()
e.add_route("ra.http.HttpService", "SEND")
e.add_content({"hello": "world"})
e.ratchet()

assert e.get_route().service == "ra.http.HttpService"
assert e.content()["hello"] == "world"

back = Envelope.from_json(e.to_json())
assert back == e

Status

Phase 1 (core). Deferred: currency, locale/i18n, the full network service layer, Protocol, shell/file/browser utilities, InfoVault. See TODO.md.

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.