semvec/pypi-packages huggingface dataset:
python-stopwatch2 1.1.1
A simple library to measure code performance.
License: MIT
Requires Python: >=3.7,<4.0
Keywords: stopwatch,timer,time,profile

<!-- ================ SOCIAL CARD ================= -->

<p align="center"><img src="https://stopwatch2.vercel.app/social.png" alt="Social Card of Python Stopwatch 2"></p>

<!-- ================= TITLE/DESC ================= -->

# Python Stopwatch 2 ⏱️

This is a fork from [python-stopwatch](https://pypi.org/project/python-stopwatch/) , which adds static typing and a few other things.

<!-- =================== BADGES =================== -->

[![PyPi Version](https://img.shields.io/pypi/v/python-stopwatch2?&style=for-the-badge)](https://pypi.org/project/python-stopwatch2)
[![PyPi Downloads](https://img.shields.io/pypi/dm/python-stopwatch2?style=for-the-badge)](https://pypistats.org/packages/python-stopwatch2)
[![Python Versions](https://img.shields.io/pypi/pyversions/python-stopwatch2?&style=for-the-badge)](https://www.python.org)
[![Repo Size](https://img.shields.io/github/repo-size/devRMA/python-stopwatch2?&style=for-the-badge)](https://github.com/devRMA/python-stopwatch2)
[![MIT Licensed](https://img.shields.io/github/license/devRMA/python-stopwatch2?&style=for-the-badge)](https://github.com/devRMA/python-stopwatch2/blob/main/LICENSE)
[![Stars](https://img.shields.io/github/stars/devRMA/python-stopwatch2?&style=for-the-badge)](https://github.com/devRMA/python-stopwatch2/stargazers)
[![Contributors](https://img.shields.io/github/contributors/devRMA/python-stopwatch2?&style=for-the-badge)](https://github.com/devRMA/python-stopwatch2/graphs/contributors)

***

[![Tests](https://github.com/devRMA/python-stopwatch2/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/devRMA/python-stopwatch2/actions/workflows/tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/devRMA/python-stopwatch2/badge.svg?&style=for-the-badge)](https://coveralls.io/github/devRMA/python-stopwatch2)

<!-- ========== INSTALLATION AND TESTING ========== -->

## 📥 Installation and usage

This package requires python 3.7 or higher.
You'll find installation instructions and full documentation on https://stopwatch2.vercel.app.

## ⚠️ Testing

Run the tests with:

``` bash
poetry run task test
```

<!-- =========== CHANGELOG AND LICENSE ============ -->

## ✒️ Changelog

Please see [CHANGELOG](CHANGELOG.md) for detailed changes for each release.

## 📝 Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

## 📑 License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2021-2022 Jonghwan Hyeon, 2022-present Rafael
video-cli 1.3.3
Command line tools for quick video editing.
License: MIT
Requires Python: >=3.5

<div align="center">
  <h1>video-cli</h1>
  <h3>Command line tools for quick video editing.</h3>
  <a href="https://pypi.python.org/pypi/video-cli"><img src="https://img.shields.io/pypi/v/video-cli.svg"></a>
  <a href="https://pypi.org/project/video-cli"><img src="https://img.shields.io/pypi/pyversions/video-cli.svg"></a>
  <a href="https://github.com/wkentaro/video-cli/actions"><img src="https://github.com/wkentaro/video-cli/workflows/ci/badge.svg"></a>
</div>


Video-cli is made aiming at editing video with a one-line
command on a terminal. More detailed video editing can be done with
other Python tools (e.g., [MoviePy](https://github.com/Zulko/moviepy))
and GUI video editors (e.g., [iMovie](https://www.apple.com/imovie/)),
which is not the goal of this tool.


## Installation

```bash
pip install video-cli
```


## Commands

### `video-retime`: **Video Retiming (Speed Up/Down)**

```bash
video-retime data/2018-11-02_14-44-14.mp4 --retime 2
video-retime data/2018-11-02_14-44-14.mp4 --retime 2 --inplace
```

### `video-togif`: **Create a GIF**

```bash
video-togif data/2018-11-02_14-44-14.mp4 --fps 2 --duration 5
video-togif data/2018-11-02_14-44-14.mp4 --fps 2 --duration 5 --resize 0.5
```

### `video-trim`: **Video Triming**

```bash
video-trim data/2018-11-02_14-44-14.mp4 --start 3 --duration 5
```

### `video-tile`: **Video Tiling**

```bash
video-tile data/2018-11-02_14-44-14.mp4 data/2018-11-02_14-44-14.mp4 --shape 1x2 -o tile.mp4
```

### `video-toimg`: **Convert a Video to Images**

```bash
video-toimg data/2018-11-02_14-44-14.mp4 --per 10 --start 3 --duration 10
```

### `video-tovideo`: **Convert to Video**

```bash
video-tovideo data/2018-11-02_14-44-14.mp4
```

### `video-resize`: **Video Resizing**

```bash
video-resize data/2018-11-02_14-44-14.mp4 --scale 0.5
```

### `video-fromimg`: **Create a Video from Images**

```bash
video-toimg data/2018-11-02_14-44-14.mp4
video-fromimg --input-files "data/2018-11-02_14-44-14/*.jpg" --fps 30 out.mp4
```

### `video-crop`: **Crop a region of a Video**

```bash
video-crop data/2018-11-02_14-44-14.mp4
```
rin 0.1.2
A successor to the Lefi project
License: MIT
Requires Python: >=3.9,<4.0
Keywords: discord,discord-api

<div align="center">
    <h1>Rin</h1>
    <p>
        <a href="https://rin.readthedocs.io/en/latest/"><img src="https://img.shields.io/readthedocs/rin"</img></a>
        <a href="https://pypi.org/project/rin/"><img src="https://img.shields.io/pypi/dm/rin"</img></a>
        <a href="https://codecov.io/gh/an-dyy/Rin"><img src="https://codecov.io/gh/an-dyy/Rin/branch/master/graph/badge.svg?token=G0UG26MRYO"/></a>
        <a href="https://discord.com/invite/QPFXzFbqrK"><img src="https://img.shields.io/discord/907106240537169980?label=discord"</img></a>
        <a href="https://github.com/an-dyy/Rin/releases"><img src="https://img.shields.io/github/v/release/an-dyy/rin?include_prereleases&sort=semver"</img></a>
    </p>
    A strongly typed discord API wrapper. This is the successor to the Lefi project.
</div>

## Installation

### Installing from GitHub
```
pip install -U git+https://github.com/an-dyy/Rin
```

### Installing from Pypi
Note that since the project is still unstable, the lastest pypi version may be behind master by a lot.
```
pip install -U rin
```

## Example(s)
[Here!](examples/)

## Documentation
[Documentation](https://rin.readthedocs.io/en/latest/index.html)

## Contributing
1. If you plan on contributing please open an issue beforehand
2. Fork the repo, and setup the poetry env (with dev dependencies)
3. Install pre-commit hooks (*makes it a lot easier for me*)
    ```
    pre-commit install
    ```

## Notable contributors

- [blanketsucks](https://github.com/blanketsucks) - collaborator
- [an-dyy](https://github.com/an-dyy) - creator and maintainer
diogi 0.1.0
A library of tiny little functions to make development that little bit easier.
License: MIT

# diogi

Diog means to laze in Welsh. This package is to help me do less.

Most of the functions and decorators included in the `diog` package
could be easily implemented with a single line of obscure python
but then I would have to implement (and test) them again and again. 

I'd rather not. I'm lazy. 

## Functions

`always_a_list(obj: any) -> list` with alias `aal` 
takes any object and if it isn't a list already, it wraps it up in one.
It is also available as `@always_a_list` decorator. 

`default_if_none(obj: any, default: any) -> any:` with alias `din`
acts as a null coalescence.

`first_or_default(lst: list, default: any=None) -> any:` with alias `fod` returns the first element of a list
if there is at least one element, or the default value.

`get_if_exists(obj: any, key: str, default: any=None) -> any` with alias `gie`. 
attempts to get a property of a dictionary or an attribute of an object, and if it doesn't exist or is None the default value is returned.

`list_is_optional(obj: any) -> any` with alias `lio`
takes any object and if it is a list with a single element
then it returns just the element, otherwise the list is returned. 
It is also available as `@list_is_optional` decorator. 

`list_without_nones(lst: list) -> list` with alias `lwn`
returns copy of the list without any None values.
It is also available as `@list_without_nones` decorator. 

`none_if_empty(obj: any) -> any` with alias `nie`
returns copy of the object unless it is an empty list or an empty directory

`append_if_not_none(obj: any, value: any, key: str) -> any` with alias `ainn`

`get_if_exists(obj: any, key: str) -> any` with alias `gie`

`set_if_not_none(obj: any, value: any, key: str) -> any` with alias `sinn`

## Conventions

**to_data** sometimes the object needs to be converted to a simpler data
representation of dicts and lists. In those cases my objects implement 
a public method `as_data(self)`. The `diog.conventions.to_data(obj: any)` 
takes an object or a list of object, and reduces the input to data. 

## To Publish

```
pipenv shell
pipenv install
python setup.py pytest
python setup.py bdist_wheel
```