Programatically untype your Python code
Project description
Python untype
Programatically untype your Python Projects.
Install
pip install untype
Usage
Use the following command to completely untype your Python Project located in the src/
folder.
py-untype 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
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
Built Distribution
File details
Details for the file pyuntype-0.0.1.tar.gz
.
File metadata
- Download URL: pyuntype-0.0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.5 Darwin/20.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc9592854d0abef80d5d6a75789d4af9846593a133608071de9031476e0d86f |
|
MD5 | bcdc71613d16e03b24d94a8822d8837c |
|
BLAKE2b-256 | e42ffbaade27896c72c667ab86e1671815ab864364ad2737f98885fe50f799ee |
File details
Details for the file pyuntype-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyuntype-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.5 Darwin/20.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bd077200a6933fc7ff2b744d086df7efd0ddd295aaf30a69b4fddd60dff3692 |
|
MD5 | 2f57b5c94ab188f4f02219f2945ad9a6 |
|
BLAKE2b-256 | 27c956c46eca391244c4c08998b595e557480b2f973570a02a1bb938a9fb3e5d |