Implementation of KOI-net framework in Python
Project description
KOI-net
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koi_net-2.0.5.tar.gz.
File metadata
- Download URL: koi_net-2.0.5.tar.gz
- Upload date:
- Size: 49.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00f3bc18b5c936fb97e5060450403a284389a7dd893454345d111bccb185638e
|
|
| MD5 |
c078eb76bc6d6f214a29bf3db9a0745c
|
|
| BLAKE2b-256 |
6cec2bf98721f491dede4cd98c07ae9ccc6887168fc6b3cc088708137469b83b
|
Provenance
The following attestation bundles were made for koi_net-2.0.5.tar.gz:
Publisher:
publish-to-pypi.yml on BlockScience/koi-net
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
koi_net-2.0.5.tar.gz -
Subject digest:
00f3bc18b5c936fb97e5060450403a284389a7dd893454345d111bccb185638e - Sigstore transparency entry: 1359228624
- Sigstore integration time:
-
Permalink:
BlockScience/koi-net@4121a3ce01b990e9fd6d8297426d6ba0753d1eaf -
Branch / Tag:
refs/tags/v2.0.5 - Owner: https://github.com/BlockScience
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@4121a3ce01b990e9fd6d8297426d6ba0753d1eaf -
Trigger Event:
push
-
Statement type:
File details
Details for the file koi_net-2.0.5-py3-none-any.whl.
File metadata
- Download URL: koi_net-2.0.5-py3-none-any.whl
- Upload date:
- Size: 72.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92cd4f6179256af96903d9907cd2057d78adda0f002495ce4a37dcf90510c00f
|
|
| MD5 |
30877a3b54b296f04acbba59d3570d9b
|
|
| BLAKE2b-256 |
87ece6f687eb8692ef7479a62cb46a325ee296559b7d54a891608d12867ae5fe
|
Provenance
The following attestation bundles were made for koi_net-2.0.5-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on BlockScience/koi-net
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
koi_net-2.0.5-py3-none-any.whl -
Subject digest:
92cd4f6179256af96903d9907cd2057d78adda0f002495ce4a37dcf90510c00f - Sigstore transparency entry: 1359228646
- Sigstore integration time:
-
Permalink:
BlockScience/koi-net@4121a3ce01b990e9fd6d8297426d6ba0753d1eaf -
Branch / Tag:
refs/tags/v2.0.5 - Owner: https://github.com/BlockScience
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@4121a3ce01b990e9fd6d8297426d6ba0753d1eaf -
Trigger Event:
push
-
Statement type: