Skip to main content

Welcome to labphew!

labphew logo

labphew is a minimalist code and folder structure for teaching computer-controlled lab instrumentation in Python. The main purpose of Labphew is to provide a basis for those with little coding experience to build their own user-interface(s) for a piece of hardware or to control a measurement and save their date in a properly reproducible manner.

Python for the Lab

This project is heavily inspired by the instruction exercise written by Dr. Aquiles Carattino, the mastermind behind Python for the Lab. If you want to learn more (serious!) coding for lab automation with Python, check the excellent PFTL website or book him for a course.

Python for the Lab (PFTL) is a code architecture and a programming course for computer-controlled instrumentation. PFTL codes are designed following the MVC design pattern, splitting the code into "controller"s for defining drivers, "model"s for specifying the logic of the experiment, and "view"s for parking the GUI. PFTL was developed by Uetke to explain to researchers, through simple examples, what can be achieved quickly with little programming experience. The ultimate goal of this project is to serve as a reference place for people interested in instrumentation written in Python.

The labphew package

Currently, the labphew package contains more wishes than executable pieces. However you can use its framework as a (hopefully convenient) starting point to write your own code. Please note that this package is published under GNU General Public License v3.0. You can read all the available instruction on labphew documentation

Hello world with mouse clicks

They are two recommended ways of installing labphew and using it out of the box:

Installation from the Python package index

You need to have pip installed.

If affirmative, you can use:

pip install labphew

Installation from source

Building the labphew dependencies are tested on Windows and Mac PCs. It should be possible to install also on linux but we have not tested it yet.

git clone https://github.com/sanlifaez/labphew.git
cd labphew
pip install .

If you want to start editing or adding to the code, we recommend that you fork the repository first to your own account and install it from there. This way of installation allows you to stay connected with the labphew repository and when needed, rebase to future releases.

Owning it

If you are ready to be more engaged and adapt labphew to control your own favorite setup, please read how to labphew.

How to contribute

The labphew roadmap is still incomplete and actively discussed between its maintainers, @AronOpheij and @sanlifaez. If your interests are aligned with the main goals of this project and you want to get involved, you can send a few lines to Sanli.

Metadata

Release files for labphew 0.3.2

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

Source distribution (sdist)

Source distribution for labphew 0.3.2
File Size Uploaded
labphew-0.3.2.tar.gz 77.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for labphew 0.3.2
File Interpreter ABI Platform
labphew-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 176.4 kB

Release files / labphew-0.3.2.tar.gz

Download URL labphew-0.3.2.tar.gz
Size 77.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d1f220a9d35b6b04cd10f8cd3345099ce94fe6a742aaaa791c996231f2cda1b6
BLAKE2b-256 checksum
How to use checksums
6ba7fef11c752efc7e2ae4a5987301ff0fe7df5dcd7a5c977499b6c9518a3d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / labphew-0.3.2-py3-none-any.whl

Download URL labphew-0.3.2-py3-none-any.whl
Size 99.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf9988bc38a9c7596e164a05b5a7e5f92e2af516a259300d2d34c55a4d0be115
BLAKE2b-256 checksum
How to use checksums
726bc76d6026a2538454cce7c440dba1d392dcbccc2eef78f1b72fbee90e03a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

1 release file

0.1.0

2 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