Utils to manage application data folder.
Project description
appdata | Application Data Management
Installation
pip install appdata
Usage
To manage paths of application data folder there is AppDataPaths
class:
from appdata import AppDataPaths
paths = AppDataPaths('myapp')
To create the application folder tree:
# `verbose` is to log the creation process
paths.setup(verbose=True)
There are few paths specified to manage your application data folder:
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
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
appdata-2.0.0.tar.gz
(4.9 kB
view hashes)