semvec/pypi-packages huggingface dataset:
pysudo 1.1.0
libray for solving standard Sudoku
Requires Python: >=3.6

![](https://img.shields.io/badge/license-MIT-yellowgreen)
![](https://img.shields.io/badge/python-3-red)

# pysudo


# Installation Instructions
use pip or pip3 to install the library.
```
pip install pysudo
```

## Importing

```
from pysudo import solve
```

## Example of usage:

```
problem = [[6 , 7 , 0 , 0 , 0 , 0 , 0 , 0 , 2],
           [0 , 0 , 1 , 7 , 9 , 0 , 0 , 3 , 0],
           [0 , 5 , 0 , 0 , 6 , 2 , 0 , 0 , 0],
           [0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 5],
           [0 , 0 , 0 , 3 , 0 , 8 , 0 , 0 , 0],
           [2 , 4 , 0 , 0 , 0 , 0 , 0 , 0 , 0],
           [0 , 0 , 0 , 1 , 3 , 0 , 0 , 5 , 0],
           [0 , 8 , 0 , 0 , 5 , 7 , 1 , 0 , 0],
           [5 , 0 , 0 , 0 , 0 , 0 , 0 , 9 , 6]]

solved = solve(problem)

```

The empty cells in the Sudoku puzzle are to be filled by 0.

`solved` is an array having 9 arrays of row inside it representing the complete solved puzzle.

To visualize output use :

```
for rows in solved :
  print(rows)
```

### Output

```
[6, 7, 9, 4, 1, 3, 5, 8, 2]
[8, 2, 1, 7, 9, 5, 6, 3, 4]
[3, 5, 4, 8, 6, 2, 9, 7, 1]
[7, 3, 6, 9, 4, 1, 8, 2, 5]
[1, 9, 5, 3, 2, 8, 4, 6, 7]
[2, 4, 8, 5, 7, 6, 3, 1, 9]
[4, 6, 7, 1, 3, 9, 2, 5, 8]
[9, 8, 2, 6, 5, 7, 1, 4, 3]
[5, 1, 3, 2, 8, 4, 7, 9, 6]
```
Translatio 0.1.0
Translate big datasets effortlessly!

# Translatio
Library for translation of big datasets in Python

## Usage

```python
from translatio import Translator

# translate 4,000,000 rows starting from row 2,000,000
# translating column 'text' and keep original column 'id' from collection.tsv file
translatio = Translator(
    max_workers=30, per_request=5, target_lang='nl',
    checkpoint_folder='./checkpoint_2/', translate_columns=['text'], keep_columns=['id'])

batches = translatio.generate_batches("collection.tsv", names=['id', 'text'], batch_size=10000, rows=4_000_000, start_at=2_000_000)

translatio(batches, 'collection_translated_2_6.tsv')
```
## TODO
- [ ] add batches generator for long files
- [ ] add variables in config for sleep time
- [ ] batch autogeneration
- [ ] write docs
- [ ] write tests
- [ ] consider not using pandas