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
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
dta.Dict2Attr({"stuff":["balls","watch anime girls","OwO"]})
For converting attributes back to dict for saving purpose do
import dta
dta.Attr2Dict(SomeCoolConvertedDictToAttributes)
Metadata
Release files for dta 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.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dta-1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 kB
Release files / dta-1.tar.gz
| Download URL | dta-1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2596d0e26b64ed8ebf0e80116d5348869662ae7232478da4570c932eed12a071
|
|
BLAKE2b-256 checksum How to use checksums |
523fa8b5658b0d0ebd27d7fc8c7fdaf032a5ee5071258fecc8b9b9d8dd55197c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / dta-1-py3-none-any.whl
| Download URL | dta-1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59986017fccdb143df2177b07922b6fee6944c0349b7db887ca5dd53adb4fc87
|
|
BLAKE2b-256 checksum How to use checksums |
7b3da7a5dd24da4fedb1e2162c17cde68f18631eb5e6d8db74adc169ca64b309
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|