Skip to main content

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.

Metadata

Release files for S15lib 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for S15lib 0.3.0
File Size Uploaded
s15lib-0.3.0.tar.gz 255.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for S15lib 0.3.0
File Interpreter ABI Platform
s15lib-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details
s15lib-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details

Total release size: 2.5 MB

Release files / s15lib-0.3.0.tar.gz

Download URL s15lib-0.3.0.tar.gz
Size 255.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b4f04723001191aedfca08f8e970b09e03e7437851491e615a4485c7b8408898
BLAKE2b-256 checksum
How to use checksums
caba69937631e01edb570fc0b19ad953b29ce2306a3136c5071addd135bce17f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / s15lib-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL s15lib-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl
Size 1.4 MB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
11089b2d38ed0a19df1ea86c7df5217752731133a59c59a6de7ffee8c05e0e96
BLAKE2b-256 checksum
How to use checksums
aca72b95dc08fa9b0ef08ddbfc16c065bec8c5697b2ec0a67fbf4c741591dd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / s15lib-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL s15lib-0.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 812.5 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0fc792ba5fc925972078d0ae997458ae22da8ea3a034b74a373dddb6e17ad741
BLAKE2b-256 checksum
How to use checksums
93efd3e893aefa9dab8a30ed4b68a1d58ef101c8bbd9a4e0a776fd47833650c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.3.0 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page