{"id":23911209,"url":"https://github.com/robroseknows/typrepy","last_synced_at":"2026-03-02T06:02:20.017Z","repository":{"id":84688500,"uuid":"135370419","full_name":"RobRoseKnows/TyPrePy","owner":"RobRoseKnows","description":"WIP, don't look.","archived":false,"fork":false,"pushed_at":"2018-05-30T01:17:34.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-14T06:31:53.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobRoseKnows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-30T01:16:43.000Z","updated_at":"2018-05-30T01:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"294e84e0-fecc-43c4-b225-7d8a2a5bfd6e","html_url":"https://github.com/RobRoseKnows/TyPrePy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RobRoseKnows/TyPrePy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobRoseKnows%2FTyPrePy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobRoseKnows%2FTyPrePy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobRoseKnows%2FTyPrePy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobRoseKnows%2FTyPrePy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobRoseKnows","download_url":"https://codeload.github.com/RobRoseKnows/TyPrePy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobRoseKnows%2FTyPrePy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-05T07:39:33.443Z","updated_at":"2026-03-02T06:02:20.008Z","avatar_url":"https://github.com/RobRoseKnows.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TyPrePy: Type Hinting Preprocessor for Python\n\nWriting something so I can write code using type-hinting from Python 3.5+ syntax\nwhile keeping code backwards compatible.\n\n## What it Does:\n\nTakes code written using the new syntax and backports it to the comment-based syntax,\nas recommended in [PEP 484][1]. Note that the linked PEP 484 portion is specific to\n2.7, this error can arrise in earlier Python 3 versions, as being nearly 2017\ndoesn't help here.\n\nOld code:\n\n```\ndef embezzle(self, account: str, funds: int = 1000000, *fake_receipts: str) -\u003e None:\n    \"\"\"Embezzle funds from account using fake receipts.\"\"\"\n    \u003ccode goes here\u003e\n```\n\nNew code:\n\n```\ndef embezzle(self, account, funds=1000000, *fake_receipts):\n    # type: (str, int, *str) -\u003e None\n    \"\"\"Embezzle funds from account using fake receipts.\"\"\"\n    \u003ccode goes here\u003e\n```\n\nIt currently does not auto install the [typing module][2] as that would be silly.\n\n## Installation\n\nRun `pip install typrepy`\n\nYou may need to use `sudo` depending on how your computer is configured. I **highly**\nrecommend using [PyEnv][3] or a similar environment manager however so you don't need\nto do that ever again.\n\n### Installation with Bootstrapper\n\nThe source for TyPrePy is written with new Python type-hinting. During the build process\nfor distribution, it runs itself in order to create backwards compatible code. The `pip`\ninstaller is built to use the pre-processed code during install.\n\nIf you want to build it entirely from source for some reason, you should clone the repo\nand then use the `bootstrap/bootstrap.sh` script to build it from python 3.6+.\n\n## Usage\n\nTo use TyPrePy from the command line, simply run `typrepy \u003cfile\u003e \u003cdestination\u003e`.\nRespects normal folder stuff and all that jazz, but won't do anything in-place\nunless you run with `--inplace` and include the destination as the same as the\nfile location.\n\nYou can also use TyPrePy as part of a build process (this repository does, for\nexample). I highly advise against this unless you need to however, as the number\nof steps required to build your work is inversely proportional to the number of\npeople who will use your work.\n\n\n[1]: https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code\n[2]: https://pypi.org/project/typing/\n[3]: https://github.com/pyenv/pyenv","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobroseknows%2Ftyprepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobroseknows%2Ftyprepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobroseknows%2Ftyprepy/lists"}