Skip to main content

Fun with computer-controlled experiments for beginners

Project description

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.

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

labphew-0.3.2.tar.gz (77.1 kB view details)

Uploaded Source

Built Distribution

labphew-0.3.2-py3-none-any.whl (99.3 kB view details)

Uploaded Python 3

File details

Details for the file labphew-0.3.2.tar.gz.

File metadata

  • Download URL: labphew-0.3.2.tar.gz
  • Upload date:
  • Size: 77.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for labphew-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d1f220a9d35b6b04cd10f8cd3345099ce94fe6a742aaaa791c996231f2cda1b6
MD5 5fa44493dd04cfaac08e39bf2a789ead
BLAKE2b-256 6ba7fef11c752efc7e2ae4a5987301ff0fe7df5dcd7a5c977499b6c9518a3d72

See more details on using hashes here.

File details

Details for the file labphew-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: labphew-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 99.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for labphew-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf9988bc38a9c7596e164a05b5a7e5f92e2af516a259300d2d34c55a4d0be115
MD5 d60c45967b292f953da208def633f659
BLAKE2b-256 726bc76d6026a2538454cce7c440dba1d392dcbccc2eef78f1b72fbee90e03a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page