semvec/pypi-packages huggingface dataset:
schwicv 0.0.9
Schwi's Utilities
License: MIT

# SchwiCV

## Installation

You can install the SchwiCV Tools from [PyPI](https://pypi.org/project/schwicv/):

    pip install schwicv

The package is supported on Python 3.6 and above.

# How to use
## Timer Lib
    from schwicv import Timer
    
    tmr = Timer(0.1)        # Makes Instance of Timer class with 0.1 seconds init time
    tmr.remaining_time      # Output of remaining time in seconds
    tmr.remaining_time_ms   # Output of remaining time in milliseconds
    tmr.execution_time      # Output of execution time since last start in seconds
    tmr.execution_time_ms   # Output of execution time since last start in milliseconds
    tmr.time_stamp          # Output of actual time stamp as datetime
    tmr.time_stamp_str      # Output of actual time stamp yearmonthday-hhmmss-Âµs example: 20210708-075514-612456
    tmr.remaining_percent   # Output of remaining time in percent
    tmr.time_over           # True if code needed more or equal 0.1 seconds
    tmr.restart()           # Restarts the timer with previous init time

    tmr.start(1)            # Restart timer with 1 second init time, if re-use instance
py-image-uploader 0.2.1
Upload images via APIs
License: MIT
Requires Python: >=3.9,<4.0
Keywords: cli,image,uploader

# py-image-uploader

> Upload images via APIs

[![PyPI version](https://img.shields.io/pypi/v/py-image-uploader)](https://pypi.org/project/py-image-uploader)
[![python-app](https://github.com/DeadNews/py-image-uploader/workflows/python-app/badge.svg)](https://github.com/DeadNews/py-image-uploader/actions)
[![python-codeql](https://github.com/DeadNews/py-image-uploader/workflows/python-codeql/badge.svg)](https://github.com/DeadNews/py-image-uploader/actions)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DeadNews/py-image-uploader/main.svg)](https://results.pre-commit.ci/latest/github/DeadNews/py-image-uploader/main)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=DeadNews_py-image-uploader&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=DeadNews_py-image-uploader)

## Hostings

- Works out of the box:

  - [fastpic](https://fastpic.org/)
  - [geekpic](https://geekpic.net/)
  - [pixhost](https://pixhost.to/)

- Key required:

  - [freeimage](https://freeimage.host/)
  - [imageban](https://imageban.ru/)
  - [imageshack](https://imageshack.us/)
  - [imgbb](https://imgbb.com/)
  - [imgur](https://imgur.com/)
  - [uploadcare](https://uploadcare.com/)

## Installation

```sh
pip install py-image-uploader
```

or

```sh
pipx install py-image-uploader
```

## Usage

```sh
Usage: py-image-uploader [OPTIONS] [IMAGES]...

  Upload images via APIs. The result will be copied to the clipboard.

Options:
  -h, --hosting [fastpic|freeimage|geekpic|imageban|imageshack|imgbb|imgur|pixhost|uploadcare]
                                  [default: geekpic]
  -b, --bbcode                    Add bbcode tags
  -t, --thumbnail                 Add thumbnails and bbcode tags
  --version                       Show the version and exit.
  --help                          Show this message and exit.
```

## Env variables

```ini
CAPTION_FONT= # default arial.ttf

FREEIMAGE_KEY=
IMAGEBAN_TOKEN=
IMAGESHACK_KEY=
IMGBB_KEY=
IMGUR_CLIENT_ID=
UPLOADCARE_KEY=
```

You can set these in environment variables, or in `.env` file:

- Unix: `~/.config/py-image-uploader/.env`
- MacOS: `~/Library/Application Support/py-image-uploader/.env`
- Windows: `C:\Users\<user>\AppData\Roaming\py-image-uploader\.env`