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.2.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

dta-1.2.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: dta-1.2.1.tar.gz
  • Upload date:
  • Size: 2.0 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.2.1.tar.gz
Algorithm Hash digest
SHA256 0ea4b8e99a567a69358043a0e30852e441a26b2a83866fae881b5048ca1e7933
MD5 d4835529f7b14f9dcdb14c721f881a2d
BLAKE2b-256 758b50034682599f4bf7634e8b83b467efce46bf270866ea5ec80082d0895d47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dta-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aafa251825e1fb8438cc8d094c2922cdaf45c905e8957574f59e5e57130979b3
MD5 2f7f373ed4c07bbcac3c8cfef46a20fd
BLAKE2b-256 37744b51f87e42baca45a3a3faf79d3047db27c3cae4bc87a8fcea80594ccb08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dta-1.2.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.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1238facc302123adb79fd0722fae4cc9869b3d5299e179407f45f0c320cc2c0b
MD5 cd1e9bcbdfe9529062edc6869aabab77
BLAKE2b-256 54db0ccf16f418576540cc9d67b0a106b21d32dbd308c1fd5d476020bdd4c6d4

See more details on using hashes here.

Supported by

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