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

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, num)
    

    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 num

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

     dictionary.add(*path, num)
    

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

  • Ability to pretty print dictionaries

     dictionary.pprint()
    

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.0.0.tar.gz (9.1 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.0.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for Lindex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 236c35f8d135231b6a5f9e39d9debe9a21c3e8a2f850cdeedd0df16c7a120d22
MD5 8021f353b59a281712d1a806169cb9be
BLAKE2b-256 89fbee252dfb3a54069c182905c5e34b9bcde3e2e9f1c216efcddb6ed5cd12cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Lindex-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac883b9fabab8704fc7784f915df2522b2814c5ca788ecf741b1d7c31edc781a
MD5 0f91fd1f9f2097d73f7ee02e2cfb34c0
BLAKE2b-256 b7f35d455fdf8d5be22986aa54eb5962c024ad07d0433bd7e0988c475478336c

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