Skip to main content



License: DEL

opject

Object Passing Library

Contents

About

opject is a specification and implementation for passing objects through the network.

An object is a self-contained piece of code.

The passing of the object through the network is obtained in 2 steps:

  • a registered object is requested by the opject client from the opject server;
  • the opject client instantiates or runs in a virtual machine the received object.

opject has clients for

The opject server can serve any kind of object. However, depending on the preferred language, a specific opject server can be used for

The opject registry grants extended functionality through a web interface. The registry can be self-hosted or cloud-hosted.

Install

Install by running

pip install opject-server

Usage

A simple opject server will only require passing a verify_token function and starting the server.

from opject_server import Server as OpjectServer


test_token = '__TESTS__'
port = 7766

def verify_token(
    token,
):
    return token == test_token


server = OpjectServer(
    verify_token=verify_token
)

server.start(
    port=port,
)

The opject server will use the local filesystem for storing data.

Custom functions can be passed to the opject server to implement any kind of logic handling following the interfaces

def verify_token(
    token: str,
):
    pass

def get_object(
    id: str,
):
    pass

def get_metadata(
    id: str,
):
    pass

def register_object(
    id: str,
    data: str,
):
    pass

def register_metadata(
    id: str,
    data: dict, # { dependencies: str }
):
    pass

def remove_object(
    id: str,
):
    pass

Packages

Version

@plurid/opject-client-javascriptJavaScript opject client

Version

@plurid/opject-server-javascriptJavaScript opject server

Version

@plurid/opject-client-pythonPython opject client

Version

@plurid/opject-server-pythonPython opject server

Codeophon

Release files for opject-server 0.0.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 opject-server 0.0.0
File Size Uploaded
opject-server-0.0.0.tar.gz 5.1 kB Details

Release files / opject-server-0.0.0.tar.gz

Download URL opject-server-0.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8f500df2c0bd14f84ee2b201e33f5260b8d7d7e5ae7ae3952c1a63c2f960cc12
BLAKE2b-256 checksum
How to use checksums
a1592d612e74977348a26a54710c7de4f13b3e9cc2e1262ed8892a764699b35b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.3

Release history Release notifications | RSS feed

This release

0.0.0 This release

1 release file

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