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

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

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

Uploaded Python 3

File details

Details for the file lazymappingstorage-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lazymappingstorage-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3

File hashes

Hashes for lazymappingstorage-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b5591c7c925e51bad07721dc645ea80a6aaa5fe4938d3fe3b16586ee07032f0
MD5 a5db6b57016a2a335b37bf78789079e4
BLAKE2b-256 933712667c51a48998f62030ccea5238edf0812ac7bea8db251cdfb26bdc5c30

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