{"id":15014689,"url":"https://github.com/mhconradt/ast-magic","last_synced_at":"2026-02-22T16:34:09.459Z","repository":{"id":57411985,"uuid":"434695916","full_name":"mhconradt/ast-magic","owner":"mhconradt","description":"IPython extension that allows viewing the AST of IPython cells using %magic","archived":false,"fork":false,"pushed_at":"2021-12-03T18:48:35.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T05:40:45.276Z","etag":null,"topics":["ipython","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mhconradt.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}},"created_at":"2021-12-03T18:28:54.000Z","updated_at":"2021-12-03T18:48:37.000Z","dependencies_parsed_at":"2022-09-08T00:52:23.568Z","dependency_job_id":null,"html_url":"https://github.com/mhconradt/ast-magic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhconradt/ast-magic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhconradt%2Fast-magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhconradt%2Fast-magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhconradt%2Fast-magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhconradt%2Fast-magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhconradt","download_url":"https://codeload.github.com/mhconradt/ast-magic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhconradt%2Fast-magic/sbom","scorecard":{"id":639901,"data":{"date":"2025-08-11","repo":{"name":"github.com/mhconradt/ast-magic","commit":"4e4f2d82eb1243681dd8755f1ccb6c879b8241e7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T10:24:58.263Z","repository_id":57411985,"created_at":"2025-08-21T10:24:58.263Z","updated_at":"2025-08-21T10:24:58.263Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29718440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ipython","python"],"created_at":"2024-09-24T19:45:57.905Z","updated_at":"2026-02-22T16:34:09.436Z","avatar_url":"https://github.com/mhconradt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n    pip3 install ast-magic\n\nTo manually load, run the following in your IPython prompt:\n    \n    %load_ext ast_magic\n\nTo automatically load, add the following to your [IPython configuration file](https://ipython.org/ipython-doc/3/config/intro.html):\n    \n    c = get_config()\n    c.InteractiveShellApp.extensions.append('ast_magic')\n    \n## Usage\n\nInvestigating operator precedence:\n\n    In [39]: %ast print(True or False and True)\n    Module(\n        body=[\n            Expr(\n                value=Call(\n                    func=Name(id='print', ctx=Load()),\n                    args=[\n                        BoolOp(\n                            op=Or(),\n                            values=[\n                                Constant(value=True),\n                                BoolOp(\n                                    op=And(),\n                                    values=[\n                                        Constant(value=False),\n                                        Constant(value=True)])])],\n                    keywords=[]))],\n        type_ignores=[])\n    True\n        \nYou can use it in a cell too:\n\n    In [1]: %%ast\n       ...:\n       ...: def fibonacci(n: int) -\u003e int:\n       ...:     if n \u003c= 1: return 1\n       ...:     return fibonacci(n - 2) + fibonacci(n - 1)\n       ...:\n    Module(\n        body=[\n            FunctionDef(\n                name='fibonacci',\n                args=arguments(\n                    posonlyargs=[],\n                    args=[\n                        arg(\n                            arg='n',\n                            annotation=Name(id='int', ctx=Load()))],\n                    kwonlyargs=[],\n                    kw_defaults=[],\n                    defaults=[]),\n                body=[\n                    If(\n                        test=Compare(\n                            left=Name(id='n', ctx=Load()),\n                            ops=[\n                                LtE()],\n                            comparators=[\n                                Constant(value=1)]),\n                        body=[\n                            Return(\n                                value=Constant(value=1))],\n                        orelse=[]),\n                    Return(\n                        value=BinOp(\n                            left=Call(\n                                func=Name(id='fibonacci', ctx=Load()),\n                                args=[\n                                    BinOp(\n                                        left=Name(id='n', ctx=Load()),\n                                        op=Sub(),\n                                        right=Constant(value=2))],\n                                keywords=[]),\n                            op=Add(),\n                            right=Call(\n                                func=Name(id='fibonacci', ctx=Load()),\n                                args=[\n                                    BinOp(\n                                        left=Name(id='n', ctx=Load()),\n                                        op=Sub(),\n                                        right=Constant(value=1))],\n                                keywords=[])))],\n                decorator_list=[],\n                returns=Name(id='int', ctx=Load()))],\n        type_ignores=[])","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhconradt%2Fast-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhconradt%2Fast-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhconradt%2Fast-magic/lists"}