{"id":15967197,"url":"https://github.com/idlesign/pytakeout","last_synced_at":"2025-04-04T13:28:27.776Z","repository":{"id":62583928,"uuid":"125373769","full_name":"idlesign/pytakeout","owner":"idlesign","description":"Simplifies Python code extraction","archived":false,"fork":false,"pushed_at":"2019-01-20T02:42:33.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T22:02:05.620Z","etag":null,"topics":["extractor","python","source-extraction"],"latest_commit_sha":null,"homepage":"https://github.com/idlesign/pytakeout","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idlesign.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-15T13:46:45.000Z","updated_at":"2024-03-01T17:31:40.000Z","dependencies_parsed_at":"2022-11-03T21:46:47.439Z","dependency_job_id":null,"html_url":"https://github.com/idlesign/pytakeout","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fpytakeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fpytakeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fpytakeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fpytakeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idlesign","download_url":"https://codeload.github.com/idlesign/pytakeout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247184324,"owners_count":20897749,"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":["extractor","python","source-extraction"],"created_at":"2024-10-07T18:21:27.650Z","updated_at":"2025-04-04T13:28:27.742Z","avatar_url":"https://github.com/idlesign.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pytakeout\n=========\nhttps://github.com/idlesign/pytakeout\n\n.. image:: https://idlesign.github.io/lbc/py2-lbc.svg\n   :target: https://idlesign.github.io/lbc/\n   :alt: LBC Python 2\n\n----\n\n|release| |lic| |ci| |coverage| |health|\n\n.. |release| image:: https://img.shields.io/pypi/v/pytakeout.svg\n    :target: https://pypi.python.org/pypi/pytakeout\n\n.. |lic| image:: https://img.shields.io/pypi/l/pytakeout.svg\n    :target: https://pypi.python.org/pypi/pytakeout\n\n.. |ci| image:: https://img.shields.io/travis/idlesign/pytakeout/master.svg\n    :target: https://travis-ci.org/idlesign/pytakeout\n\n.. |coverage| image:: https://img.shields.io/coveralls/idlesign/pytakeout/master.svg\n    :target: https://coveralls.io/r/idlesign/pytakeout\n\n.. |health| image:: https://landscape.io/github/idlesign/pytakeout/master/landscape.svg?style=flat\n    :target: https://landscape.io/github/idlesign/pytakeout/master\n\n\nDescription\n-----------\n\n*Simplifies Python code extraction*\n\nWith this you can easily:\n\n* extract function/method/class source code;\n* perform basic code transformations;\n* save code into a file.\n\n\nSample\n------\n\n.. code-block:: python\n\n    from pytakeout import extract_code, code_to_file\n\n\n    def func_to_extract():\n        # This function needs to be extracted.\n        return True\n\n\n    # Extract code as a string.\n    code = extract_code(func_to_extract)\n\n    # Save it into a temporary file.\n    tmp_code_file = code_to_file(code)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fpytakeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidlesign%2Fpytakeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fpytakeout/lists"}