Metadata-Version: 2.1
Name: appdata
Version: 2.0.0
Summary: Utils to manage application data folder.
Home-page: https://github.com/VoIlAlex/appdata
Author: voilalex
Author-email: ilya.vouk@gmail.com
License: MIT
Download-URL: https://github.com/VoIlAlex/appdata/archive/v1.2.0.tar.gz
Keywords: utils,filesystem,paths,resources
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console :: Curses
Classifier: Topic :: Utilities
Classifier: Topic :: System :: Filesystems
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
License-File: LICENSE.md

# appdata | Application Data Management

## Installation

```bash
pip install appdata
```

## Usage

To manage paths of application data folder there is `AppDataPaths` class:

```python
from appdata import AppDataPaths

paths = AppDataPaths('myapp')
```

To create the application folder tree:

```python
# `verbose` is to log the creation process
paths.setup(verbose=True)
```

There are few paths specified to manage your application data folder:

```python
print(paths.app_name)  # myapp
print(paths.app_data_path)  # (for Linux) /home/<user>/.myapp
print(paths.logs_folder_path)  # (for Linux) /home/<user>/.myapp/logs
print(paths.main_config_path)  # (for Linux) /home/<user>/.myapp/myapp.ini
```

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md)

## License

[MIT](LICENSE.md)


