Skip to main content

Python client for naneos particle solutions gmbh devices.

Project description

naneos-devices (python toolkit)

License Python GitHub Issues GitHub Pull Requests

Naneos Logo

This repository contains a collection of Python scripts and utilities for our naneos measurement devices. These scripts will provide various functionalities related to data acquisition, analysis, and visualization for your measurement devices.

Installation

You can install the naneos-devices package using pip. Make sure you have Python 3.9 or higher installed. Open a terminal and run the following command:

pip install naneos-devices

Usage

To establish a serial connection with the Partector2 device and retrieve data, you can use the following code snippet as a starting point:

import time
from naneos.partector2 import Partector2, scan_for_serial_partector2

# Lists all available Partector2 devices
x = scan_for_serial_partector2()

# Connect to the first device
myP2 = Partector2(list(x.values())[0], 1)
time.sleep(2)

# Get the data as a pandas DataFrame
data = myP2.get_data_pandas()
print(data)

myP2.close()

Make sure to modify the code according to your specific requirements. Refer to the documentation and comments within the code for detailed explanations and usage instructions.

Documentation

The documentation for the naneos-devices package can be found in the package's documentation page.

Important commands when working locall with tox

tox -e clean #cleans the dist and docs/_build folder
tox -e build #builds the package based on the last tag
pipenv install -e . #installs the locally builded package

tox -e docs #generates the documentation

tox -e publish  # to test your project uploads correctly in test.pypi.org
tox -e publish -- --repository pypi  # to release your package to PyPI

tox -av  # to list all the tasks available

Protobuf

Use this command to create a py and pyi file from the proto file

protoc -I=. --python_out=. --pyi_out=. ./protoV1.proto 

Ideas for future development

  • P2 BLE implementation that integrates into the implementation of the serial P2
  • P2 Bidirectional Implementation that allows to send commands to the P2
  • Automatically activate Bluetooth or ask when BLE is used

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please submit an issue on the issue tracker. If you'd like to contribute code, please follow the guidelines mentioned in the CONTRIBUTING file.

Please make sure to adhere to the coding style and conventions used in the repository and provide appropriate tests and documentation for your changes.

License

This repository is licensed under the MIT License.

Acknowledgments

If you would like to acknowledge any individuals, organizations, or resources that have been helpful to your project, you can include them in this section.

Contact

For any questions, suggestions, or collaborations, please feel free to contact the project maintainer:

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

naneos-devices-0.6.1.tar.gz (61.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

naneos_devices-0.6.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file naneos-devices-0.6.1.tar.gz.

File metadata

  • Download URL: naneos-devices-0.6.1.tar.gz
  • Upload date:
  • Size: 61.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for naneos-devices-0.6.1.tar.gz
Algorithm Hash digest
SHA256 ed81000c6e1c7c13a811100d622079bec31846c352bba7c44c39a8ca1759ad43
MD5 472c506aaf27796bdb71e6040768e224
BLAKE2b-256 e6d4e553bceed3007a25a5e6af9dcb4db74e2147f85ceb6d9108c0480b1632ca

See more details on using hashes here.

File details

Details for the file naneos_devices-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: naneos_devices-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for naneos_devices-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c2a9ee81d622d33af881aeed6e15fdd1a62036c0677cc0c7e25591f42e54094
MD5 3d187fcd8f98381ce2254dc60f553ebd
BLAKE2b-256 550c58facfdc99edd583fe03bf15a2e3e92c975f31270204518d972db213e819

See more details on using hashes here.

Supported by

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