semvec/pypi-packages huggingface dataset:
cv 1.0.0
Check version of a Python module
License: MIT
Requires Python: >=3.7
Keywords: python packaging version pypi ci

# cv
[![PyPI](https://img.shields.io/pypi/v/cv)][pypi]
[![Downloads](https://img.shields.io/pypi/dm/cv)][pypi]
[![Build Status](https://img.shields.io/azure-devops/build/misha-drachuk/cv/9)](https://dev.azure.com/misha-drachuk/cv/_build/latest?definitionId=9&branchName=master)
[![Test Coverage](https://img.shields.io/coveralls/github/mdrachuk/cv/master)](https://coveralls.io/github/mdrachuk/cv)
[![Supported Python](https://img.shields.io/pypi/pyversions/cv)][pypi]

Check version of a Python module.

Raises an error if the `<module>.__version__`:
- already present on PyPI or custom warehouse deployment; 
- does not match [PEP 440](https://www.python.org/dev/peps/pep-0440);
- or does not match specified type: alpha/beta/rc/dev/release.

All of this comes in handy during CI.

And one more thing: No runtime dependencies!

## Installation
Available from [PyPI][pypi]:
```shell
pip install cv
```

## Module Example
With a \<module\> present on PyPI and `<module>.py` in current directory:
```python
__version__ = '7.7.7'

...
```

Simply run:
```shell
cv <module>
```

If `7.7.7` version of \<module\> is on PyPI already you’ll get a `VersionExists` error:
```plain
__main__.VersionExists: Package "<module>" with version "7.7.7" already exists on PyPI.
Change the "<module>.__version__" to fix this error.
```

## Package Example
Packages work in the same way as modules except `__version__` is defined in `<module>/__init__.py`


## Help
```plain
$ cv --help
usage: cv [-h] [-w WAREHOUSE] [--alpha] [--beta] [--rc] [--dev] [--release]
          [--dry]
          module

Check version of a Python package or module.

positional arguments:
  module                the package/module with "__version__" defined

optional arguments:
  -h, --help            show this help message and exit
  -w WAREHOUSE, --warehouse WAREHOUSE
                        package index to use, default is
                        "https://pypi.org/pypi"
  --alpha               check that version is an alpha, e.g. 1.0.0a1
  --beta                check that version is a beta, e.g. 1.0.0b2
  --rc                  check that version is a release candidate, e.g.
                        1.0.0rc
  --dev                 check that version is in development, e.g. 1.0.0.dev3
  --release             check that version is a release without modifiers,
                        e.g. 1.0.0
  --dry                 make no request to PyPI
```

[pypi]: https://pypi.org/project/cv/
package-index 1.0.0rc0
Dataclasses API for PyPI and other warehouses.
License: MIT
Requires Python: >=3.7
Keywords: python packaging pypi warehouse

# package-index
[![PyPI](https://img.shields.io/pypi/v/package-index)][pypi]
[![Build Status](https://img.shields.io/azure-devops/build/misha-drachuk/package-index/12)](https://dev.azure.com/misha-drachuk/package-index/_build/latest?definitionId=12&branchName=master)
[![Test Coverage](https://img.shields.io/coveralls/github/mdrachuk/package-index/master)](https://coveralls.io/github/mdrachuk/package-index)
[![Supported Python](https://img.shields.io/pypi/pyversions/package-index)][pypi]

Dataclasses API for PyPI and other warehouses. 

## Installation
Available from [PyPI][pypi]:
```shell
pip install package-index
```

## Usage

```python
>>> from package_index import fetch_package

>>> package = fetch_package('package-index')

>>> print(package.info)
PackageInfo(name='package-index', author='mdrachuk', author_email='misha@drach.uk', bugtrack_url=None, classifiers=['De...

>>> print(package.versions)
{'1.0.0b0', '1.0.0b1'}
```

[pypi]: https://pypi.org/project/package-index/
sorting-anton 0.2
This package lets you sort lists using Bubble Sort, Quick Sort, Insertion Sort and Selection Sort
License: MIT
Keywords: sorting_anton quick insert bubble selection

# Sorting Anton

This package provides 4 different sorting methods for lists: Bubble Sort, Insertion Sort, Quick Sort and Selection Sort

## Getting Started

Using this package is very simple
### Prerequisites

The testing capability of the package requires unittest and nose to run.
Sorting functions do not require any other additional packages.

```
alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
print(bubbleSort(alist))
```

### Installing

Install directly from PyPI using

```
pip install sorting
```


## Running the tests

You can just run 'test' on the setup file

```
$ python setup.py test
```


## Authors

* **Anton Benet** - [Personal Website](https://www.antonbenet.com/)

## License

This project is licensed under the MIT License.

## Acknowledgments

* Cedric and Ruben from Propulsion Academy
clips 1.1.0
Parser for command-line applications.
License: MIT
Keywords: cli parser commands arguments colors


# Clips

A simple parser for building graceful command-line interfaces, with chained commands and colorful usage messages. Clips uses [getopt](https://docs.python.org/3/library/getopt.html) for parsing command arguments and options (scanning mode is GNU-flavoured).

Colors are implemented through ANSI codes and they are not expected to work on Windows. More generally, please note that Clips is not tested for Windows environment.

# Quick start

Install with *pip*:

`pip install clips`

# Usage example

A console with a chained command:

```
from clips import ArgParser

# init console
console = ArgParser(
    'myconsole',                # prog. name
    description=description,    # prog. description
    banner=banner               # usage banner
)

# add a console-level argument
console.add_argument('-v', '--version', help='Show version')

# add a console command
cmd = console.add_command('command', help='A command')

# add a subcommand
subcmd = cmd.add_command('subcommand', help='A subcommand')

# add an argument to subcommand
subcmd.add_argument('arg', help='Argument for this subcommand')
```

Parsing method returns a dictionary of user context,

```
# parse arguments
args = console.parse_args(['command', 'subcommand', 'this'])
print(args)
```

so that output is:

```
{
    '-h': False,
    '--help': False,
    '-v': False,
    '--version': False,
    'command': True,
    'subcommand': True,
    'arg': 'this'
}
```

Argument can have default values:

```
console.add_argument('-o', '--opt', valued=True, default=10)
```

To display usage help:

```
# console-level usage
print(console.usage_help())

# command-level usage
print(console.usage_help(['command']))
print(console.usage_help(['command', 'subcommand']))

```

To disable internal management of help option:

```
# init console
console = ArgParser(
    'myconsole',                # prog. name
    add_help=False              # no help hook
)
```

Use colors for title and text:

```
# init console
console = ArgParser(
    'myconsole',                # prog. name
    title_fg='orange',          # title foreground color
    title_bg='green',           # title background color
    text_fg='green',            # text foreground color
    text_bg='orange'            # text background color
    )
```

Group commands by sections (this affects only usage help):

```
# create section with commands
console.add_section('First section')
cmd1 = console.add_command('cmd1')
cmd2 = console.add_command('cmd2')

# another section
console.add_section('Second section')
cmd3 = console.add_command('cmd3')
cmd4 = console.add_command('cmd4')
```

Available colors for titles and text parts:
- foreground: *black*, *red*, *green*, *orange*, *blue*, *cyan*, *lightgrey*, *darkgrey*, *lightred*, *lightgreen*, *yellow*, *lightblue*, *pink*, *lightcyan*
- background: *black*, *red*, *green*, *orange*, *blue*, *purple*, *cyan*, *lightgrey*