Skip to main content

S-Fifteen Python Library

Project description

S-Fifteen Python library

S15lib is a Python package for controlling S-Fifteen instruments.

Installation

Python 3.7+ is required. Install the package directly with

# For Linux/MacOS
pip install git+https://github.com/s-fifteen-instruments/pyS15.git

# For Windows and/or systems with compile-related installation difficulties
pip install git+https://github.com/s-fifteen-instruments/pyS15.git@no_compile

Alternatively, clone or download the repository and execute the following command from within the project directory.

pip install -e .

The library can be uninstalled with,

pip uninstall S15lib

For older versions of Python, see the relevant last supported version:

  • Python 3.6 @ v0.2.0: pip install git+https://github.com/s-fifteen-instruments/pyS15.git@v0.2.0

Usage

Via Python interpreter

Here is a minimal script to interface with the S-Fifteen power meter:

>>> from S15lib.instruments import PowerMeter
>>> pm = PowerMeter('/dev/serial/by-id/...')
>>> pm.get_power(780)  # optical power in mW, with 780nm incident wavelength
0.003378571428571428

More examples are available in the examples/ directory.

Via device application

The apps/ directory contains apps and graphical user interfaces (GUIs) for selected S-Fifteen devices, some of which require additional (graphing) dependencies that can installed with

pip install -e .[apps]

The apps can then be started either in the interpreter,

>>> from S15lib.apps import powermeter_app
>>> powermeter_app.main()

or by downloading the apps from the apps/ and starting them with,

python powermeter_app.py

Development

See the developer guide.

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

s15lib-0.3.0.tar.gz (255.9 kB view details)

Uploaded Source

Built Distributions

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

s15lib-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

s15lib-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (812.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

File details

Details for the file s15lib-0.3.0.tar.gz.

File metadata

  • Download URL: s15lib-0.3.0.tar.gz
  • Upload date:
  • Size: 255.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for s15lib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b4f04723001191aedfca08f8e970b09e03e7437851491e615a4485c7b8408898
MD5 08677e8fef663be81ea5714ece8ccce0
BLAKE2b-256 caba69937631e01edb570fc0b19ad953b29ce2306a3136c5071addd135bce17f

See more details on using hashes here.

File details

Details for the file s15lib-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for s15lib-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 11089b2d38ed0a19df1ea86c7df5217752731133a59c59a6de7ffee8c05e0e96
MD5 7478e3e0d18530ff3aedfe847b2d11a6
BLAKE2b-256 aca72b95dc08fa9b0ef08ddbfc16c065bec8c5697b2ec0a67fbf4c741591dd54

See more details on using hashes here.

File details

Details for the file s15lib-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for s15lib-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0fc792ba5fc925972078d0ae997458ae22da8ea3a034b74a373dddb6e17ad741
MD5 cd2b50aa6206ef3a2b9e1503e796c6df
BLAKE2b-256 93efd3e893aefa9dab8a30ed4b68a1d58ef101c8bbd9a4e0a776fd47833650c5

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