Check Type of value
Project description
MType
The easiest way to check the type of something in python
How to Install:
pip install mtype
How to use:
>>> from mtype import match
>>> match("Hello World", str)
True
>>> match("Hello World", str, True)
example.py: ERROR: 'Hello World' is String: True
True
>>> match("Hello World", int)
False
>>> match("Hello World", int, True)
example.py: ERROR: 'Hello World' is Integer: False
False
Parameter:
- Value
- Data Type
- Debug Output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mtype-1.4.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mtype-1.4-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file mtype-1.4.tar.gz.
File metadata
- Download URL: mtype-1.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfb4091801e9389e0bbf8b838d62e2f82414038a1c9fe52163c6e9a9bec96fd3
|
|
| MD5 |
bcc35c8ea5d5033e49ce5d5da1b6c7d8
|
|
| BLAKE2b-256 |
025896e2a9083c4ee97ed66346e9afe02c4b538e95e394de6db9d9405550160c
|
File details
Details for the file mtype-1.4-py3-none-any.whl.
File metadata
- Download URL: mtype-1.4-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6b5836b7a8466c9168b498dfbb8405e4d5c813676f08c6030fa796fb3d1b636
|
|
| MD5 |
7151de292a8e572a0b88b2c4d2786caf
|
|
| BLAKE2b-256 |
5297cb3d7f2c3e0182d5031abbb160d49c8a648f14ea0323843657da930d252a
|