pymoteGO
python binding for cogmoteGO
Installation
pip install pymotego
or
uv add pymotego
Usage
Data broadcast
from pymotego.broadcast import Broadcast
from datetime import datetime, timedelta
from time import sleep
import random
broadcast = Broadcast()
results = ["correct", "incorrect", "timeout"]
for i in range(10):
start_time = datetime.now() - timedelta(seconds=random.randint(1, 60))
duration = random.randint(1, 5)
stop_time = start_time + timedelta(seconds=duration)
result = random.choice(results)
correct_rate = 1.0 if result == "correct" else 0.0
data = {
"trial_id": i + 1,
"trial_start_time": start_time.isoformat(),
"trial_stop_time": stop_time.isoformat(),
"result": result,
"correct_rate": correct_rate
}
future = broadcast.send(data)
print(future.result())
sleep(duration)
Internal backup API
The backup API is available only on cogmoteGO's loopback-only internal listener.
The default address is http://127.0.0.1:9011/api/; do not expose this listener
through a reverse proxy.
from pymotego import BackupClient, BackupDestination, BackupSource
source = BackupSource(
root_id="project-data",
entries=("20260713", "20260714/realdata/result.jsonl"),
)
destination = BackupDestination(
root_id="lab-nas",
path="experiments/project/data",
)
with BackupClient() as client:
created = client.create(source, destination)
current = client.current()
print(created.id, current.status if current else "no task")
The source and Samba root IDs must already be configured in cogmoteGO. Creating
a backup starts an asynchronous task; call current() to fetch its latest state.
Before any task has been created, current() returns None.
Metadata
Release files for pymotego 0.1.6
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 |
|---|---|---|---|---|
| pymotego-0.1.6.tar.gz | 5.6 kB | Without provenance | Details for pymotego-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymotego-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for pymotego-0.1.6-py3-none-any.whl |
Total release size: 13.1 kB
Release files / pymotego-0.1.6.tar.gz
| Download URL | pymotego-0.1.6.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0773ccde422f5f8c8e45033f12c429e3ce409ad08c269fab0a502c8915a8d87e
|
|
BLAKE2b-256 checksum How to use checksums |
6e6d2d8581a5167b94a2f4c29b928733e13d140cd0d2d4fdb80269f91f210498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pymotego-0.1.6-py3-none-any.whl
| Download URL | pymotego-0.1.6-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7162051fce03788d1829399869f0d60e855ef71be69f4f64c86e4db640fc654a
|
|
BLAKE2b-256 checksum How to use checksums |
ebe09494226538838a3ed790ce377a03518eeb8206775a985d033235c75ee550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pymotego 0.1.6
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.