semvec/pypi-packages huggingface dataset:
problem-solving-offline-judge 1.0.0
알고리즘 문제풀이 오프라인 저지
Requires Python: >=3.6

# 개요

[백준](https://www.acmicpc.net) 이나 [코드포스](https://codeforces.com) 문제를
풀 때 여러 케이스를 실행하여 결과를 보여줍니다.

# 설치

```sh
$ pip install problem_solving_offline_judge
```

문제풀이의 상단 디렉토리에 CLI 용 파일을 생성하여 다음과 같은 내용을 입력합니다.
파일명은 관계없지만 이 설명서에서는 `judge.py` 를 사용하겠습니다.

```py
# judge.py
from problem_solving_offline_judge import judge

judge.cli()
```

# 사용법

```sh
$ python3 ./judge.py <문제 디렉토리 이름>
```

파이썬에서는 패키지로 사용할 디렉토리 이름은 문자 나 `_` 로 시작해야 합니다.
하지만 디렉토리 이름을 전부 입력할 필요는 없습니다.

```sh
$ python3 ./judge.py b_1000
$ python3 ./judge.py 1000
```

성공할 경우 다음과 같이 출력됩니다.

```bash
$ python3 ./judge.py 1000
SUCCESS! 1.in (48 ms)
```

실패할 경우 다음과 같이 출력됩니다.

```bash
$ python3 ./judge.py 1000
FAIL! 1.in (47 ms)
Result:
2
Expected:
3
```

# 디렉토리 구조

```bash
├── b_1000
│   ├── 1.input.txt
│   ├── 1.output.txt
│   ├── 2.input.txt
│   ├── 2.output.txt
│   └── problem.py
├── b_1001
│   ├── ...
│   ├── ...
└── judge.sh
```

```py
# problem.py
# solve, solution, main 함수 중 하나는 반드시 있어야 합니다.
def solve():
    # 풀이 (아래는 백준 1000번 문제 샘플입니다)
    a, b = map(int, input().split())
    print(a+b)

# 백준이나 코드포스에 그대로 복사해서 붙여넣기 위해 필요합니다.
if __name__ == "__main__":
    solve()
```

- judge.py: CLI 스크립트
- \b_1000: 문제 디렉토리
- \b_1000/1.input.txt: 입력값. `1.in` 과 같은 형식도 가능합니다.
- \b_1000/1.output.txt: 솔루션이 출력해야하는 값. 입력값 파일명에서 `in` 을 `out` 으로 바꾸시면 됩니다.
- problem.py: 문제 모듈 파일. 이름은 `problem.py` 이 아니어도 됩니다. 자세한 구조는 위 파일내용을 참조해주세요.
Perimetr 0.0.3
A dead hand system that monitor changes in network device and act accordingly
Requires Python: >=3.6

# Perimetr

A dead hand system that monitor changes in network device and act accordingly.

## Installation

```bash
python3 -m pip install Perimetr
```

## Usage

```python
from Perimetr import Monitor

monitor = Monitor("IP", "192.168.0.1", 15, print, "Target is offline")
monitor.activate()
>> Target is offline
```

## Documentation

```python
def __init__(self, method, target, interval, callback, *args, retry=0,
        offline=True, all=True, delay=None, **kwargs):
        """Init the monitor with appropriate parameters. Currently support
        monitor device status with IP address and MAC address. Require the
        target device to be within same network.

        Parameters
        ----------
        method : str
            Takes "IP" or "MAC" as values. Used to specifies the ways to probe
            target devices. Must match the type of `target` parameter. Currently
            only check by IP address is supported.

        target : str || [str]
            The IP or MAC address of the target device(s). Must match the type
            of `method` parameter. If multiple target passed in, then all of
            them will be checked.

        interval : int
            The number of seconds until next check.

        callback : callable
            The callback function when device status change meets the required
            criteria. Will be called with `args` and `kwargs`.

        retry : int, optional
            Number of times to retry with `interval` apart until the system
            is considered triggered. Default is no retry.

        offline : bool, optional
            Triggers the callback function when device went offline or online.
            Default to when device went offline.

        all : bool, optional
            Used when multiple targets are passed in. If true, then all targets
            need to meet criteria before system triggered. Else, only one device
            status is required. Default to True.

        delay : int, optional
            The number of seconds delay of execute callback after triggered.
            Default is None.

        *args : arguments
            Used for callback function.

        **kwargs : keyword arguments
            Used for callback function.

        Raises
        ------
        ValueError
            When method provided is incorrect, or target provided mismatch
            with the method.
        """
```
CM-text-sdk-python 1.1.3
Python SDK for text with CM.
Requires Python: >=3.6

# Text-sdk-python
![publish to PyPi](https://github.com/cmdotcom/text-sdk-python/workflows/publish%20to%20PyPi/badge.svg)
![PyPi](https://img.shields.io/pypi/v/CM_text_sdk_python
)

## A helper library to sending messages using python.
Want to send messages in your Python application? Then you are at the right address.
If you want to get all the functionalities, go to: [CM.com API Docs](https://docs.cmtelecom.com/bulk-sms/v1.0)

## Installing
Include the SDK by downloading the files manually or running the following command in a Python Shell.
```cs
    pip install CM_Text_sdk_python
```

## Instantiate the client
Use your productToken which authorizes you on the CM platform. Get yours on CM.com

```cs
    from CMText.TextClient import TextClient

    client = TextClient(apikey=key)
```

## Send a message
By calling `SendSingleMessage` and providing message text, sender name, recipient phone number(s).

```cs
    client = TextClient(apikey=key)
    client.SendSingleMessage(message=message, from_='CM.com', to=Recipients)
```

## Sending multiple messages
By calling `AddMessage` and providing message text, sender name, recipient phone number(s) you can queue multiple messages. Send them by calling `send`.

```cs
    client = TextClient(apikey=key)
    client.AddMessage(message=message, from_='pythonSDK', to=Recipients)
    client.AddMessage(message=message2, from_='pythonSDK', to=Recipients2)
    response = client.send()
```

## Sending a rich message
By calling `AddRichMessage` and providing `Media`, message text, sender name, recipient phone number(s) you can queue multiple Rich messages. Send them by calling `send`.

```cs
    media = {
            "mediaName": "conversational-commerce",
            "mediaUri": "https://www.cm.com/cdn/cm/cm.png",
            "mimeType": "image/png"
        }

    client = TextClient(apikey=key)
    client.AddRichMessage(message=message, from_='pythonSDK', to=to, allowedChannels=allowedChannels, media=media)
    response = client.send()
```

## Sending a Whatsapp Template message
By calling `AddWhatsappTemplateMessage` and providing `Template`, sender name, recipient phone number(s) you can queue multiple Whatsapp Template messages. Send them by calling `send`.

```cs
    template_namespace = "Your-Template-Namespace"
    template_element_name = "Replace with Template Name"
    template = WhatsappTemplate(template_namespace, template_element_name)
    
    client = TextClient(apikey=key)
    client.AddWhatsappTemplateMessage(from_='pythonSDK', to=to, template=template)
    response = client.send()
```

See Examples folder for more examples.

## Get the result
Sending a message by calling `send` returns the response body. Response is of type: https://requests.readthedocs.io/en/master/user/quickstart/#response-content
```cs
    response = client.send()
```