Skip to main content
``SwitchCaseDev``
==============

``SwitchCaseDev`` is a command in python command which is similar to switch-case in java and python.
It is also a implementation of a simple Switch-Case in Python.

Basic Usage:
===============

``switch()``:
Basic Syntax:
.. code :: python
switch(case_list,default_value)

where,
case_list -> a dictionary item , it contains the dictionary of all the case in which switch will be applied
default_value -> it is the default value which will excute if any of the given case is not applied.

``case()``:
Basic Syntax:
.. code :: python
case(value)

where,
value -> the case the need to be applied.


Example :
.. code-block::python
import Switch_Case
exg=Switch_Case.switch(case_list={"a":2,"b":4},default_value=0)
print(exg.case("a"))

Output:
2

Note: All name I tried are unavailable so I switch the name to SwitchCaseDev.

Download files

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

Source Distribution

SwitchCaseDev-0.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

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

SwitchCaseDev-0.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file SwitchCaseDev-0.1.tar.gz.

File metadata

  • Download URL: SwitchCaseDev-0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2

File hashes

Hashes for SwitchCaseDev-0.1.tar.gz
Algorithm Hash digest
SHA256 83fa7a1e407095bd130f31c7cd603eda891a56768165bb6b099cc9a546c31878
MD5 68913592bc9d51446e16ab74963b644c
BLAKE2b-256 aae57a0ec4612d98d3b3ff25e69c2d862ae303b9c2e07f8f14c4823207f060e3

See more details on using hashes here.

File details

Details for the file SwitchCaseDev-0.1-py3-none-any.whl.

File metadata

  • Download URL: SwitchCaseDev-0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2

File hashes

Hashes for SwitchCaseDev-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41f1d1c8378992049f1abd49cd57aab475d34c992cfe7759e14e2fcf43442c1b
MD5 8ac760e9061e303d6df849f9c597fe82
BLAKE2b-256 b1d0283b9798880d0d2b86cc7cd426945066682cf5c850773f42c2cbb75a6248

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page