semvec/pypi-packages huggingface dataset:
utilki 0.13.0
A collection of useful utilities
Requires Python: >=3.10

# utilki

[![codecov](https://codecov.io/gh/realbikmaev/utilki/branch/main/graph/badge.svg?token=VN0UMT7O9A)](https://codecov.io/gh/realbikmaev/utilki)

utils that are frequently used by me and might be useful for others

## installation

```bash
pip install utilki
```

## TaskMixin

Mixin class that adds `create()` classmethod to dataclass you define as your task params. Useful when you have a lot of container based tasks executed on remote clusters (e.g. Kubernetes, Hashicorp Nomad, etc.). It reads task params from environment variables, parses, and validates them. 

```python
from utilki import TaskMixin

@dataclass
class Task(TaskMixin):
    ayy: float = 69.69
    lmao: str = "420"

os.environ["ayy"] = "42.42"
os.environ["lmao"] = "69"

t = Task.create()
print(f"ayy: {t.ayy}, type: {type(t.ayy)}")
# ayy: 42.42, type: <class 'float'>
print(f"lmao: {t.lmao}, type: {type(t.lmao)}")
# lmao: 69, type: <class 'str'>
```

## Cli

### Venv

```bash
$ utilki venv 3.8.10
$ Enter venv name: new_venv
$ Created venv `new_venv` with Python version 3.8.10
```
jsw-scrapy 1.0.15
Jsw for scrapy.
Requires Python: >=3.7,<4.0

# jsw-scrapy
> Jsw for scrapy.

## installation
- https://pypi.org/project/jsw-scrapy/
```shell
pip install jsw-scrapy -U
```

## usage
```python
from jsw_scrapy.spiders.base_spider import BaseSpider
from jsw_scrapy.pipelines.base_pipeline import BasePipeline
```