semvec/pypi-packages huggingface dataset:
rct-modelpool 0.1.1b0
Hub for rct models
License: MIT
Keywords: artificial intelligence,deep learning,attention free transformer,self-attention,transformer,natural language processing

# rct-modelpool

## Installation
Python package doesn't allow `-` in the package name.
So the package name is changed to `rct_modelpool`.
You can git install `rct_modelpool` via `pip`:

```bash
pip install git+https://github.com/rct-ai/rct-modelpool
```

## Usage
You can import the *sync_model* from the package like so:

### `sync_model`
```python
from rct_modelpool.modelpool import sync_model

path = sync_model("rcthub://CPM.csv")
print(path)

```
pcf8574-io 0.1.1
PCF8574 driver to set pin mode, read and write digital signal 3.3v
License: MIT
Keywords: PCF8574

### **Python driver for PCF8574 8bit IO Expander board**
Developed for the Raspberry Pi, requires python-smbus2 package to access the I2C bus.

Tested on raspberry pi 3b plus with two PCF8574 boards.


First install smbus2 using:
`pip3 install smbus2` 

then install the actual package using:
`pip3 install pcf8574-io`


Usage Example:
```python
import pcf8574_io

# You can use up to 8 PCF8574 boards
# the board will start in input mode
# the pins are HIGH in input mode
p1 = pcf8574_io.PCF(0x20)

# You can use multiple boards with different addresses
#p2 = pcf8574_io.PCF(0x21)

# p0 to p7 are the pins name
# INPUT or OUTPUT is the mode
p1.pin_mode("p0", "INPUT")
print(p1.read("p0"))

# You can write and read the output pins
# use HIGH or LOW to set the pin, HIGH is +3.3v LOW is 0v
p1.pin_mode("p7", "OUTPUT")
p1.write("p7", "LOW")
print(p1.read("p7"))

# Additional you can do the following
p1.set_i2cBus(1)
p1.get_i2cBus()
print(p1.get_pin_mode("p7")) # returns string OUTPUT, INPUT
print(p1.is_pin_output("p7")) # returns boolean True, False
print(p1.get_all_mode()) # returns list of all pins ["OUTPUT","INPUT",...etc]

```

Note: the board has only 25mA output current so if you want to control some relay modules,
that need more than 25mA use more than one pin to control each relay.

The board been used:
![alt text](https://image.made-in-china.com/2f0j00CbvRKwBGGecA/Pcf8574-Io-Expansion-Board-I-O-Expander-I2c-Bus-Evaluation-Development-Module.jpg)

#**Link**
https://pypi.org/project/pcf8574-io/