semvec/pypi-packages huggingface dataset:
cgshop2022utils 0.1.0
Utilities for the CG:SHOP 2022 Optimization Competition on Minimum Partition into Plane Subgraphs.
Requires Python: >=3.6

# Official Utilities for the CG:SHOP 2022 Challenge

This package provides some utilities for handling instances and solutions for the
*CG:SHOP 2022 Challenge on Minimum Partition into Plane Subgraphs*.
These are the tools that are used by us, the (technical) organizers, to handle our
instances and your solutions.
* Reading and writing instances.
* Reading and writing solutions.
* Verifying solutions for correctness.

The source code can be found [here](https://gitlab.ibr.cs.tu-bs.de/alg/cgshop2022-pyutils).

## Installation

The installation is simple:
```shell
pip install cgshop2022utils
```

If `pip` does not install the dependencies for you you may also need
```shell
pip install networkx
```

The verification component (currently under development) will be implemented in C++
and require a more complicated installation. We will probably provide a precompiled
version for Linux, but other systems may need to compile the package by hand.
We will provide instructions for this in due time.

## Reading instances

```python
from cgshop2022utils.io import read_instance

instance = read_instance("path or file object to instance")
```
The instance is a dict of the following format:
```python
{
        "type": "Instance_CGSHOP2022",
        "id": "unique name of instance",
        "meta": dict, # with information on the instance (e.g., the polygon for visibility instances)
        "graph": networkx.Graph, # The instance graph with typing.Tuple[int, int] as vertices.
}
```

Check out the documentation of [networkx](https://networkx.org/documentation/stable/) on how to deal with the graphs.
It is fairly straight forward.
For example:
```python
print("Points:")
for v in graph.nodes:
    print(v)
print("Edges:")
for v,w in graph.edges:
    print(v, "<->", w)
```
VkStatusPy 1.1
Simple module for easy-working with VK Status

## VkStatusPy - простой способ для работы со статусом в ВК! ##

![VkStatusPy Logo](https://i.imgur.com/KicDzKe.png "VkStatusPy")

**VkStatusPy** позволяет легче взаимодействовать со статусами во ВКонтакте! VkStatusPy работает быстро и хорошо в своём деле!






### Инструкция: ###
Установка модуля **VkStatusPy** с **pypi.org**:
> pip3 install VkStatusPy

### Использование модуля: ###
Импортирование модуля **VkStatusPy**:
```py
from VkStatusPy import *
```
Подключение вашего API-токена:
```py
test = VkStatusPy(token="ВАШ_ТОКЕН")
```
Доступные методы:
```py
test.set_status(text)
test.set_status_group(text, group_id)
test.get_status(user_id)
test.get_status_group(group_id)

# text - строка; user_id - положительное число; group_id - положительно число.
```
Получение статуса:
```py
test.get_status(user_id=ID_ПОЛЬЗОВАТЕЛЯ)
>> Текст статуса

test.get_status_group(group_id=ID_ГРУППЫ)
>> Текст статуса группы
```
Обновление статуса (установка своего значения):
```py

# В случае успеха смены статуса, будет возвращаться значение - 1.

test.set_status(text="ВАШ_ТЕКСТ")
>> 1

test.set_status_group(text="ВАШ_ТЕКСТ", group_id=ID_ГРУППЫ)
>> 1
```
Возможные ошибки:

>**Error [15]** - доступ отклонен. Нету доступа к данной группе.

>**Error [100]** - неверное ID группы/полозователя.

>**Error [221]** - пользователя отключил трансляцию название музыки в статус.