semvec/pypi-packages huggingface dataset:
cp-upsolve-helper 0.0.2
UT wrapper helpers for upsolving competitive programming questions
Requires Python: >=3.8

# cp-upsolve-helper

https://pypi.org/project/cp-upsolve-helper/0.0.1/

## Usage
if on local
```bash
pip install .
```

from pypi
```bash
pip install cp-upsolve-helper==0.0.1
```

```python
import uthelper.helpers as helper
import unittest

@helper.run
class TestClass(unittest.TestCase):
    def test_example(self):
        self.assertEqual(True, True)

class TestClassDoesntRun(unittest.TestCase):
    def test_example_doesnt_run(self):
        self.assertEqual(True, False)
```

### defining custom solution function and testing

```python
import cphelper.helpers as cphelper

inp_str = """
8
2 3
1 2
3 11
1 5
5 10
4 6
3 9
250000000 500000000
"""

expected_output = """
6
4
33
25
20
12
27
1000000000
"""

r = cphelper.Runner(inp_str, [cphelper.MUL])


def solution(a, b):
    if a == 2 and b == 3:
        return 6
    return 0

r.test_solution(solution, expected_output)

```

output: note, passes the first case, fails on the others
```
F
======================================================================
FAIL: test_function (cphelper.helpers.Runner.test_solution.<locals>._.test_function)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/cphelper/helpers.py", line 67, in test_function
    sself.assertEqual(result, expected)
AssertionError: '0' != '4'
- 0
+ 4


----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (failures=1)
```
taras-makutra-character-counter 0.1.0
a program that counts unique characters
Requires Python: >=3.8

# TM_symbol_counter Package

This is a simple package that you can use to count unique
characters in a passed string or file.
After installing the package, you can start using it in the command line.
Run the task3_collections.py command with the required arguments

-f or --file FILE - an argument that requires specifying the path to the file

-s or --string STRING - an argument that requires a string in which to count characters

If you pass both arguments at the same time, the File argument will be preferred

Example: task3_collections.py -f " Filepath " -s " Test term "

In this case In this case, the package will count the unique characters that are in the file with the path " filepath "

Example 2: task3_collections.py -s " Test string "

In this case, the package will count the unique characters in " Test term " string