semvec/pypi-packages huggingface dataset:
python-minimizer 2.0.1
Minimizes Python code using Python's lexical scanning tokenize module.
Keywords: minimization minification minimize minify mit-license

# python-minimizer
Minimizes Python code using Python's lexical scanning tokenize module.

## Get it on pip
```sh
 pip install python-minimizer 
 ```

## Command-line usage
Currently python-minimizer supports the following options:
```sh
usage: minimizer.py [-h] [-o OUT_PATH] [-b] [-c] [-d] [-s]
                    [-w WHITESPACE_CHAR] [-i INDENT_CHAR] [-r] [-v]
                    in_path

Minimizes Python code using Python's lexical scanning tokenize module.

positional arguments:
  in_path               The file to minimize

optional arguments:
  -h, --help            show this help message and exit
  -o OUT_PATH, --out-path OUT_PATH
                        When specified, minimizer will output to the path
                        instead of stdout
  -b, --keep-blank-lines
                        When set, minimizer will not remove blank lines.
  -c, --keep-comments   When set, minimizer will not remove comment lines and
                        inline comments
  -d, --keep-docstrings
                        When set, minimizer will not remove docstrings
  -s, --keep-whitespace
                        When set, minimizer will not remove extraneous
                        whitespace
  -w WHITESPACE_CHAR, --whitespace-char WHITESPACE_CHAR
                        Set the whitespace character to use. Defaults to space
                        (" ")
  -i INDENT_CHAR, --indent-char INDENT_CHAR
                        Set the indentation character to use. Defaults to tab
                        ("\t")
  -r, --recursive       Treat the in-path and --out-path as directories to
                        minimize recursively
  -v, --verbose         Explain what we are doing as we do it, higher levels
                        are useful for debugging

By default, the minimizer removes blank lines, comments, docstrings, and
extraneous whitespace. Where needed, it will insert a space (" ") for
whitespace between operators and use a tab ("\t") for indentation. Use the
command line switches to change any of the defaults.
```

## Library usage
Of course, you can also import the minimizer module and use it as follows:
```python
from minimizer import minimize
with open(code_file, 'r') as f:
    code = f.read()
minimized_code = minimize(code)
with open(minimized_file, 'w') as f:
    f.write(minimized_code)
```
By default, the ```minimize``` function will remove blank lines, comments, docstrings, and whitespace between operators and uses a space (" ") for the whitespace character and a tab ("\t") for the indent character, but accepts keyword arguments to change these options.
pyaparat3 0.0.1
download aparat videos
Requires Python: >=3.6

# pyaparat

![python](assets/1_DkpdC3lSQ6P4sXLVWPcpyA.png)

Hello my friends this is [Mr.Rezoo](https://www.linkedin.com/in/reza-mobaraki/)

## Table of contents

* [General info](#General-info)
* [Technologies](#Technologies)
* [Help](#Help)
* [Setup](#Setup)
* [Credits](#credits)
* [Contributors](#Contributors)
* [License](#license)

## General info

build scraper to download video from www.aparat.com

## Technologies

Project is created with:

* Python: 3.9.4
* bs4: 4.9.3
* requests: 2.25.1

## Help

If you are considering a particular method, more modern technology Add to my
project and send merge request, I will add you in the credits and contributors
section

## Setup

* first step : create virtual environment

```shell
virtualenv -p python3 venv 
```

* second step : activate virtual environment

```shell
source venv/bin/activate  
```

* third step : install package | library from requirements.txt

```shell
 pip install -r requirements.txt
```
fourth step
```shell
pip install pyaparat3
```
* last step

```python
from pyaparat3.main import Main

a = Main('url', 'quality')
a.download()
```

## Credits

* [mongard](https://www.mongard.ir/courses/pyaparat/)

## Contributors

* [MrRezoo](https://github.com/MrRezoo)

## License

Distributed under the MIT License. See [license](LICENSE) for more information.