Skip to main content

Zero-config user data manager - manage application data like a dictionary, automatically saved to system user directory

Project description

AppDataManager

Python Version License Version Download

Zero-config user data manager - Manage application data like a dictionary, automatically saved to system user directory.

Features

  • 🚀 Zero dependencies - Only Python standard library
  • 📁 Automatic paths - Auto-saved to system user directory
  • 🐍 Pythonic - Dict-like and attribute-like access
  • 🔒 Namespace isolation - Multiple apps don't interfere
  • Simple & intuitive - No configuration needed

Installation

pip install AppDataManager

Quick Start

from AppDataManager import AppDataManager

# Create manager
dm = AppDataManager("myapp")

# Dict-style access
dm["config.json"] = '{"theme": "dark"}'
print(dm["config.json"])

# Attribute-style access
dm.setting = "enabled"
print(dm.setting)

# Iterate all data
for key in dm:
    print(f"{key}: {dm[key]}")

# Check existence
if "config.json" in dm:
    print("Config exists")

# Delete
del dm.setting

# Count
print(f"Total: {len(dm)} files")

Storage Locations

  • Windows: %LOCALAPPDATA%\<namespace>
  • macOS: ~/Library/Application Support/<namespace>
  • Linux: ~/.local/share/<namespace>

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

appdatamanager-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

appdatamanager-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file appdatamanager-1.0.0.tar.gz.

File metadata

  • Download URL: appdatamanager-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.0 Windows/11

File hashes

Hashes for appdatamanager-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8234ade3165a49ee030719761f7b2ca8b92d4e57032372b9d92d97c7cdeafcd8
MD5 ae087d42f67b2da7c338083aede850e9
BLAKE2b-256 82aaf899c67070ac086f35ac188e6a6e4899d55071ac7d27dc67c3249b84d17d

See more details on using hashes here.

File details

Details for the file appdatamanager-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: appdatamanager-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.0 Windows/11

File hashes

Hashes for appdatamanager-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d00f9121667ba26f49171b3cb428d5a0b106858c9005706a3cde4496cccc673
MD5 a239ce906b778950176569d9676f8f02
BLAKE2b-256 01207ff85be807ab03b1d232e438381820d0a7ffec6489d2d7629d83fecd51bd

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