neon3-sdk
Python client SDK for Neon3 neon3.rpc and neon3.event.
Install
python -m pip install --upgrade neon3-sdk
Package page: https://pypi.org/project/neon3-sdk/
Start Neon3
RuntimeSession starts the Neon3 services as separate processes. On Windows it
uses the local bundle if present, otherwise downloads and caches the pinned
v0.2.1 runtime from:
https://github.com/unco999/Neon3-CiJian/releases
from neon3_sdk import RuntimeConfig, RuntimeMode, RuntimeSession
with RuntimeSession(RuntimeConfig(mode=RuntimeMode.WINDOWED)):
print("Neon3 services are running")
The default cache is %LOCALAPPDATA%\Neon3Sdk\runtime\v0.2.1. Set NEON_ROOT
or pass RuntimeConfig(neon_root="D:/Neon3", profile="debug") to use a local
checkout. The SDK starts neon-eventd, neon-wgpu-runtime, and
neon-ui-runtime; it does not create windows or GPU resources itself.
RPC Usage
from neon3_sdk import NeonClient, UiClient
rpc = NeonClient.connect("127.0.0.1:39102", origin="my-tool")
ui = UiClient(rpc)
program = ui.submit_flow('version 1\nsurface example revision 1\nsurface root\n')
print(program.surface_id)
Event Usage
from neon3_sdk import EventClient
with EventClient.connect("127.0.0.1:39101").subscribe(
name="ui.file_drop.accepted"
) as events:
for image in events.file_drops():
print(image.file_name, image.source_path)
ui.file_drop.accepted is the existing Neon3 event bridge for OS file drops.
Image tools can use it to start OpenCV analysis without polling.
Tests
python -m unittest discover -s tests -v
Metadata
Release files for neon3-sdk 0.1.2
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 | |
|---|---|---|---|---|
| neon3_sdk-0.1.2.tar.gz | 25.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neon3_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.5 kB
Release files / neon3_sdk-0.1.2.tar.gz
| Download URL | neon3_sdk-0.1.2.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ac5393d1cf453dd61f67de93bae93b8f67929c839fd161d2314d3be34007136
|
|
BLAKE2b-256 checksum How to use checksums |
ffb19abe7f61cf6449990556c408b3e8e865c8d793d47d054ed0a67c04f824ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / neon3_sdk-0.1.2-py3-none-any.whl
| Download URL | neon3_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 29.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d61487fcf6441d19fbd1466cc0eb10b3c06b519f9a9a68405cbc7c50ce082e41
|
|
BLAKE2b-256 checksum How to use checksums |
7777f2ed18ea7d6a508644cffba5a03994611a67515284e7b58e33d497089f65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for neon3-sdk 0.1.2
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.