semvec/pypi-packages huggingface dataset:
olxbrasil 0.2.7
Biblioteca para scrapping da Olx Brasil (olx.com.br)
License: MIT
Requires Python: >=3.8,<4.0
Keywords: scrapping,olx

# OLX Brasil Scrapping

[![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/olxbrasil.svg)](https://pypi.python.org/pypi/olxbrasil)
[![PyPI](https://img.shields.io/pypi/pyversions/olxbrasil.svg)]()
![PyPI - Downloads](https://img.shields.io/pypi/dm/olxbrasil.svg?label=pip%20installs&logo=python)
[![codecov](https://codecov.io/gh/mdslino/olxbrasil/branch/main/graph/badge.svg)](https://codecov.io/gh/mdslino/olxbrasil)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/54968a88b27647f1b47154f942905a5d)](https://www.codacy.com/gh/Mdslino/olxbrasil/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Mdslino/olxbrasil&amp;utm_campaign=Badge_Grade)
![GitHub issues](https://img.shields.io/github/issues/mdslino/olxbrasil.svg)
![GitHub stars](https://img.shields.io/github/stars/mdslino/olxbrasil.svg)
![GitHub last commit](https://img.shields.io/github/last-commit/mdslino/olxbrasil.svg)
[![Code Style Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black/)
data2model 0.2.1b0
Python library and CLI tool for converting data to different Python data classes
License: MIT
Requires Python: >=3.8,<3.11
Keywords: code,generator,cli,tools

# data2model

![kdpv](https://github.com/dmitriiweb/data2model/raw/main/imgs/matrix-g69866a888_640.jpg)

![Tests](https://github.com/mCodingLLC/SlapThatLikeButton-TestingStarterProject/actions/workflows/tests.yml/badge.svg)
[![PyPI version](https://badge.fury.io/py/data2model.svg)](https://badge.fury.io/py/data2model)

Python library and CLI tool for generating different Python data classes from data.

Supported data formats:
- CSV

Supported data classes:
- [dataclasses](https://docs.python.org/3.8/library/dataclasses.html)

## Requirements

- Python 3.8+

## Installation
```shell
pip install data2model
```

## Usage

### As library
```python
import asyncio
import pathlib

from data_to_model import ModelGenerator


files = [
    {"input": pathlib.Path("example.csv"), "output": pathlib.Path("example.py")},
]


async def model_generator(input_file: pathlib.Path, output_file: pathlib.Path):
    mg = ModelGenerator(input_file)
    model = await mg.get_model()
    await model.save(output_file)


async def main():
    tasks = [model_generator(i["input"], i["output"]) for i in files]
    await asyncio.gather(*tasks)


if __name__ == "__main__":
    asyncio.run(main())
```
![output](https://github.com/dmitriiweb/data2model/raw/main/imgs/carbon.png)


### As CLI
#### from single file
```shell
$ cat data.csv
col1,col2
1,2
,2.0

$ data2model file -if data.csv -of data.py
$ cat data.py
# This file was generated by data_to_model.
from dataclasses import dataclass
from typing import Any, Dict, Optional, Union


@dataclass
class Data:
    col1: Optional[int]
    col2: Union[float, int]

    @classmethod
    def from_dict(cls, data: Dict[str, Any]) -> "Data":
        col1 = data["col1"]
        col2 = data["col2"]
        return cls(col1=col1, col2=col2)

    def to_dict(self) -> Dict[str, Any]:
        return {"col1": self.col1, "col2": self.col2}
```

#### from directory
```shell

$ data2model folder -if data -of models

$ ls data
data1.csv  data2.csv

$ ls models
data1.py  data2.py
```
django-browsable-router 0.2.4
A Django REST Framework router that can show APIViews and include other routers as navigable urls in the root view.
License: MIT
Requires Python: >=3.7,<4
Keywords: django,djangorestframework,drf

# Django Browsable Router

[![Coverage Status][coverage-badge]][coverage]
[![GitHub Workflow Status][status-badge]][status]
[![PyPI][pypi-badge]][pypi]
[![GitHub][licence-badge]][licence]
[![GitHub Last Commit][repo-badge]][repo]
[![GitHub Issues][issues-badge]][issues]
[![Python Version][version-badge]][pypi]

```shell
pip install django-browsable-router
```

---

**Documentation**: [https://mrthearman.github.io/django-browsable-router/](https://mrthearman.github.io/django-browsable-router/)

**Source Code**: [https://github.com/MrThearMan/django-browsable-router/](https://github.com/MrThearMan/django-browsable-router/)

---

[coverage-badge]: https://coveralls.io/repos/github/MrThearMan/django-browsable-router/badge.svg?branch=main
[status-badge]: https://img.shields.io/github/workflow/status/MrThearMan/django-browsable-router/Tests
[pypi-badge]: https://img.shields.io/pypi/v/django-browsable-router
[licence-badge]: https://img.shields.io/github/license/MrThearMan/django-browsable-router
[repo-badge]: https://img.shields.io/github/last-commit/MrThearMan/django-browsable-router
[issues-badge]: https://img.shields.io/github/issues-raw/MrThearMan/django-browsable-router
[version-badge]: https://img.shields.io/pypi/pyversions/django-browsable-router

[coverage]: https://coveralls.io/github/MrThearMan/django-browsable-router?branch=main
[status]: https://github.com/MrThearMan/django-browsable-router/actions/workflows/main.yml
[pypi]: https://pypi.org/project/django-browsable-router
[licence]: https://github.com/MrThearMan/django-browsable-router/blob/main/LICENSE
[repo]: https://github.com/MrThearMan/django-browsable-router/commits/main
[issues]: https://github.com/MrThearMan/django-browsable-router/issues