semvec/pypi-packages huggingface dataset:
skm-pyutils 1.0.0
skm_pyutils: Python Utilities

# PythonUtils

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

A module containing common scripts that I use in my research.
Documentation available at https://seankmartin.github.io/PythonUtils/html/skm_pyutils/index.html.

## Installation

`pip install skm_pyutils`

## Update documentation

`pdoc --html -o "docs\html" skm_pyutils --force`

## Command line running

```Bash
pdf-merge -h
dir-list -h
```

For example

```Bash
pdf-merge -d . -r -o merged.pdf
dir-list . -r -e .txt -o txt_file_list.txt
copy-files input_dir output_dir -re .*results.*.png
```

## Modules

- array : Small numpy style functions.
- config : Config utils, e.g read a full .py python file as configuration using exec.
- log: Logging utils, e.g. logging exceptions to disk and stdout.
- merge : combine csv files together, or grab files of a particular type from recursive folders and merge into one folder
- path: Path utils, e.g. finding all files in a directory with given extension recursively.
- pdf : PDF utils, e.g. merging all PDFs files in a directory, or pdfs with given pages
- plot : Plotting utils, e.g. automatically handled gridding of plots, with color management.
- print : Printing utils, e.g. pretty printing a dictionary, or HDF5 file.
- profile : Code profiling, e.g. profiling code for runtime performance.
- save : Saving outputs, e.g. a full dictionary recursively.
- stats : Hyptothesis tests etc.
- tables : Pandas dataframe utils.
baem200 0.0.13
Bachmann electronic Python Util Library

# baem200

Bachmann electronic Python Util Library

Connection und utils methods for M200 Serie

## Content

* **m1com**

Wrapper for the m1com.dll

* **m1config**

Python methods to read and write mconfig.ini files for the M200 controller

* **utils**

Some Python methods to set IP-Address and find M200 controller in the network

## Getting Started

Please install this library on you local computer

### Installation

```
pip install baem200
```

### Example

```
from baem200.m1com import M1Controller
from pprint import pprint

mh = M1Controller('your_M1_IP')
mh.connect()
pprint(mh.getListofHwModules())
mh.disconnect()
```

### Documentation
The full documentation can be found in the ['doc' directory](https://github.com/bachmann-m200/baem200/tree/master/doc). Here you can for example navigate to the 'html/index.html' file to find a full description of each method (content should be downloaded first).

Furthermore, the files ending with 'Test.py' show an example for each class and each method in the class ([example: m1comTest.py](https://github.com/bachmann-m200/baem200/blob/001e40ef145846639e368c378679d27c14709921/baem200/m1comTest.py#L199))

Below you can directly view the documentation of all the available classes in the browser:

[M1Controller](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_m1_controller.html)

[M1Application](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_m1_application.html)

[M1SVIObserver](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_m1_s_v_i_observer.html)

[M1SVIReader](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_m1_s_v_i_reader.html)

[M1SVIWriter](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_m1_s_v_i_writer.html)

[M1TargetFinder](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_m1_target_finder.html)

[\_M1SwModule](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1___m1_sw_module.html)

[\_SVIVariable](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1___s_v_i_variable.html)

[PyCom](http://htmlpreview.github.io/?https://github.com/bachmann-m200/baem200/blob/master/doc/html/classbaem200_1_1baem200_1_1m1com_1_1_py_com.html)

## License

This project is licensed under Bachmann electronic License - see the [LICENCE](LICENCE) file for details
ipycanvas-drawing 0.0.5
A small widget to let users draw by hand in a Jupyter notebook.
Requires Python: >3.6

# Jupyter drawing utility
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/rubenwiersma/ipycanvas_drawing/HEAD?labpath=examples%2Fexample_drawing.ipynb)

Small utility to make simple drawings in Jupyter notebooks with ipycanvas and ipywidgets.
Useful for getting quick user input in research prototypes, e.g., for masking or annotation.

![Example usage](img/example_screenshot.png)


## Install
```bash
pip install ipycanvas-drawing
```

## Usage
Create a simple drawing interface. Check out the notebook in `examples` for a more complete example.

```python
from ipycanvas_drawing import DrawingWidget

# Create a drawing widget
# You can set other setup parameters: background, alpha, default_style, default_radius
drawing_widget = DrawingWidget(width=500, height=500) 
# Show the drawing widget
drawing_widget.show()

# Get the image data as a numpy array
image_output = drawing_widget.get_image_data()
```

## Known issues
- Visual Studio Code's Jupyter environment doesn't like ipycanvas's `sync_image_data` functionality.
  Workaround: open notebooks in Jupyter lab or Notebook in the browser.
- ipycanvas does not work in Google Colab.
  Workaround: use the [Binder](https://mybinder.org/v2/gh/rubenwiersma/ipycanvas_drawing/HEAD?labpath=examples%2Fexample_drawing.ipynb) to quickly try the tool without needing to install it on your own machine.

## Credits
Based on the [hand drawing example](https://github.com/martinRenou/ipycanvas/blob/master/examples/hand_drawing.ipynb) provided by @martinRenou, but adds some additional functionality like adding squares and ellipses and a 1-step undo.