semvec/pypi-packages huggingface dataset:
uscan-notify 0.1.1
Notify when uscan detects new upstream versions.
License: MIT
Requires Python: >=3.11,<4.0

# uscan-notify
Command line tool to notify of any outdated Debian packages by using uscan info
available from qa.d.o.

## Install

I can't publish to PyPi as new registrations are temporarily disabled, but you
can install from the Codeberg package registry like so:

```sh
pip install --index-url https://codeberg.org/api/packages/Maytha8/pypi/simple/ uscan-notify
```

**From source**

```
git clone https://codeberg.org/Maytha8/uscan-notify
cd uscan-notify

poetry install
poetry run uscan-notify --help # or

pip install .
```

## Usage

Use `--help` flag for usage info.


### Example: email notifications

Here's a bash script to send email notifications with the output (to use with
e.g. cron)

```bash
result="$(uscan-notify --db-path <packages>)"

if [[ $result ]]; then
  echo "uscan-notify has found outdated packages, below are the results:

$result" | mail -s "[uscan-notify] Outdated packages" "<your email>"
fi

```

## Why?

I wanted to setup email notifications whenever a new upstream version is released.

## Copyright

Copyright &copy; 2023 Maytham Alsudany `<maytha8thedev@gmail.com>`

## License

MIT (unless otherwise indicated). See [LICENSE](./LICENSE).
debian-rfs-stats 0.3.1
Statistics regarding RFS wait times on Debian.
License: MIT
Requires Python: >=3.11,<4.0

# debian-rfs-stats
Calculate mean and median waiting time in days for RFS (Request for Sponsor)
bugs in Debian to be closed.

## Install

I can't publish to PyPi as new registrations are temporarily disabled, but you
can install from the [Codeberg package
registry](https://codeberg.org/Maytha8/-/packages/pypi/debian-rfs-stats) like
so:

```sh
pip install --index-url https://codeberg.org/api/packages/Maytha8/pypi/simple/ debian-rfs-stats
```

From source? This project uses Poetry, so a simple `poetry install` and `poetry
run debian-rfs-stats` should work. Use `pip install .` in the source directory
to install from source.

## Usage

Use `--help` flag for usage info.

## What is an RFS?

When someone outside of the Debian project (i.e. not a [Debian
Developer](https://wiki.debian.org/Glossary#debian-developer) nor [Debian
Maintainer](https://wiki.debian.org/Glossary#debian-maintainer)) creates a
package for a piece of software, they cannot upload their packages directly to
the official Debian archives, as only members of Debian can do so.

Instead, these people file RFS ("Request for Sponsor") reports against the
sponsorship-requests [virtual
package](https://wiki.debian.org/Glossary#virtual-package), asking for a Debian
Developer to review their work and upload the package on their behalf.

## Why?

I made this so I could see around how long I should wait for my RFS bugs in
Debian to be addressed.

## Copyright

Copyright &copy; 2023 Maytham Alsudany `<maytha8thedev@gmail.com>`

## License

MIT. See [LICENSE](./LICENSE).
unsplash-get 0.1.2
unsplash srape tool
License: MIT
Keywords: unsplash scrape stock images

unsplash_get
======================
Script for scraping unsplash. Only for educational purposes.

Install
**************************

from pypi

.. code-block:: bash

    pip install unsplash-get

from github

.. code-block:: bash

    pip install git+https://github.com/streanger/unsplash-get.git

Usage from command line
**************************

.. code-block:: bash

    # as module
    python -m unsplash_get <word>
    python -m unsplash_get orange

    # as entry point
    unsplash <word>
    unsplash orange

    # as script
    python unsplash_get.py <word>
    python unsplash_get.py orange

Usage from Python (save images)
*********************************************

.. code-block:: python

    from pathlib import Path
    from unsplash_get import search, save_img

    # get list of urls
    word = 'orange'
    urls = search(word)

    # create directory
    directory = Path(word)
    directory.mkdir(exist_ok=True)

    # save images
    for index, url in enumerate(urls, start=1):
        path = str(directory / f'{word}_{index:03}.jpg')
        status = save_img(url, path)
        print(f"{index:03}.{url} -> {path} ({status})")

Usage from Python (load image to variable)
*********************************************

it requires additional libraries (**PIL** and/or **numpy**), which could be installed with

.. code-block:: bash

    pip install Pillow numpy

example code

.. code-block:: python

    import io
    import numpy as np
    from PIL import Image
    from unsplash_get import search, get_image

    def load_img_to_pil(data):
        img = Image.open(io.BytesIO(data))
        return img

    def load_image_to_numpy(data):
        img = np.array(Image.open(io.BytesIO(data)))
        return img

    # get list of urls
    word = 'orange'
    urls = search(word)
    url = urls[4]

    # read image
    data = get_image(url)
    pil_img = load_img_to_pil(data)
    numpy_img = load_image_to_numpy(data)

Screenshots
**************************

.. image:: https://raw.githubusercontent.com/streanger/unsplash-get/master/images/unsplash1.png