semvec/pypi-packages huggingface dataset:
archive-reddit-user 0.14
A tool to archive Reddit user comments
Keywords: reddit,archiver,comments,backup

# archive-reddit-user

This program allows a user to export their own comments (and others) and preserve the context surrounding the comment. The comments and the context surrounding the comment (if applicable) are saved in JSON format.

You can take it a step further and and create a hostable page to easily read and search through the comments.

## Installation and Usage

1. Install using pip: `pip install archive-reddit-user`.
2. Follow the setup wizard to create a `config.ini` file.
3. Run the command: `archive-reddit-user` in your Terminal.

## Arguments
* `--user`: specify a specific user to archive their comments.
* `--limit`: returns your rate usage (does uses one call).

## Coming Soon
* Testing
* `--nuke`: edit the comment and delete them.
* `--publish`: Create a page you can upload anywhere that provides a nice front-end to navigate
through the JSON-ified comments, with search!

## Is this safe?

When you first run `archive-reddit-user`, you're prompted to enter your client id, client secret (also known as an API key in other services), and credentials to your reddit account. These credentials are stored locally so you don't have to enter them everytime you run the program. You may wonder why it is in plaintext, I wrote something in the [wiki](https://github.com/rshin7/archive-reddit-user/wiki/Plaintext-Password) for more context.
PCA9685-smbus2 0.0.6
Pure Python interface for PCA9685 built on smbus2
Requires Python: >=3.7

# Python-PCA9685

A ~~probably~~ definitely not-best-practices way to use the PCA9685 with an Orange Pi Zero 3.

If it works, it works.

## Purpose

This library replaces [adafruit/Adafruit_Python_PCA9685](https://github.com/adafruit/Adafruit_Python_PCA9685) for
the Orange Pi Zero 3 and presumably other single board computers that may or may not have reliable Blinka support.

## Usage

This will set an SG90 micro servo plugged into channel 0 to spin to the -90° position.

```python
from PCA9685_smbus2 import PCA9685

pwm = PCA9685.PCA9685() # defaults to using i2c-3 and address 0x40
pwm.set_pwm_freq(50) # set frequency to 50 Hz for SG90 servos

pwm.set_pwm(0, 0, 102) # channel 0, on time 0?, off time 102 (1 ms)
```

The `on` and `off` times above are the number of ticks on the PCA9685, which has a 12-bit resolution and therefore can range from 0 to 4096.

## Tested on

This library has been tested on:
- Orange Pi Zero 3

It likely supports any board in which the accessible I2C bus can be found by running `ls /dev/i2c-*`, since it relies on the [smbus2](https://github.com/kplindegaard/smbus2) library for I2C interfacing.

Ensure that the relevant I2C interface has been enabled in `sudo orangepi-config` or `sudo raspi-config` (or whatever the case may be) for this to work right.
bmx280-spi 1.0.4
Python module to use the SPI bus to read bmp280/bme280 sensors
Requires Python: >=3.6
Keywords: bmp280,bme280,spi

# BMP280 / BME280 over SPI

Homepage: https://www.learningtopi.com/python-modules-applications/bmx280_spi/

BMP280/BME280 python3 driver using the SPI bus to control and read data.

General GPIO Pin (NOT an SPI CS) used to pull the signal pin low.  The SPI CS pins do not operate properly with the SPI kernel driver.

BMP280 datasheet: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp280-ds001.pdf

BME280 datasheet: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf

BMP280/BME280 Pinout:
    SCL = SCK (SPI Clock)
    SDO = MISO (sensor out to board in)
    SDA = MOSI (sensir in to board out)
    CSB = CS (select)

### Parts:
- BMP280 (Temp and pressure) - https://amzn.to/3YVwblE
- BME280 (Temp, pressure and humidity) - https://amzn.to/3JIxtMr

## Usage:


    # Import bmx280 SPI class
    from bmx280_spi import Bmx280Spi, MODE_NORMAL

    # initialize device
    # cs_chip and cs_pin from "gpioinfo".  gpiod used for platform compatibility.
    bmx = Bmx280Spi(spiBus=0, cs_chip=0, cs_pin=26)
    bmx.set_power_mode(MODE_NORMAL)
    bmx.set_sleep_duration_value(3)
    bmx.set_temp_oversample(1)
    bmx.set_pressure_oversample(1)
    bmx.set_filter(0)
    reading = bmx.update_reading() # returns instance of Bmx280Readings
    print(reading)
    # --or--
    print(reading.temp_c, reading.temp_f, reading.pressure_psi)

## Testing
Included in the module is a basic test script that can be executed with the following:

    python3 -m dht11_spi [gpio]

Additional test options are available for interval, run time, dht22.  Documentation is available using the "--help" option.

### Example Output

    DHT11: 105/105 (100.0%): Temps (min/avg/max): 73.54/75.2/75.34 deg FHumidity (min/avg/max): 17.0/17.0/17.0 %
    DHT22: 112/112 (100.0%): Temps (min/avg/max): 74.48/74.51/74.66 deg FHumidity (min/avg/max): 14.1/14.21/16.0 %
captchaOCR 1.0.1
A OCR tool to recognize captcha
Requires Python: >3.7

# captchaOCR

* 用于爬虫的验证码识别模块，[Github link](https://github.com/Do1e/captchaOCR)，[PyPI link](https://pypi.org/project/captchaOCR/)。

## 安装

```bash
python setup.py install
```

或者

```bash
pip install captchaOCR
```

## 使用

```python
from captchaOCR import CaptchaOCR
ocr = CaptchaOCR()
captchaImg = (bytes, str, pathlib.PurePath, Image.Image)()
text = ocr.get_text(captchaImg)
```

## 补充

* 本项目基于[sml2h3/ddddocr](https://github.com/sml2h3/ddddocr)编写，在此表示感谢。