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

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)

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

Uploaded Source

Built Distribution

dta-1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dta-1.tar.gz
Algorithm Hash digest
SHA256 2596d0e26b64ed8ebf0e80116d5348869662ae7232478da4570c932eed12a071
MD5 b9b8e8da758022fe9103d3025f6bd01b
BLAKE2b-256 523fa8b5658b0d0ebd27d7fc8c7fdaf032a5ee5071258fecc8b9b9d8dd55197c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dta-1-py3-none-any.whl
Algorithm Hash digest
SHA256 59986017fccdb143df2177b07922b6fee6944c0349b7db887ca5dd53adb4fc87
MD5 37abbb5cd078346301dfa37d16bc23ac
BLAKE2b-256 7b3da7a5dd24da4fedb1e2162c17cde68f18631eb5e6d8db74adc169ca64b309

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