Skip to main content

A dict like storage backed by a yaml file or similar method

Project description

asdf

This is intended to provide a very simple way to manage data and store them to file. The main design principle is to provide as many sensible defaults as possible.

#Usage

class User(LazyStorageObject):
      id: int
      name: str
      authorized: bool = False
class UserMapping(LazyMappingStorage):
      object_class=User
      filename="users.yaml"

users=UserMapping()

u=users[1]
u.name="andi"
users.to_file()

#Install

#Development git clone pip install -e

pip install -e .[dev]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lazymappingstorage-0.0.2-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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