semvec/pypi-packages huggingface dataset:
srne 0.8.4
A library for SRNE compatible devices.
Requires Python: >=3.7.3

# srne-python
 A python library for controlling SRNE compatible off-grid, grid-connected and energy storage inverters.

# Usage:

- Import the controller
- Basic configuration (serial port, register filter, etc.)
- Read, write registers

## Example:

```python
from srne import Controller

controller = Controller(dummy=True)

result = controller.read_register("battery_voltage")

print(result)
# output:
# {'register': Register(0x101), 'response': ReadHoldingRegistersResponse([0x0, 0x3, 0x2, 0x1, 0x1, 0x45, 0xd4])}
```

For additional examples check the repo.

## Notes

No tests. Most of the functionality is showcased in the examples, you can see if it works.

Input value validators or `encoder`s aren't implemented yet, not sure if will be.

Modbus implementation is partial and has poor error handling, but follows Modbus and SRNE specifications.

For writing web apps the `AsyncController` is recommended.

Register filtering is a bit complicated...
Calling it with no arguments will select every readable register to make things easier.
Its intended use is to run less function calls when reading the same registers over
and over again. To use this, first call the `filter_registers()` function then each subsequent call of `get_register_values()` and `serialize()` on the controller will use the buffered register sequences.
gaohn-common-utils 0.0.112
A small utility package
Requires Python: >=3.7

# Common Utils

[![Continuous Integration](https://github.com/gao-hongnan/common-utils/actions/workflows/continuous_integration.yaml/badge.svg)](https://github.com/gao-hongnan/common-utils/actions/workflows/continuous_integration.yaml)

## Continuous Integration

### Virtual Environment

First, make a virtual environment with `make_venv.sh`:

```bash
curl -s -o make_venv.sh \
  https://raw.githubusercontent.com/gao-hongnan/common-utils/main/scripts/devops/make_venv.sh && \
bash make_venv.sh venv --pyproject --dev && \
source venv/bin/activate && \
rm make_venv.sh
```

### Continue on error vs If Always

See
[here](https://stackoverflow.com/questions/58858429/how-to-run-a-github-actions-step-even-if-the-previous-step-fails-while-still-f/58859404#58859404).

### Run Bandit Security Check

```bash
bash ./scripts/devops/ci/ci_security_bandit.sh \
  --severity-level=low \
  --format=json \
  --output=bandit_results.json \
  common_utils
```

### Run Linter Check

```bash
bash ./scripts/devops/ci/ci_linter_pylint.sh \
  --rcfile=pyproject.toml \
  --fail-under=10 \
  --score=yes \
  --output-format=json:pylint_results.json,colorized \
  common_utils
```

### Run Formatter Black Check

```bash
bash ./scripts/devops/ci/ci_formatter_black.sh \
  --check \
  --diff \
  --color \
  --verbose \
  common_utils
```

### Run Formatter Isort Check

```bash
bash ./scripts/devops/ci/ci_formatter_isort.sh \
  --check \
  --diff \
  --color \
  --verbose \
  common_utils
```

## Run MyPy Type Check

```bash
bash ./scripts/devops/ci/ci_typing_mypy.sh \
  --config-file=pyproject.toml \
  common_utils \
  | tee mypy_results.log
```

### Run Unit Test

## Run Integration Test

### Run System Test

### Run Acceptance Test

See [madewithml](https://madewithml.com/courses/mlops/testing/).

### Run Data Test (Great Expectations)

### Run Markdown Lint

```bash
npm install -g markdownlint-cli && \
touch .markdownlint.json && \
```

```bash
npm install --save-dev --save-exact prettier
```

```bash
# prettier
function pr() {
  if [ -z "$1" ]; then
    echo "Error: TARGET_DIR is mandatory."
    return 1
  fi

  TARGET_DIR="$1"
  prettier "$TARGET_DIR" --write \
    --prose-wrap always \
    --print-width 80 \
    --tab-width 4 \
    --use-tabs true
}
```

```bash
pr <TARGET_MARKDOWN_FILE>
markdownlint --fix <TARGET_MARKDOWN_FILE>
```
jrpyspark 0.1.1
Jumping Rivers: Big Data Analytics with PySpark
Requires Python: >=3.8

# Python packages

These packages were created using the poetry python package.

https://github.com/sdispater/poetry

To rebuild this package, clone the repo and install poetry.

The following commands at the project root will then be useful

* `poetry install` - grab and install all the dependencies necessary for building the package.
* `poetry build` - build the wheels and tar for the package
* `poetry publish` - publish the package to pypi

If you want to build your own package from scratch, the README for poetry is a good source.