Skip to main content

Implementation of KOI-net framework in Python

Project description

KOI-net

PyPI Documentation

This protocol and framework are the result of several iterations of KOI research, read more here.

KOI-net (Knowledge Organization Infrastructure Network) can be understood as both a network protocol for distributed knowledge processing, and as a Python framework for building nodes, networks, and applications on top of that protocol. This repo is the implementation of that framework.

For information about the KOI-net protocol, see the official specification.

Quick Start

Installation

(Optionally) create and activate a virtual environment, and install KOI-net:

$ pip install koi-net

Create a Simple Partial Node

The KOI-net framework is built around the dependency injection pattern. Node classes are containers for interdependent components implementing internal subsystems. Each node inherits from a base partial or full node class, which comes with ~36 default components. At a minimum, each node needs to implement a config component:

from koi_net.config import PartialNodeConfig, KoiNetConfig, PartialNodeProfile  

class MyPartialNodeConfig(PartialNodeConfig):
	koi_net: KoiNetConfig = KoiNetConfig(
		node_name="partial",
		node_profile=PartialNodeProfile()
	)

Which is set in the node container:

from koi_net.core import PartialNode

class MyPartialNode(PartialNode):
	config_schema = MyPartialNodeConfig

Finally, the main method can be set to build and run the node:

if __name__ == "__main__":
	MyPartialNode().run()

See examples/coordinator.py for a more complex example node, or see the docs for more information on the KOI-net framework.

This framework depends on rid-lib, the Python implementation of the RID protocol.

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

koi_net-2.1.0b6.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koi_net-2.1.0b6-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

Details for the file koi_net-2.1.0b6.tar.gz.

File metadata

  • Download URL: koi_net-2.1.0b6.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for koi_net-2.1.0b6.tar.gz
Algorithm Hash digest
SHA256 fd8ecf99033456fedf264eb09b456ea4fe4aa3fa6fcb82de1758a48d9bddc2c3
MD5 620437512a6b616cdd7ec114ac15655c
BLAKE2b-256 5b98acde0456bf1c576e3d4d64f5b936e5bae52a68ca32af2c26f08019886b71

See more details on using hashes here.

Provenance

The following attestation bundles were made for koi_net-2.1.0b6.tar.gz:

Publisher: publish-to-pypi.yml on DynamicalSystemsGroup/koi-net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file koi_net-2.1.0b6-py3-none-any.whl.

File metadata

  • Download URL: koi_net-2.1.0b6-py3-none-any.whl
  • Upload date:
  • Size: 73.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for koi_net-2.1.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c5619ee11513741a6823d1e96ab5f98c919b457d24775d2a885c2c278156a1
MD5 ca76f1e7d7dab9a369f0436282f3ece5
BLAKE2b-256 aa0fe2a323333ef07f722e74cbe2fa603695e5b3c840758a8d79dea3c7f7a7ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for koi_net-2.1.0b6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on DynamicalSystemsGroup/koi-net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page