==============
``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.
Metadata
Release files for SwitchCaseDev 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SwitchCaseDev-0.1.tar.gz | 1.4 kB | Without provenance | Details for SwitchCaseDev-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SwitchCaseDev-0.1-py3-none-any.whl | Python 3 | none | any | Details for SwitchCaseDev-0.1-py3-none-any.whl |
Total release size: 2.9 kB
Release files / SwitchCaseDev-0.1.tar.gz
| Download URL | SwitchCaseDev-0.1.tar.gz |
|---|---|
| Size | 1.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83fa7a1e407095bd130f31c7cd603eda891a56768165bb6b099cc9a546c31878
|
|
BLAKE2b-256 checksum How to use checksums |
aae57a0ec4612d98d3b3ff25e69c2d862ae303b9c2e07f8f14c4823207f060e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / SwitchCaseDev-0.1-py3-none-any.whl
| Download URL | SwitchCaseDev-0.1-py3-none-any.whl |
|---|---|
| Size | 1.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41f1d1c8378992049f1abd49cd57aab475d34c992cfe7759e14e2fcf43442c1b
|
|
BLAKE2b-256 checksum How to use checksums |
b1d0283b9798880d0d2b86cc7cd426945066682cf5c850773f42c2cbb75a6248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for SwitchCaseDev 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.