Skip to main content

Utils to manage application data folder.

Project description

appdata | Application Data Management

Coverage Status PyPI release Build status Documentation

Maintainability made-with-python License Downloads

Linux Windows macOS

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:

from appdata import AppDataPaths

app_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)  # myapp
print(app_paths.app_data_path)  # (for Linux and MacOS) /home/<user>/.myapp
print(app_paths.logs_path)  # (for Linux and MacOS) /home/<user>/.myapp/logs
print(app_paths.config_path)  # (for Linux and MacOS) /home/<user>/.myapp/default.ini
print(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

Project details


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.2.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

appdata-2.2.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file appdata-2.2.1.tar.gz.

File metadata

  • Download URL: appdata-2.2.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for appdata-2.2.1.tar.gz
Algorithm Hash digest
SHA256 3122241e1689eb8be36aee28af3bf080fe216e3cc8fabb5af67826b149837a92
MD5 521dcbe6604fd882a2ae7dbb95a36d2c
BLAKE2b-256 5d0f4c941be545e24149e2034afefc292e49c9d6f0ce91ae0153d29c8b27b71a

See more details on using hashes here.

File details

Details for the file appdata-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: appdata-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for appdata-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b428ef3ba7a1fda5a3426c6a7e4a833cf44488d62e01949030ecaee18bccd88
MD5 e835d15a3b06eacfe6086d436146a8a2
BLAKE2b-256 88e2f081ffe1ec9af6ee79bac4d4d89243acf4d21c474250efda2d05eab00020

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page