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 clientfrom theopject server; - the
opject clientinstantiates 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-client
Usage
The opject client requires a server. The server can be self-hosted or cloud-hosted.
The simplest use-case implies registering an opject, requiring, and running it.
from opject_client import Client as OpjectClient
endpoint = 'http://server.address'
token = 'secret_token_obtained_from_server'
opject_id = 'some-opject-python'
# Optional name.
opject_name = 'SomeOpject'
opject_data = 'class SomeOpject:\n\tdef __init__(self):\n\t\tself.internal = 12\n\tdef read(self):\n\t\treturn self.internal\n'
## The data can also be a multiline string.
# opject_data_multiline = """
# class SomeOpject:
# def __init__(self):
# self.internal = 12
# def read(self):
# return self.internal
# """
opject_client = OpjectClient(
endpoint = endpoint,
token = token,
)
opject_client.register(
opject_id,
opject_data,
)
some_opject = opject_client.require(
id = opject_id,
name = opject_name,
)
value = someOpject.read() # 12
Packages
@plurid/opject-client-javascript • JavaScript opject client
@plurid/opject-server-javascript • JavaScript opject server
@plurid/opject-client-python • Python opject client
@plurid/opject-server-python • Python opject server
Codeophon
Metadata
Release files for opject-client 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opject-client-0.0.0.tar.gz | 3.8 kB | Without provenance | Details for opject-client-0.0.0.tar.gz |
Release files / opject-client-0.0.0.tar.gz
| Download URL | opject-client-0.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1642154c9bb471ea3889347064d92400b80d8ee865bd607b82d47406fdd5059
|
|
BLAKE2b-256 checksum How to use checksums |
19f27d34685a7f33847d86ad8f1b1899791382a06ac25b66468ab81117ec1951
|
| 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
|
Security for opject-client 0.0.0
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.