semvec/pypi-packages huggingface dataset:
zonecover 0.1.0
ZoneCover is a package for zone coverage by operators
License: MIT
Requires Python: >=3.7

# ZoneCover

ZoneCover - package written in Python language and designed to solve
tasks of coverage of zones by operators on the principle of the greedy
algorithm with the possibility add, modify, delete and display operator
data and covered zones.

## Requirements

This package was written on Python versions at least 3.7, so in order to avoid
errors and incorrect work requires Python >= 3.7.

## Installation

The package can be installed with the following command in the console:
```
pip install zonecover
```
Together with the package will be installed and its dependencies: modules click,
fire and pytest.

## Usage

The package contains three main modules that have the necessary
to solve the task of the function:
- general - contains functions for collaboration with data of operators
    and covered zones  
    _For example_:
    ```Python
    >>> from zonecover.general import total
    >>> operators = { 
    ...     'Mike': {'1', '2', '3', '4', '5'},
    ...     'David': {'3', '6', '2', '8', '9'},
    ...     'Elza': {'5', '11', '9', '6', '1'},
    ...     'Sara': {'12', '13', '8', '4', '7'}
    ... }
    >>> cover_zone = {'2', '4', '13', '8', '9'}
    >>> result = total(operators, cover_zone, False)
    >>> print(result)
    ('Selected operators', ['David', 'Sara'])
    ```

- opers - contains functions for work only with data of operators  
    _For example_:
    ```Python
    >>> from zonecover.opers import add, show_one
    >>> operators = { 
    ...     'Mike': {'1', '2', '3', '4', '5'},
    ...     'David': {'3', '6', '2', '8', '9'},
    ...     'Elza': {'5', '11', '9', '6', '1'},
    ...     'Sara': {'12', '13', '8', '4', '7'}
    ... }
    >>> add(operators, 'Kate', {'13', '4', '8', '7', '9'})
    >>> show_one(operators, 'Kate')
    Operator: Kate
    Coating zones: 13 4 7 8 9
    ```

- cover - contains features to work only with covered zones  
    _For example_:
    ```Python
    >>> from zonecover.cover import cover_add, show_cover
    >>> cover_zone = {'2', '4', '13', '8', '9'}
    >>> cover_add(cover_zone, {'17', '42', '11'})
    >>> show_cover(cover_zone)
    Covered zones:
    11 13 17 2 4 42 8 9
    ```

In addition, the package can be launched from the console as an independent
program with the command:
```
zonecover
```
In this case, entering all data will occur with the keyboard by the user.

It is also possible to install flags -t (--test) and (or) -e (--example),
which will launch tests and (or) examples respectively:
```
zonecover -t -e
```

Most of the modules of this package (installed with it) have CLI. 
More details in the documentation of the modules themselves.

## License

This package is licensed in accordance with the MIT license - see details
in the LICENSE.txt file.

## Contact information

Author: Vyacheslav Velger  
Email: vyvelger@yandex.ru