Skip to main content

doc_dict

Installation

git clone git@github.com:Kel0/doc_dict.git
pip install doc-dict

Usage

from doc_dict.factory import Factory


documented_dict = Factory()

my_dict = {
    "first_name": "Mike",
    "first_name_doc": "It's name field",
    "last_name": "Anderson",
}

my_doc_dict = documented_dict.load(my_dict)

my_doc_dict["first_name"].value  # Get value of key
my_doc_dict["first_name"].doc  # Get doc of key


my_dict = {
    "first_name": "Mike",
    "last_name": "Anderson",
}
my_dict_doc = {
    "first_name": "It's name field",
}

my_doc_dict = documented_dict.load(my_dict, my_dict_doc)
my_doc_dict["first_name"].value  # Get value of key
my_doc_dict["first_name"].doc  # Get doc of key

serialized_doc_dict = documented_dict.serialize(my_doc_dict) 

Types

doc_dict.datastructures.DocumentedValue

doc_dict.factory.Factory().load() -> Dict[str, DocumentedValue]

doc_dict.factory.Factory().serialize() -> str

Metadata

Release files for doc-dict 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doc-dict 0.0.3
File Size Uploaded
doc_dict-0.0.3.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for doc-dict 0.0.3
File Interpreter ABI Platform
doc_dict-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / doc_dict-0.0.3.tar.gz

Download URL doc_dict-0.0.3.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ee92697079cb9efeda7ec9c85d95038c2eb07ae3825caed45481506a2f19c2f
BLAKE2b-256 checksum
How to use checksums
8f947d39ef1ad972a15b085c075ac30da2a9545a3c56930a1fbe90fd02cfe838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.0

Release files / doc_dict-0.0.3-py3-none-any.whl

Download URL doc_dict-0.0.3-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bac897c3104fea99738572c13adce6e4de6d10d3ab0e16c09fb87623d500422e
BLAKE2b-256 checksum
How to use checksums
4ff69a40b26c04db16fc840a3f91acf644cf8f039a1750b4bbf1ff2a8179d058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page