Skip to main content

A python Library created to improve functionality of Nested Dictionaries in Python

Project description

Lindex [List Index]

by @some1and2

A python Library created to improve functionality of Nested Dictionaries in Python

Usage::

from Lindex import lindex
dictionary = {}
dictionary = lindex(dictionary)

Functionality::

  • Making a Lindex Dictionary

     dictionary = lindex(dictionary)
    
  • Ability to index Nested Dictionaries by using a list

     print(dictionary.RTN(*path))
    

    if path is a list of indexes of the dictionary then this will return dictionary[path[0]][path[1]][path[2]]...

  • Ability to change information from a Nested Dictionary through a list

     dictionary.set(*path, value)
    

    if path is a list of indexes of the dictionary, then whatever value is at the end of dictionary[path[0]][path[1]][path[2]]... will be set to value

  • Ability to add to a number from a Nested Dictionary indexed through a list

     dictionary.add(*path, value)
    

    whatever value is at the end of dictionary[path[0]][path[1]][path[2]]... will be added added with value

  • Ability to pretty print dictionaries

     dictionary.pprint()
    

Installation::

pip install Lindex

Documentation [Coming Soon]

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

Lindex-1.1.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

Lindex-1.1.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file Lindex-1.1.1.tar.gz.

File metadata

  • Download URL: Lindex-1.1.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for Lindex-1.1.1.tar.gz
Algorithm Hash digest
SHA256 62917b4271e5d917c12430958ea46ee1aa43471f3991006b6ffb54290691b2f2
MD5 9342cfc3de749f3dea4b0918c0b2cd30
BLAKE2b-256 6deb442b571a71f4579f566a8e228b0001d13969bbfea85671d71eeea1702fc9

See more details on using hashes here.

File details

Details for the file Lindex-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: Lindex-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for Lindex-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4cecfa9b869b8900b753b608cf350119d50cc7522d185ac68241b25767d8c56
MD5 e6bb1aabccc254114c31d3b18ae0d611
BLAKE2b-256 86c8fb9006ccb0d19b717f0f5119317f52bbaf7df4992deaa366f1ac6082ccff

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