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
resolves and downloads the latest runtime release 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 resolved release is cached under %LOCALAPPDATA%\Neon3Sdk\runtime\<tag>.
Set NEON3_RUNTIME_VERSION=v0.2.1 when reproducible pinning is required.
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.3
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.3.tar.gz | 25.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neon3_sdk-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.2 kB
Release files / neon3_sdk-0.1.3.tar.gz
| Download URL | neon3_sdk-0.1.3.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd62647fff7ecaf5aba79c9d24bdbd1d6be098cf87eafe50045ceb4d4d08d9f5
|
|
BLAKE2b-256 checksum How to use checksums |
74f9e7ec0e81688d234e2d73705a0c44ab8d5a4d6406c77087194b9c2ba758e2
|
| 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.3-py3-none-any.whl
| Download URL | neon3_sdk-0.1.3-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0644c1f546e3a5d761589dbd2514786d5e65add06d6002f1dc8d6d5dd4a0369
|
|
BLAKE2b-256 checksum How to use checksums |
47088e516501998f15409f5f5d47407a719927d541139da4ba60106dcbe20768
|
| 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.3
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.