Skip to content

Repository files navigation

appdata | Application Data Management

Coverage StatusPyPI releaseBuild statusDocumentation

Maintainabilitymade-with-pythonLicenseDownloads

LinuxWindowsmacOS

Installation

pip install appdata

Documentation

The detailed documentation you can find on appdata.readthedocs.io.

Usage

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

fromappdataimportAppDataPathsapp_paths=AppDataPaths('myapp') # Name is optional. By default CWD folder name is used.

To create the application folder tree:

app_paths.setup()

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

print(app_paths.name) # myappprint(app_paths.app_data_path) # (for Linux and MacOS) /home/<user>/.myappprint(app_paths.logs_path) # (for Linux and MacOS) /home/<user>/.myapp/logsprint(app_paths.config_path) # (for Linux and MacOS) /home/<user>/.myapp/default.iniprint(app_paths.log_file_path) # (for Linux and MacOS) /home/<user>/.myapp/logs/myapp.log

Every path could be customized. See options here.

Contributing

See CONTRIBUTING.md

License

MIT

About

AppData is a Python library to access app data paths based on the operating system the app is running on.

Topics

Resources

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages