Time Tagger RPC implementation using Pyro5.
Alpha version !
This project is in the alpha stage of the development. This means that the code successfully passed basic testing and is operational. However, some things might be broken, and the API may change in the future versions.
Install
> pip install TimeTaggerRPC
Run server
Start the server on a PC with the Time Tagger connected.
> TimeTaggerRPC-server --help
usage: TimeTaggerRPC-server [-h] [--host localhost] [--port 23000] [--use_ns] [--start_ns]
--------------------------------------------
Swabian Instruments Time Tagger RPC Server.
--------------------------------------------
optional arguments:
-h, --help show this help message and exit
--host localhost Hostname or IP on which the server will listen for connections.
--port 23000 Server port.
--use_ns Use Pyro5 name server.
--start_ns Start Pyro5 name server in a subprocess.
Client example
Control Time Tagger remotely over the network.
import matplotlib.pyplot as plt
from TimeTaggerRPC import client
with client.createProxy(host='localhost', port=23000) as TT:
tagger = TT.createTimeTagger()
tagger.setTestSignal(1, True)
tagger.setTestSignal(2, True)
hist = TT.Correlation(tagger, 1, 2, binwidth=5, n_bins=2000)
hist.startFor(int(10e12), clear=True)
x = hist.getIndex()
while hist.isRunning():
plt.pause(0.1)
y = hist.getData()
plt.cla()
plt.plot(x, y)
TT.freeTimeTagger(tagger)
You can find more information about the Time Tagger API in the official documentation.
Metadata
Release files for TimeTaggerRPC 0.0.6.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timetaggerrpc-0.0.6.post1-py3-none-any.whl | Python 3 | none | any | Details for timetaggerrpc-0.0.6.post1-py3-none-any.whl |
Release files / timetaggerrpc-0.0.6.post1-py3-none-any.whl
| Download URL | timetaggerrpc-0.0.6.post1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8715f6afe607588c16dcfaaab4d935cf0ef4c36dc9a659bd420be2dcb6edf3c5
|
|
BLAKE2b-256 checksum How to use checksums |
4ec8ba44e71eccfdf40d3a0e7b88494622b329bf2ad2629b725b8a63dc245a65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for TimeTaggerRPC 0.0.6.post1
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.