Overview
Supertype-python is a package containing a single function, supertype(). This one works like type but gives more information, which could be useful in a development phase.
Installation
pip install supertype-python
Usage
Without this package, it would take some precious time and precious attention to know the content of an object like this :
a = [0,1,2]
b = 'bbb'
c = 5
d = {"x": "X", "y": "Y", "z": "Z"}
e = [a,b]
f = array('l', [1, 2, 3, 4, 5])
g = (f,e,c,d)
Now, you can import supertype() and just ask the supertype of the object f :
from supertype import supertype
supertype(g)
This returns :
tuple of 4 elements containing :
-array of 5 elements containing {'int'}
-list of 2 elements containing :
-list of 3 elements containing {'int'}
-str of 3 elements
-int
-dict of 3 elements
This also works with objects from other librairies and even with you homemade objects !
What should be added soon
-correction of language approximations
-specific treatment for some types (not very useful to know the size of a string for example)
-better comments
-check compatibility with all python 3, see if it can go to python 2
-...
If you have any idea or suggestion feel free to contact me on my email.
Contributors
Martin Letzgus
Antoine Thiol
Quentin Petit
License
Metadata
Release files for supertype-python 1.1.0
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 |
|---|---|---|---|---|
| supertype-python-1.1.0.tar.gz | 2.8 kB | Without provenance | Details for supertype-python-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supertype_python-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for supertype_python-1.1.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / supertype-python-1.1.0.tar.gz
| Download URL | supertype-python-1.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
816322f9cb7bb6c53385273f7d9ade89944ed96672cc21f3b131139ff0a0f063
|
|
BLAKE2b-256 checksum How to use checksums |
ee5b8bec99c4b78311c1ace20a4d68a140173dbd29296c4b35d8589ec851a54d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / supertype_python-1.1.0-py3-none-any.whl
| Download URL | supertype_python-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92b7cfe0605f6c720eee12ce544cadbfd3362722a76930df0c385d9df6589be3
|
|
BLAKE2b-256 checksum How to use checksums |
86a19a9157dfc2dfdf5ba0b242969ec1868b5fed07a9885d370fd3627fbe8ad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for supertype-python 1.1.0
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.