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 hashes)

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2 Python 3

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