Python untype
Programatically untype your Python Projects.
Credits
The original idea and code of this project comes from the following Stack OverFlow thread.
Install
pip install pyuntype
Usage
Use the following command to completely untype your Python Project located in the src/ folder.
pyuntype src/ dest/
Option gitmode (bool)
When --gitmode=True, the src directory should be a inside a Git repository. The goal to create a dest folder only with the files listed by git ls-files (and thus taking into account .gitignore)
Option custom_typing_module (str)
If you defined in your code a file with custom types, all imports from this file will be ignored, and this file won't be copied in your dest directory
Example:
For the Python CLI, we can use:
pyuntype python python_untype --gitmode=True --custom_typing_module=custom_types
Contribute
Development install
Feel free to contribute by proposing merge requests to this project.
This project uses Poetry and can be installed in development mode with the following steps:
git clone https://github.com/Escape-Technologies/pyuntype.git && cd pyuntypepoetry shellpoetry install
Pre-commit
This project Pre-Commit to lint your code and make sure it is compliant to the rules we fixed.
pre-commit install --hook-type commit-msg
Testing --wip--
This project uses PyTest to unit test the code.
Metadata
Release files for pyuntype 0.0.3
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 |
|---|---|---|---|---|
| pyuntype-0.0.3.tar.gz | 4.7 kB | Without provenance | Details for pyuntype-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyuntype-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pyuntype-0.0.3-py3-none-any.whl |
Total release size: 10.1 kB
Release files / pyuntype-0.0.3.tar.gz
| Download URL | pyuntype-0.0.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83f259229fa3b3fcb4395ca2b19e5894e27b8d90fee153e5a9bab1ff38fc5c50
|
|
BLAKE2b-256 checksum How to use checksums |
7c491620545ae5875ab61832ed1077ccb62c2122fe25e35df15d164070eac0a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.5 Darwin/20.4.0
|
Release files / pyuntype-0.0.3-py3-none-any.whl
| Download URL | pyuntype-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97b5f5c28893450e34696fff8aa386a5faa931463a58fd8c8d2fd553ad868923
|
|
BLAKE2b-256 checksum How to use checksums |
fbfb135ca37f2b5d4cc4447fc655c15e22a16747586722bb9b522fcb447d2dbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.5 Darwin/20.4.0
|
Security for pyuntype 0.0.3
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.