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-1.0.0.tar.gz
(2.6 kB
view details)
File details
Details for the file appdata-1.0.0.tar.gz.
File metadata
- Download URL: appdata-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36c5a03a033b0ef96158d8b9c37b58945336cfec1da2423c201008ee5690aea3
|
|
| MD5 |
cfcdb1ed3f0539e2a6694cb05f738701
|
|
| BLAKE2b-256 |
9fa955191678ed5d71db05bb37d0acff4c36670b52c8211b934cc09a6b5070b6
|