Skip to main content

dictionary

Project description

dictRysan Version 1.4.6

What dose this package do:

This package helps programmers to do some dictionary operations like:

  • Sorting dictionary by keys.
  • Sorting dictionary by values.
  • Searching key through value.
  • Converting a dictionary to .json .
  • Converting a .json to dictionary.
  • Show the all existing functions.
  • Get any data type.
  • Show how many types of values in the dictionary.
  • Get the a component trhough index.
  • Get index trhough key.
  • Sort 2 level nested dictionary by value of sub Dictionary.

Functions

  • key_search(dict,value)
  • value_sort(dict,type=False)
  • key_sort(dict,type=False)
  • to_json(dict,file_name_or_path)
  • from_json(file_name_or_path)
  • show_def(None)
  • show_type(any_data)
  • values_type_count(dictionary)
  • get_component(dict,index)
  • get_index(dict,key)
  • nested_2L_value_sort(dict,key,type=False)

Description

key_search(dict,value):

  • Motivation: Searching a key trough its value.
  • Peramitters: Take Tow permitter. a dictionary and a value.
  • Returns: Returns the corresponding key for the given value.

value_sort(dict,type=False)

  • Motivation: sorting a dictionary according to its values.
  • Peramitters: Take Tow permitter. a dictionary and searching order(True or False).
  • Returns: Sorted dictionary..

key_sort(dict,type=False)

  • Motivation: sorting a dictionary according to its keys.
  • Peramitters: Take Tow permitter. a dictionary and searching order(True or False).
  • Returns: Sorted dictionary..

to_json(dict,file_name_or_path)

  • Motivation: converting dictionary into a .json file
  • Peramitters: Take Tow permitter. a dictionary and the file name with .json extension or the path to save.
  • Returns: No return.

from_json(file_name_or_path)

  • Motivation: converting a .json file into a .dictionary
  • Peramitters: Take inly the file name with .json extension or the path.
  • Returns: a dictionary.

show_def(None)

  • Motivation: showing all functions.
  • Peramitters: None
  • Returns: None

show_type(any_data)

  • Motivation: Get the data type.
  • Peramitters: any value (single)
  • Returns: String.

values_type_count(dictionary)

  • Motivation: Showing the types of all values inside a dictionary.
  • Peramitters: A dictionary
  • Returns: A dictionary.

get_component(dict,index)

  • Motivation: Get a component trhough index.
  • Peramitters: A dictionary, a index.
  • Returns: A dictionary.

get_index(dict,key)

  • Motivation: Get index trhough key.
  • Peramitters: A dictionary, a key.
  • Returns: A dictionary.

nested_2L_value_sort(dict,key,type=False)

  • Motivation: Sort the dictionary by the value of its sub dictionay.
  • Peramitters: A dictionary, a key of sub dictionary.
  • Returns: A dictionary.

Developer

Name : Rafsan Jany
Current Profession: Undergraduate student
University: Islamic University Of Technology
Department: Computer Science and Engineering.
Email: rafsanjany1213@gmail.com
Email: rafsanjany@iut-dhaka.edu
Web: www.rafsanjany.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

dictRysan-1.4.6-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file dictRysan-1.4.6-py3-none-any.whl.

File metadata

  • Download URL: dictRysan-1.4.6-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for dictRysan-1.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5689e16c2a8735e1694415c9ebf05ec88d56b6f929cfe5620f932092dfc185ce
MD5 429c81e67b33cdcb40c00e4e7d57f549
BLAKE2b-256 cc2842d5732d58b3b15961099370568aed92d106bbe80629269755cff73385ba

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