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

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

Uploaded Python 3

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