semvec/pypi-packages huggingface dataset:
richclass 1.0.1
A collection of feature rich classes
License: MIT
Keywords: class,features,tutorial

# A collection of feature rich classes

RichClass is a collection of python classes that aim to rapidly bridge the gap between verbose code and creating feature rich objects with common sense features. The flagship class for this package's release being `RichPath`, a class that builds on the `pathlib.Path` class but adds several quality of life tools such as the method `detect()` which returns True if the directory or file exists. `RichPath` also maintains an attribute `present` which maintains the memory of the result of `detect()` and is updated when that method is called.

# Classes
## RichPath

`RichPath` is a rich developed class 
This class simultaneously maintains both attributes:
* `path_str` the path represented as a string
* `path_obj` the path represented as a pathlib.Path object

Several additional attributes are available:
* `self.type` of a type enumerated by RichPathTypes
* `self.logger` The value is None by default, or a Logger class object if passed at initializing
* `self.logging_en` True if the RichClass initializing method is passed a Logger class object
* `self.required` If true, will raise a FileNotFoundError exception on failed self.detect()

Several methods are available for a class instance of RichPath:
* `self.detect` searches for the existence of the directory or file specified in the RichPath object and returns bool result
* `self.update_path_str` allows you to update the path of the RichPath object with a directory or file string
	* Calls self.detect() and returns bool result
* `self.update_path_obj` allows you to update the path of the RichPath object with a pathlib.Path class object
	* Calls self.detect() and returns bool result
servodoor 0.1.0
A simple library for controlling RC servo based doors
License: MIT
Requires Python: >=3.10,<3.12

# Servodoor: a simple library for controlling RC servo based doors 

Servo door is a simple library for controlling (RC servo) doors  via via
Pimoroni's [Servo 2040](https://shop.pimoroni.com/products/servo-2040)
18-channel servo controller. Initially designed for use in T-maze type
experiments. The Serovo 2040 must be running the
[servodoor-firmware](https://github.com/willdickson/servodoor-firmware)

## Installing
Install using pip 

```bash
$ pip install servodoor 
```

## Installing from source

This package uses the [poetry](https://python-poetry.org/) dependency manager.
The installation instructions for poetry can be found
[here](https://python-poetry.org/docs/#installation)

Once poetry is installed the serovodoor package can be installed using

```bash
$ poetry install
```
Additional documentation on using poetry can be found
[here](https://python-poetry.org/docs/)


## Usage
```python
import time
from servodoor import ServoDoor

port = '/dev/ttyACM0'
ctrl = ServoDoor(port)

rsp = ctrl.get_config()
print(rsp['config'])

rsp = ctrl.get_positions()
print(rsp['positions'])

ctrl.set_doors({'front': 'open'})
time.sleep(5.0)

ctrl.set_doors({'front': 'close'})
time.sleep(5.0)
```