{"id":19604072,"url":"https://github.com/escape-technologies/pyuntype","last_synced_at":"2025-07-10T19:04:25.456Z","repository":{"id":62584364,"uuid":"365179863","full_name":"Escape-Technologies/pyuntype","owner":"Escape-Technologies","description":"Programatically untype your Python code.","archived":false,"fork":false,"pushed_at":"2021-05-07T09:33:59.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-30T13:54:21.242Z","etag":null,"topics":["ast","hints","programatically","python","type","untype"],"latest_commit_sha":null,"homepage":"https://escape.tech/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Escape-Technologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-07T09:18:49.000Z","updated_at":"2023-10-04T00:46:32.000Z","dependencies_parsed_at":"2022-11-03T22:18:21.703Z","dependency_job_id":null,"html_url":"https://github.com/Escape-Technologies/pyuntype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Escape-Technologies/pyuntype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fpyuntype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fpyuntype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fpyuntype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fpyuntype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Escape-Technologies","download_url":"https://codeload.github.com/Escape-Technologies/pyuntype/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Escape-Technologies%2Fpyuntype/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264638252,"owners_count":23642132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","hints","programatically","python","type","untype"],"created_at":"2024-11-11T09:34:33.138Z","updated_at":"2025-07-10T19:04:25.438Z","avatar_url":"https://github.com/Escape-Technologies.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python untype\n\nProgramatically untype your Python Projects.\n\n## Credits\n\nThe original idea and code of this project comes from the following [Stack OverFlow thread](https://stackoverflow.com/questions/42733877/remove-type-hints-in-python-source-programmatically).\n\n## Install\n\n```bash\npip install pyuntype\n```\n\n## Usage\n\nUse the following command to completely untype your Python Project located in the `src/` folder.\n\n```bash\npyuntype src/ dest/\n```\n\n### Option `gitmode` (bool)\n\nWhen `--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`)\n\n### Option `custom_typing_module` (str)\n\nIf 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\n\n### Example:\n\nFor the Python CLI, we can use:\n\n```\npyuntype python python_untype --gitmode=True --custom_typing_module=custom_types\n```\n\n## Contribute\n\n### Development install\n\nFeel free to contribute by proposing merge requests to this project.\n\nThis project uses [Poetry](https://python-poetry.org/docs/basic-usage/) and can be installed in development mode with the following steps:\n\n- `git clone https://github.com/Escape-Technologies/pyuntype.git \u0026\u0026 cd pyuntype`\n- `poetry shell`\n- `poetry install`\n\n### Pre-commit\n\nThis project [Pre-Commit](https://pre-commit.com) to lint your code and make sure it is compliant to the rules we fixed.\n\n```bash\npre-commit install --hook-type commit-msg\n```\n\n### Testing --wip--\n\nThis project uses [PyTest](https://docs.pytest.org/en/6.2.x/) to unit test the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescape-technologies%2Fpyuntype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescape-technologies%2Fpyuntype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescape-technologies%2Fpyuntype/lists"}