Skip to main content

dta Convert Dict To Attributes!

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dta-1.3.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distributions

dta-1.3.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

dta-1.3.1-py2.py3-none-any.whl (2.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dta-1.3.1.tar.gz.

File metadata

  • Download URL: dta-1.3.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for dta-1.3.1.tar.gz
Algorithm Hash digest
SHA256 17c976bad4b1ca7be470abec4d46bff4b743baa2e07b0b2ee9d0792d87d5b0b3
MD5 55f20024431503a8e0cac5e2ecdc176d
BLAKE2b-256 5b14c349d3517ad3842a2b183712d2eb77cc4b0af8e4d2e3a5603651b16bf127

See more details on using hashes here.

File details

Details for the file dta-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: dta-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for dta-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b984e6f5ba4d50f83c710352fc318048ade2a7d9fb91fe950da0a03a8826634d
MD5 d88e487be53e2171b2b66fd58815caf4
BLAKE2b-256 28bbe1a1f1a488fa6e1fb37c4c4674614fab67fc9790992d20408ddf5db0b362

See more details on using hashes here.

File details

Details for the file dta-1.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: dta-1.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for dta-1.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 42e0694169b24ee83895ad5ec27b2b629ac012fcc99c7236fad4b4e108b50cb4
MD5 e177a42a449f68647b152ed0bc4f88fb
BLAKE2b-256 eade04c3bb3f07ed52b801b6c242b4c9b3794d798b5ff183cc9d988441b01943

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page