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:

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) /home/<user>/.myapp
print(app_paths.logs_path)  # (for Linux) /home/<user>/.myapp/logs
print(app_paths.config_path)  # (for Linux) /home/<user>/.myapp/myapp.ini
print(app_paths.log_file_path)  # (for Linux) /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.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: appdata-2.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for appdata-2.1.0.tar.gz
Algorithm Hash digest
SHA256 b0ef5c652470028a904978ab0a7efab159a1a52f0b9044b9594759107703a927
MD5 5e68a3a5c60f5da5f5343e234bfb4f15
BLAKE2b-256 555455c2a30f7efa671024adde29a183bd16f0f3ac92e9f6b45d2d379a7845cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appdata-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for appdata-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42023bcc30b226d958b62675127758d47df8bc5b8e3aefc79ed836ca00ac6fa8
MD5 f91c02d86984e9425ead774b6268d3ec
BLAKE2b-256 b233cd2d8c7153bf4c3e1312a00355f574017746aec7cac15f1509137371ecd2

See more details on using hashes here.

Supported by

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