NKT-basik
Python interface for NKT Photonics Basik fiber seed lasers.
Install
pip install nkt_basik
API design
The package now exposes one high-level API layer:
BasikLaserModeModulationRangeModulationSourceModulationCouplingModulationWaveformDeviceReffind_devices()/find_device()/find_devices_by_names()
Mode and modulation setters require enum inputs.
Quickstart
from nkt_basik import (
Basik,
LaserMode,
ModulationCoupling,
ModulationRange,
ModulationSource,
ModulationWaveform,
)
device = Basik("COM4", 1)
print(f"Name: {device.name}")
print(f"Wavelength: {device.wavelength:.4f} nm")
print(f"Frequency: {device.frequency:.4f} GHz")
device.mode = LaserMode.POWER
device.emission = True
device.modulation = True
device.modulation_source = ModulationSource.BOTH
device.modulation_range = ModulationRange.NARROW
device.modulation_coupling = ModulationCoupling.DC
device.modulation_waveform = ModulationWaveform.SINE
device.modulation_frequency = 100.0
device.modulation_level = 10.0
device.modulation_offset = -5.0
device.frequency_setpoint = 275.1000
print(device.status)
print(device.error)
device.close()
Context manager usage is optional:
with Basik("COM4", 1) as device:
print(device.name)
Discovery
from nkt_basik import find_device, find_devices, find_devices_by_names
all_devices = find_devices()
named = find_device("seed-a")
grouped = find_devices_by_names(["seed-a", "seed-b"])
find_devices() always returns a list (possibly empty).
Errors
- Connection failures raise
nkt_basik.module.BasikConnectionError. - Bad API value types raise
nkt_basik.module.BasikTypeError. - Register communication errors raise
NKTRegisterException.
Release files for nkt-basik 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nkt_basik-0.5.0.tar.gz | 6.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nkt_basik-0.5.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
Total release size:12.3 MB
Release files / nkt_basik-0.5.0.tar.gz
| Download URL | nkt_basik-0.5.0.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1d5c58098b080524237010ccb1359dcba0330c6b81f0bbe6f1cb045199e8c2f
|
|
BLAKE2b-256 checksum How to use checksums |
6b928551e3a0d90ff360850149d0a430b9f35af24af76aec0169cf37d968c346
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.
Transparency logRelease files / nkt_basik-0.5.0-py3-none-win_amd64.whl
| Download URL | nkt_basik-0.5.0-py3-none-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2ef124b87dac831a57a7ca90333b66a45047c8d711ffb5b5282bbd4c3db4fe80
|
|
BLAKE2b-256 checksum How to use checksums |
b4c84537af4d88294b458fd810da6046bc8d629a4ba144ecc8cdf5f054634d33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.
Transparency log