Skip to main content

dict_wrapper

user DictWrapper to visit the value like an object

Installing

Install and update using pip:

pip install -U dict_wrapper

A Simple Example

.. code-block:: python

from dict_wrapper import DictWrapper

data = {
    "who": 'your name',
    "area": ['specify', 'china'],
    "province": {
        "city": ['shenzhen', 'guangzhou']
    },
    "citys":[{
        "name":"shenzhen",
        "othername":"鹏城"
    }]
}
config, config1 = DW(data), DictWrapper(data)
assert config.who == 'your name'
assert config.province.city == ['shenzhen', 'guangzhou']
print(config.area)
print(config1.citys[0].name)

Metadata

Release files for dict-wrapper 0.0.4

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

Source distribution (sdist)

Source distribution for dict-wrapper 0.0.4
File Size Uploaded Provenance Actions
dict_wrapper-0.0.4.tar.gz 6.1 kB Without provenance Details for dict_wrapper-0.0.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dict-wrapper 0.0.4
File Interpreter ABI Platform Actions
dict_wrapper-0.0.4-py3.8.egg Legacy Egg format - - Details for dict_wrapper-0.0.4-py3.8.egg
dict_wrapper-0.0.4-py3-none-any.whl Python 3 none any Details for dict_wrapper-0.0.4-py3-none-any.whl

Total release size: 16.2 kB

Release files / dict_wrapper-0.0.4.tar.gz

Download URL dict_wrapper-0.0.4.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5a832bccb4f8ef4f773c90c71ffda601d684905b5ee16e09a2fd543046596bcd
BLAKE2b-256 checksum
How to use checksums
d370e8d6b88417622752d487c58ae3b89ffb187d2fbf592a468d112c1190b953
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Release files / dict_wrapper-0.0.4-py3.8.egg

Download URL dict_wrapper-0.0.4-py3.8.egg
Size 3.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
1c8e88eff5a97b01d0076a401cadc606cc838bc13c732d201fdcfbe4de6b42db
BLAKE2b-256 checksum
How to use checksums
489112aa4d5261b86c18cc33b5ae1e11bf6ac5b61094b3274f5aafd61d02f7f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Release files / dict_wrapper-0.0.4-py3-none-any.whl

Download URL dict_wrapper-0.0.4-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
754e09db72c890f9c3f6293011281a5d56ceaa415f7c67f5a538875591b8e4c5
BLAKE2b-256 checksum
How to use checksums
a7e52a8a9eef7e33278dddc26be7efbfee37e027cf64a934642e69fa1762945d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Security for dict-wrapper 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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