{"id":18456282,"url":"https://github.com/martmists-gh/bytecodeoptimizer","last_synced_at":"2025-10-05T23:52:24.334Z","repository":{"id":62560591,"uuid":"223053387","full_name":"Martmists-GH/BytecodeOptimizer","owner":"Martmists-GH","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-25T13:43:30.000Z","size":16,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-20T17:35:35.611Z","etag":null,"topics":["bytecode","bytecode-manipulation","python3","pythontools"],"latest_commit_sha":null,"homepage":null,"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/Martmists-GH.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":"2019-11-21T00:26:33.000Z","updated_at":"2024-03-14T02:33:04.000Z","dependencies_parsed_at":"2022-11-03T14:45:32.305Z","dependency_job_id":null,"html_url":"https://github.com/Martmists-GH/BytecodeOptimizer","commit_stats":null,"previous_names":["martmists/bytecodeoptimizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Martmists-GH/BytecodeOptimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martmists-GH%2FBytecodeOptimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martmists-GH%2FBytecodeOptimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martmists-GH%2FBytecodeOptimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martmists-GH%2FBytecodeOptimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Martmists-GH","download_url":"https://codeload.github.com/Martmists-GH/BytecodeOptimizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martmists-GH%2FBytecodeOptimizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278537752,"owners_count":26003249,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":["bytecode","bytecode-manipulation","python3","pythontools"],"created_at":"2024-11-06T08:11:03.858Z","updated_at":"2025-10-05T23:52:24.312Z","avatar_url":"https://github.com/Martmists-GH.png","language":"Python","readme":"# BytecodeOptimizer\n\nThis library provides methods to optimize your code automatically.\n\n### Usage\n\n```py\n# __future imports above here\nfrom bytecode_optimizer import enable, optimized, Flags\nFlags.TAIL_CALL_OPTIMIZATION = False  # Disable TCO\n\n# Optimize a function you made yourself ...\n# this function optimizes to `return 8`, removing all variables\n@optimized\ndef abc():\n    x = 2\n    b = 3\n    if x:\n        x = 7\n        y = 1\n        return x + y\n\n# ... or optimize an entire module:\nenable()\n# all other imports and code below here\n```\n\nNote that it will not optimize any code in the current scope with `enable()`, only modules imported after the enable call.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartmists-gh%2Fbytecodeoptimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartmists-gh%2Fbytecodeoptimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartmists-gh%2Fbytecodeoptimizer/lists"}