Skip to main content

Python interface for Titan 2 device

Project description

T2PY

Python interface for Titan 2. Simple and easy to use.

Install

pip install t2py

Example

import t2py

# Find Titan Two devices
devices = t2py.Titan2.getdisc()
for port, vid, pid in devices:
    print(f"Found Titan Two: {port}")

# Connect and send data
t2 = t2py.Titan2()  # Uses default VID/PID
if t2.connect():
    # Send GVC values (will be converted to fixed point)
    t2.sendgvc([1, 100])  # First value is flag, second is signal
    
    # Stop signaling
    t2.sendgvc([1, 0])
    t2.disconnect()

Dev

git clone https://github.com/yourusername/t2py.git
cd t2py
pip install -e ".[dev]"

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t2py-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t2py-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file t2py-0.1.1.tar.gz.

File metadata

  • Download URL: t2py-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for t2py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 69e9c2d46ec03b5a542547ba25ec037245c85329a45c2006188508947b196a2f
MD5 00e832bb5e3eb339d748218bcd8af049
BLAKE2b-256 271687c1bf8921fb47ad38d7be9f0cf282d9bc10f20da875c37a7db5068a9880

See more details on using hashes here.

File details

Details for the file t2py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: t2py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for t2py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6266b3bf8225bd8914e57b7a8821d48f44508cc22ed5e8d366838deb9d24a311
MD5 42b4ff0f0736329b2aa9bc29e3f47a5f
BLAKE2b-256 0ac57c837a0ecbf365ff7c963286625bacf65d3daaf349c74d288d5f92c11a61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page