dta (Dict to Attributes)
dta is very small dict (or json) to attributes converter.
It is only have 1 files and applied to every python versions.
No need dependencies required so your repository size won't go to hell.
Features
- Ability to convert lame dict object to class attributes!
- Ability to convert those attributes back to dict!
Installation
Use pip to install package
pip install dta
Or Use github repository and build it
pip install git+https://github.com/dumb-stuff/dta
Usage
Import dta.
import dta
For converting to attributes do
import dta
SomeCoolConvertedDictToAttributes = dta.Dict2Attr({"stuff":["balls","watch anime girls","OwO"]})
SomeCoolConvertedDictToAttributes.stuff[1]
For converting attributes back to dict for saving purpose do
import dta
dta.Attr2Dict(SomeCoolConvertedDictToAttributes)
Metadata
Release files for dta 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dta-1.3.1.tar.gz | 2.3 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dta-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
| dta-1.3.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / dta-1.3.1.tar.gz
| Download URL | dta-1.3.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17c976bad4b1ca7be470abec4d46bff4b743baa2e07b0b2ee9d0792d87d5b0b3
|
|
BLAKE2b-256 checksum How to use checksums |
5b14c349d3517ad3842a2b183712d2eb77cc4b0af8e4d2e3a5603651b16bf127
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / dta-1.3.1-py3-none-any.whl
| Download URL | dta-1.3.1-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b984e6f5ba4d50f83c710352fc318048ade2a7d9fb91fe950da0a03a8826634d
|
|
BLAKE2b-256 checksum How to use checksums |
28bbe1a1f1a488fa6e1fb37c4c4674614fab67fc9790992d20408ddf5db0b362
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / dta-1.3.1-py2.py3-none-any.whl
| Download URL | dta-1.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
42e0694169b24ee83895ad5ec27b2b629ac012fcc99c7236fad4b4e108b50cb4
|
|
BLAKE2b-256 checksum How to use checksums |
eade04c3bb3f07ed52b801b6c242b4c9b3794d798b5ff183cc9d988441b01943
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|