semvec/pypi-packages huggingface dataset:
piweatherrock 2.1.0
Provides forecast data from ClimaCell for PiWeatherRock
License: MIT
Requires Python: >=3.6

# PiWeatherRock

![GitHub](https://img.shields.io/github/license/genebean/PiWeatherRock)
![PyPI](https://img.shields.io/pypi/v/piweatherrock)

PiWeatherRock displays local weather on (almost) any screen you connect to a Raspberry Pi. It also works on other platforms, including macOS.

More information about the project and full documentation can be found at https://piweatherrock.technicalissues.us. Be sure to check out the getting started guide under the documentation link there for instruction on how to set everything up.

## Release process

- edit `version.py` according to the types of changes made
- edit `requirements.txt` if needed
- `python3 setup.py sdist bdist_wheel`
- `tar tzf dist/piweatherrock-*.tar.gz`
- `twine check dist/*`
- [optional] `twine upload --repository-url https://test.pypi.org/legacy/ dist/*`
- `twine upload dist/*`
- Create a git tag and push it
piweatherrock-webconfig 1.5.0
Provides a web interface for configuring PiWeatherRock
License: MIT
Requires Python: >=3.6

# piweatherrock-webconfig

![GitHub](https://img.shields.io/github/license/genebean/piweatherrock-webconfig)
![PyPI](https://img.shields.io/pypi/v/piweatherrock-webconfig)

This is the source code for the `piweatherrock-webconfig` Python module. Its provides a web interface for configuring [PiWeatherRock](https://piweatherrock.technicalissues.us).

- [Usage](#usage)
- [Many thanks](#many-thanks)
- [Release process](#release-process)

## Usage

This is a standalone package that just needs to know where the config file for PiWeatherRock is located. For example, if you keep the config file in the home directory of the default user on a Raspberry Pi, you'd call it like this:

```bash
pwr-webconfig -c /home/pi/piweatherrock.json
```

## Many thanks

The code for this was contributed by [@metaMMA](https://github.com/metaMMA). It used to be embedded in the main PiWeatherRock code base but has now been moved here so that it can be installed via pip.

## Release process

- edit `version.py` according to the types of changes made
- `python3 setup.py sdist bdist_wheel`
- `tar tzf dist/piweatherrock-*.tar.gz`
- `twine check dist/*`
- [optional] `twine upload --repository-url https://test.pypi.org/legacy/ dist/*`
- `twine upload dist/*`
- Create a git tag and push it
rsyncwrap 0.1.1
A python wrapper of rsync that yields stats updates.
License: MIT
Requires Python: ==3.*,>=3.8.0

# A library for using rsync from python.

```python
from pathlib import Path

from rsyncwrap import rsyncwrap

source = Path('/the_source')
dest = Path('/the_destination')

for update in rsyncwrap(source, dest):
    print(update)
```

`rsyncwrap` yields progress updates via `Stats` objects that have the following properties:

* `in_progress_stats`: An instance of `TransferStats` (see below for a description).
* `transferring_path`: An instance of `pathlib.Path` that indicates the path that is currently
transferring.
* `last_completed_path`: An instance of `pathlib.Path` that indicates the last path to finish
transferring.
* `completed_paths`: A dictionary with `pathlib.Path` keys and `TransferStats` objects as values.
  The value for each key is the stats for that completed transfer.
* `last_completed_path_stats`: An instance of `TransferStats` for the last *completed* transfer.
* `total_transferred`: The total bytes transferred so far.  Does not include bytes already at the
 destination when the transfer started.
* `raw_output`: A list of lines we got from the underlying rsync command.  Useful for debugging
during development.

`TransferStats` objects look like this:

* `transferred_bytes`:  The total bytes transferred for the current line of rsync output.
* `percent`:  The percent complete for the current file being transferred.
* `time`:  Rsync's estimated time for the current file being transferred.
* `transfer_rate`:  Rsync's value for the current transfer in bytes.
* `transfer_rate_unit`: Rsync's outputted transfer rate unit.  e.g. "MB/s"
* `is_completed_stats`:  Is this the stats for a completed file transfer?


Notes about how we use rsync:

* We call rsync with the `-a` option. This means it's recursive and preserves everything except
hard links.
* This early version only supports transferring the `source` directory *into* the destination
directory.  In other words, in the above example we'd end up with `/the_destination/the_source`.
* Of course, since this is rsync, we only transfer changed bytes and this means it's a resumable
process.
* In my testing rsync yields a stats update about once a second, so that's how often we yield
them to the caller.