crazyimports-0.2.1
توضیحات
Treat your data as your code
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | crazyimports-0.2.1 |
| نام | crazyimports |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Denis Mishankov |
| ایمیل نویسنده | mishankov@mail.com |
| آدرس صفحه اصلی | https://github.com/mishankov/crazy-imports |
| آدرس اینترنتی | https://pypi.org/project/crazyimports/ |
| مجوز | - |
# Crazy Imports - treat your data as your code
[](https://github.com/mishankov/crazy-imports/actions?query=workflow:CI/CD)
[](https://github.com/mishankov/crazy-imports/actions?query=workflow:CI/CD)
[](https://www.codefactor.io/repository/github/mishankov/crazy-imports)
[](https://codecov.io/gh/mishankov/crazy-imports)
[](https://pypi.org/project/crazyimports/)
[](https://pepy.tech/project/crazyimports)


[](https://github.com/mishankov/crazy-imports/blob/main/LICENSE)
`crazyimports` module allows you to use your data files as if it was python modules
- [Documentation](https://mishankov.github.io/crazy-imports/)
- [GitHub repo](https://github.com/mishankov/crazy-imports)
## Simple example
Install `crazyimports` module
`pip install -U crazyimports`
Create `example.json` file with this content
```json
{"number": 42}
```
Than in the same directory create `test.py` file
```python
import crazyimports
import example
print(example.number)
```
Then when you run `python test.py` you would see `42` output in your command line
You can find more examples in examples section of [documentation](https://mishankov.github.io/crazy-imports/)
## Supported file extensions
- `.json` for JSON files
- `.sqlite3` and `.sqlite` for SQLite3 database files
- `.csv` for CSV (Comma Separated Values) files
- `.yaml` and `.yml` for YAML files
- `.pickle` for pickle files
- `.toml` for toml files
## Credits
Heavily inspired by [this talk](https://youtu.be/CWZVNgStgbI) by [@bobuk](https://github.com/bobuk)
نیازمندی
| مقدار | نام |
|---|---|
| ==0.10.2 | toml |
| ==6.0 | PyYAML |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl crazyimports-0.2.1:
pip install crazyimports-0.2.1.whl
نصب پکیج tar.gz crazyimports-0.2.1:
pip install crazyimports-0.2.1.tar.gz