Anedya Nexus SDK for Python
The Anedya Nexus SDK lets Python applications communicate with Anedya Cloud, including from within a spark function runtime. It currently provides a synchronous client for submitting variable readings over gRPC (the default) or HTTP.
Install
pip install anedya-nexus-sdk
Quick start
Set your API key in the environment rather than hard-coding it in your application:
export ANEDYA_API_KEY="your-api-key"
Note:
If initializing the SDK from a Spark function, SDK automatically inherits the authentication context from the Spark runtime, so you do not need to set an API key in that case.
Then submit a variable reading:
import time
from anedya.nexus import AnedyaClient, VariableReading
reading = VariableReading(
node_id="your-node-id",
variable="temperature",
timestamp=int(time.time() * 1000),
float_value=23.5,
)
with AnedyaClient() as client:
response = client.data_management.submit_data(reading)
if not response.success:
raise RuntimeError(
f"Data submission failed: {response.error_message} "
f"({response.reason_code})"
)
timestamp is a Unix timestamp in milliseconds. You can also pass an API key directly with AnedyaClient(api_key="...").
To configure a custom domain, pass base_url to AnedyaClient. To use HTTP instead of gRPC, pass transport="http".
Links
- Anedya documentation
- GitHub repository
- License (Apache-2.0)
Metadata
Release files for anedya-nexus-sdk 0.0.1
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 |
|---|---|---|---|---|
| anedya_nexus_sdk-0.0.1.tar.gz | 16.0 kB | Without provenance | Details for anedya_nexus_sdk-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anedya_nexus_sdk-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for anedya_nexus_sdk-0.0.1-py3-none-any.whl |
Total release size: 34.3 kB
Release files / anedya_nexus_sdk-0.0.1.tar.gz
| Download URL | anedya_nexus_sdk-0.0.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1a7dfc40a62606c4bf3c2631e6d215ef8c653f8a1b0a88914728428611bd2b3
|
|
BLAKE2b-256 checksum How to use checksums |
2ad8ae4e7ebe489a29805f404f825c46ac619266677c4f41112452ca18563e7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / anedya_nexus_sdk-0.0.1-py3-none-any.whl
| Download URL | anedya_nexus_sdk-0.0.1-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e2d1eadd205a1e5882eb3294cc1c3f6fad95385037a18ff52c0636739a7abd1
|
|
BLAKE2b-256 checksum How to use checksums |
56b649cc801902345680775b833d8b383acfacc01676e36eb47ea82e47088e0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for anedya-nexus-sdk 0.0.1
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.