Skip to main content

Pocket Science Lab by FOSSASIA.

Project description

PSLab Python Library

The Python library for the Pocket Science Lab from FOSSASIA.

Build Status Gitter Codacy Badge Mailing List Twitter Follow

This repository hosts the Python library for communicating with the Pocket Science Lab open hardware platform (PSLab). Using this library you can communicate with the PSLab using simple Python code. The Python library is also used by the PSLab GUI as a backend component.

The goal of PSLab is to create an Open Source hardware device (open on all layers) and software applications that can be used for experiments by teachers, students and scientists. Our tiny pocket lab provides an array of instruments for doing science and engineering experiments. It provides functions of numerous measurement tools including an oscilloscope, a waveform generator, a logic analyzer, a programmable voltage and current source, and even a component to control robots with up to four servos.

For more information see https://pslab.io.

Buy

Installation

pslab-python can be installed from PyPI:

$ pip install pslab

Note: Linux users must either install a udev rule by running 'pslab install' as root, or be part of the 'dialout' group in order for pslab-python to be able to communicate with the PSLab device.

Note: If you are only interested in using PSLab as an acquisition device without a display/GUI, only pslab-python needs to be installed. If you would like a GUI, install the pslab-desktop app and follow the instructions of the Readme in that repo.

Validate installation

  1. Plug in the PSLab device and check that both the LEDs light up.
  2. The following piece of code should run without errors:
from pslab import ScienceLab
psl = ScienceLab()
capacitance = psl.multimeter.measure_capacitance()
print(capacitance)

Communication

Wherever we interact, we strive to follow the FOSSASIA Code of Conduct.

Contributing

See CONTRIBUTING.md to get started.

License

Copyright (C) 2014-2021 FOSSASIA

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

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

pslab-3.0.0.tar.gz (376.2 kB view details)

Uploaded Source

Built Distribution

pslab-3.0.0-py3-none-any.whl (121.0 kB view details)

Uploaded Python 3

File details

Details for the file pslab-3.0.0.tar.gz.

File metadata

  • Download URL: pslab-3.0.0.tar.gz
  • Upload date:
  • Size: 376.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pslab-3.0.0.tar.gz
Algorithm Hash digest
SHA256 02d141eaa7b088037e53cf1fe892115fe5b65fec5dd9ea72c1f90d8d163685f8
MD5 1e0b62aee34c44d5ebf55f0a70ef0f3e
BLAKE2b-256 1803e4d9d737db617ab5a4d3c9265867ca62bda422c715be7740c5dc3ffad7fb

See more details on using hashes here.

File details

Details for the file pslab-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: pslab-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 121.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pslab-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc0feb60916c317193caa18ced590392a01561c7051c2d933274d6b4d7dd24af
MD5 9f491d637aa63b48322c29690a90b6b5
BLAKE2b-256 f44b045a3dce80ef5faad43fd039b87edcdb20b0b358465d1b2772f2a93b8020

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