Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appdata

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appdata

Utils to manage application data folder.

  • 2.2.1
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc