appdata-2.2.0
توضیحات
Utils to manage application data folder.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | appdata-2.2.0 |
| نام | appdata |
| نسخه کتابخانه | 2.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | voilalex |
| ایمیل نویسنده | ilya.vouk@gmail.com |
| آدرس صفحه اصلی | https://github.com/VoIlAlex/appdata |
| آدرس اینترنتی | https://pypi.org/project/appdata/ |
| مجوز | MIT |
# appdata | Application Data Management
[](https://coveralls.io/github/VoIlAlex/appdata?branch=master)
[](https://pypi.org/project/appdata/)

[](https://appdata.readthedocs.io/en/latest/)
[](https://codeclimate.com/github/VoIlAlex/appdata/maintainability)
[](https://www.python.org/)
[](https://github.com/VoIlAlex/appdata/blob/master/LICENSE.md)
[](https://pepy.tech/project/appdata)
[](https://svgshare.com/i/Zhy.svg)
[](https://svgshare.com/i/ZhY.svg)
[](https://svgshare.com/i/ZjP.svg)
## Installation
```bash
pip install appdata
```
## Documentation
The detailed documentation you can find on [appdata.readthedocs.io](https://appdata.readthedocs.io/en/latest/index.html).
## Usage
To manage paths of application data folder there is `AppDataPaths` class:
```python
from appdata import AppDataPaths
app_paths = AppDataPaths('myapp') # Name is optional. By default CWD folder name is used.
```
To create the application folder tree:
```python
app_paths.setup()
```
There are few paths specified to manage your application data folder:
```python
print(app_paths.name) # myapp
print(app_paths.app_data_path) # (for Linux) /home/<user>/.myapp
print(app_paths.logs_path) # (for Linux) /home/<user>/.myapp/logs
print(app_paths.config_path) # (for Linux) /home/<user>/.myapp/default.ini
print(app_paths.log_file_path) # (for Linux) /home/<user>/.myapp/logs/myapp.log
```
Every path could be customized. See options [here](https://appdata.readthedocs.io/).
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
## License
[MIT](LICENSE.md)
نحوه نصب
نصب پکیج whl appdata-2.2.0:
pip install appdata-2.2.0.whl
نصب پکیج tar.gz appdata-2.2.0:
pip install appdata-2.2.0.tar.gz