Control Leica microscopes with python
Project description
leicacam
Documentation: https://leicacam.readthedocs.io
Source Code: https://github.com/MartinHjelmare/leicacam
Control Leica microscopes with python
Installation
Install this via pip (or your favourite package manager):
pip install leicacam
Example
Communicate with microscope
from leicacam import CAM
cam = CAM() # initiate and connect, default localhost:8895
# some commands are created as short hands
# start matrix scan
response = cam.start_scan()
print(response)
# but you could also create your own command with a list of tuples
command = [('cmd', 'enableall'),
('value', 'true')]
response = cam.send(command)
print(response)
# or even send it as a bytes string (note the b)
command = b'/cmd:enableall /value:true'
response = cam.send(command)
print(response)
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file leicacam-0.6.0.tar.gz
.
File metadata
- Download URL: leicacam-0.6.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b2d43e0cbde11431aaec28d7af919a462bb4fe925e37d440c0b7a2cb6a1f946 |
|
MD5 | 0c04507c5728498da55e131dcbd9d3d9 |
|
BLAKE2b-256 | 8b593ccf2a22308c5d58a238c087396fc0e246ce468a586243bd71e7649f3c55 |
Provenance
The following attestation bundles were made for leicacam-0.6.0.tar.gz
:
Publisher:
ci.yml
on MartinHjelmare/leicacam
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
leicacam-0.6.0.tar.gz
- Subject digest:
8b2d43e0cbde11431aaec28d7af919a462bb4fe925e37d440c0b7a2cb6a1f946
- Sigstore transparency entry: 182866368
- Sigstore integration time:
- Permalink:
MartinHjelmare/leicacam@b577f43a2252c7f5dc804c542aeadf2aa4dc9d28
- Branch / Tag:
refs/heads/main
- Owner: https://github.com/MartinHjelmare
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
ci.yml@b577f43a2252c7f5dc804c542aeadf2aa4dc9d28
- Trigger Event:
push
- Statement type:
File details
Details for the file leicacam-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: leicacam-0.6.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6589da6c5cefd6002a6c0db76b329562ec39f79bbfd9b75c2aa0180542575a |
|
MD5 | 6e5ddd41d833a3a75acb23de2c03473e |
|
BLAKE2b-256 | 7f3b7287db0f8e4d5e40f91fc38f1df7ac5d43e62579cd66df1692952541931c |
Provenance
The following attestation bundles were made for leicacam-0.6.0-py3-none-any.whl
:
Publisher:
ci.yml
on MartinHjelmare/leicacam
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
leicacam-0.6.0-py3-none-any.whl
- Subject digest:
8b6589da6c5cefd6002a6c0db76b329562ec39f79bbfd9b75c2aa0180542575a
- Sigstore transparency entry: 182866370
- Sigstore integration time:
- Permalink:
MartinHjelmare/leicacam@b577f43a2252c7f5dc804c542aeadf2aa4dc9d28
- Branch / Tag:
refs/heads/main
- Owner: https://github.com/MartinHjelmare
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
ci.yml@b577f43a2252c7f5dc804c542aeadf2aa4dc9d28
- Trigger Event:
push
- Statement type: