Upsilon.py
Upsilon.py is a wrapper for upsilon.js. It allow controlling the NumWorks from Python. To use this library, because of the dependency on Upsilon.js, you will need a working installation of Node with Npm
Installation
To install Upsilon.py, you can use pip:
python3 -m pip install upsilon.py
After the installation, you will have to install Upsilon.js and its dependencies:
npm install -g "upsilon.js@^1.4.1" usb
Usage
To use Upsilon.py, you will need to import it:
import upsilon_py
Then, you can create a new NumWorks object:
numworks = upsilon_py.NumWorks()
You will then be able to start the object and connect to the NumWorks:
await numworks.start()
await numworks.connect()
Now, the connection is established, you can send commands to the NumWorks:
# Get the status of the NumWorks (connected/disconnected)
status = await numworks.status()
print("Status:", status)
# Get the model of the NumWorks (return 100/110/120)
model = await numworks.get_model()
print("Model:", model)
# Get the platform info of the NumWorks (information about the OS)
platform_info = await numworks.get_platform_info()
print("Platform info:", platform_info)
# Backup the storage of the NumWorks
storage = await numworks.backup_storage()
# Add a file to the storage
storage["records"].append({
"name": "Test",
"type": "py",
"autoImport": True,
"code": "print(\"Hello World!\")"
})
# Install the modified storage
await numworks.install_storage(storage)
# Stop the object (you can also use numworks.disconnect() to keep the object
# running and connect to another NumWorks)
await numworks.stop()
Metadata
Release files for upsilon-py 1.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 |
|---|---|---|---|---|
| upsilon_py-1.0.1.tar.gz | 5.0 kB | Without provenance | Details for upsilon_py-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| upsilon_py-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for upsilon_py-1.0.1-py3-none-any.whl |
Total release size: 11.1 kB
Release files / upsilon_py-1.0.1.tar.gz
| Download URL | upsilon_py-1.0.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32dab5fc07eed71aaf1542fe48ec0e38d7c9a0382f099a11c2fd7ea409c24114
|
|
BLAKE2b-256 checksum How to use checksums |
87d142cac1230088cc36a514f33ba32ed632455989f5bb1c4c595f8af39b4e6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / upsilon_py-1.0.1-py3-none-any.whl
| Download URL | upsilon_py-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
797829b3db4fec2b0e19e94713ad23ab51188951de85550a0480ac103dab19bf
|
|
BLAKE2b-256 checksum How to use checksums |
6b37d30f2b5349c9302dfa57459f42106fd303dce7ab72b0eb7b527096a15b9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for upsilon-py 1.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.