✅ whatType
Python package to check the type of a variable or object.
🚀 Usage
from whatType import *
# Check for 'function' type
def test():
pass
isFunction(test) # Returns True
# Check for 'int' type
isInt(1234) # Returns True
# Check for 'float' type
isFloat(3.1415) # Returns True
# Check for 'complex' type
isComplex(3+4j) # Returns True
# Check for 'str' type
isStr('Hello, World!') # Returns True
# Check for 'list' type
isList([1,2,3]) # Returns True
# Check for 'dict' type
isDict({"hello":"world"}) # Returns True
# Check for 'tuple' type
isTuple((1,2,3))
# Check for 'NoneType' type
isNone(None) # Returns True
# Check for 'bool' type
isBool(True) # Returns True
# Check for 'bytes' type
isBytes(b'Hello, World!') # Returns True
# Check for 'type' (class) type
class Test:
pass
isClass(Test)
📦 Installation
Run the following to install:
$ pip install whatType
👨💻 Developing isType
To install whatType, along with the tools you will need to develop and run tests, run the following in your virtualenv:
$ pip install -e .[dev]
🚦 Development Progress
Unstable Development
Metadata
Release files for whatType 0.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 | |
|---|---|---|---|
| whatType-0.0.1.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| whatType-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / whatType-0.0.1.tar.gz
| Download URL | whatType-0.0.1.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e504994f4290430cdc4f3c974b77ee59f77bfaac004163241b596d8f6c84eeea
|
|
BLAKE2b-256 checksum How to use checksums |
1e4ede8089b707ba20aff8ebf3ca7853945105b3aa150a95c75e7125db6c5227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / whatType-0.0.1-py3-none-any.whl
| Download URL | whatType-0.0.1-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c5476d1dbb404a4ca2570d38e82eef7d91aeb1b6e2f46593b8fe2f3418092be
|
|
BLAKE2b-256 checksum How to use checksums |
9d16aee177b712c09e1ede4b98be9bb78bad25776cb87ec6ae40eed764bd959b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|