{"versions":{"0.0.1":{"name":"@ast-grep/lang-python","version":"0.0.1","description":"## Installation","main":"index.js","keywords":["ast-grep"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"peerDependencies":{"tree-sitter-cli":"0.24.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.2","tree-sitter-cli":"0.24.6","tree-sitter-python":"0.23.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-python@0.0.1","types":"./index.d.ts","_integrity":"sha512-RUtQKM5msT2Jdwu6q9rW5qVh2S5X3iBAGj6Zoct1CAHEGHIpkOFa+jLvJpVeLxVOqq0U9jRX+7G1keuqgn7daQ==","_resolved":"/tmp/50fa718cb1202d2d0413d3908b4f97f8/ast-grep-lang-python-0.0.1.tgz","_from":"file:ast-grep-lang-python-0.0.1.tgz","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-RUtQKM5msT2Jdwu6q9rW5qVh2S5X3iBAGj6Zoct1CAHEGHIpkOFa+jLvJpVeLxVOqq0U9jRX+7G1keuqgn7daQ==","shasum":"e00ece849f67850ad73097dc3048678ebbd1bfd8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@ast-grep/lang-python/-/lang-python-0.0.1.tgz","fileCount":17,"unpackedSize":5184841,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDaaopqBquZoQ77cd7tfnvTyYI0haU6jWaFSCtcbrw+AAiBinbujmPAXT2Y70y7EMYiAJ/PT8NjIFqmabE8+XGW5uA=="}],"size":413355},"_npmUser":{"name":"anonymous","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-python_0.0.1_1743050475635_0.3052576665942086"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-27T04:41:15.907Z","publish_time":1743050475907,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.2":{"name":"@ast-grep/lang-python","version":"0.0.2","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"peerDependencies":{"tree-sitter-cli":"0.25.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.5","tree-sitter-cli":"0.25.6","tree-sitter-python":"0.23.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-python@0.0.2","types":"./index.d.ts","_integrity":"sha512-1KvUXcO2962mRGxMcngJNqPk7U6d7r2W3sxuElxNz/c7Utmabk4li6vrvYnxpd47poQuwZWLhsUfC+zhP1PNvg==","_resolved":"/tmp/9bc9c2c4291599fc08cbad551c06b4aa/ast-grep-lang-python-0.0.2.tgz","_from":"file:ast-grep-lang-python-0.0.2.tgz","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-1KvUXcO2962mRGxMcngJNqPk7U6d7r2W3sxuElxNz/c7Utmabk4li6vrvYnxpd47poQuwZWLhsUfC+zhP1PNvg==","shasum":"cbaa734eb8fdcee64188dfa9c5737399d3b1bfee","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@ast-grep/lang-python/-/lang-python-0.0.2.tgz","fileCount":17,"unpackedSize":5184862,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDz14qSfjtmsbdL1ZiL+s3ifGCaSrkc165JM7pMdJgeAQIgUGW5DacwfswozCm55TkwTpxfuzyN0Gu+STGWGE84lDk="}],"size":413348},"_npmUser":{"name":"anonymous","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-python_0.0.2_1749434035445_0.41856531011032594"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-09T01:53:55.665Z","publish_time":1749434035665,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.3":{"name":"@ast-grep/lang-python","version":"0.0.3","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.4"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.7","tree-sitter-cli":"0.25.8","tree-sitter-python":"0.23.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-python@0.0.3","types":"./index.d.ts","_integrity":"sha512-nbcXhzLWGNDCzEQvH5XVRz0SRJIVvW50zaN8Do2SZGDfibnTdytJKyFo1agL6fYW/KpWNRMNn+SwdS98NV6FFQ==","_resolved":"/tmp/1d0bf11c8739c0a02d16eab44afcebd4/ast-grep-lang-python-0.0.3.tgz","_from":"file:ast-grep-lang-python-0.0.3.tgz","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-nbcXhzLWGNDCzEQvH5XVRz0SRJIVvW50zaN8Do2SZGDfibnTdytJKyFo1agL6fYW/KpWNRMNn+SwdS98NV6FFQ==","shasum":"0a94e86dbee4c1cef354727f4cf07b5c33d7b61e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@ast-grep/lang-python/-/lang-python-0.0.3.tgz","fileCount":17,"unpackedSize":5185825,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGeqNxw/PQFWrLZC6aZ+yf7tuLuakKHlAPPG9n/JJZUOAiEA/DXL7eqbePuKdXa3zqOskuObPm2ZGvLUMHvkwhlqx0g="}],"size":413737},"_npmUser":{"name":"anonymous","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-python_0.0.3_1755141435606_0.17857692511389844"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-14T03:17:15.833Z","publish_time":1755141435833,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.4":{"name":"@ast-grep/lang-python","version":"0.0.4","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.5"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.8","tree-sitter-cli":"0.25.8","tree-sitter-python":"0.23.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-python@0.0.4","types":"./index.d.ts","_integrity":"sha512-jWdfIscQUcRxL8MkPD0x6jKoHp4g8DWiX5M/EJJt/xTxXWO8fFuuzzmgrs0E6isQ6ByParbEWlO5lh1r2KP4mg==","_resolved":"/tmp/245fd0e8baf06daaf18e372a28c3f0aa/ast-grep-lang-python-0.0.4.tgz","_from":"file:ast-grep-lang-python-0.0.4.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-jWdfIscQUcRxL8MkPD0x6jKoHp4g8DWiX5M/EJJt/xTxXWO8fFuuzzmgrs0E6isQ6ByParbEWlO5lh1r2KP4mg==","shasum":"fd4b883fac5f0c04a67c8c125ffd965794fe303b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@ast-grep/lang-python/-/lang-python-0.0.4.tgz","fileCount":17,"unpackedSize":5185825,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDd7Z5WR8f+gr9dQGOlQrjlIRxLXKIiRGmytRcXBUZXCQIgbw/tgMX1FsKasrAcutLZ0YFa+o89aZCAh8O6vknAEcU="}],"size":416414},"_npmUser":{"name":"anonymous","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-python_0.0.4_1765433497267_0.5719143376972962"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-11T06:11:37.458Z","publish_time":1765433497458,"_source_registry_name":"default","contributors":[]},"0.0.5":{"name":"@ast-grep/lang-python","version":"0.0.5","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.9","tree-sitter-cli":"0.25.8","tree-sitter-python":"0.25.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-python@0.0.5","types":"./index.d.ts","_integrity":"sha512-gbNwaCPvuyZFEG4y6zwylLRLsh1DWiOeLeZ/aWOlYRR0nxoXimuMPank6psT88rijnD6esBLWhFq6kkFhndzjQ==","_resolved":"/tmp/0a3c01e647df9153014e4a2335122f2c/ast-grep-lang-python-0.0.5.tgz","_from":"file:ast-grep-lang-python-0.0.5.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-gbNwaCPvuyZFEG4y6zwylLRLsh1DWiOeLeZ/aWOlYRR0nxoXimuMPank6psT88rijnD6esBLWhFq6kkFhndzjQ==","shasum":"7e4222c4d3fc2795cdcef61449115be0c96928d5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@ast-grep/lang-python/-/lang-python-0.0.5.tgz","fileCount":18,"unpackedSize":5710243,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDKjGe/LBbwbH6TugocwhstfI6j3mnZeB28EIHhTkBJnwIgJYCi0vg20CsKlHMDu23fEOlDMLISiWiJYQDCU3E0pQ0="}],"size":489331},"_npmUser":{"name":"anonymous","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-python_0.0.5_1768081594590_0.2784859512993194"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-10T21:46:34.750Z","publish_time":1768081594750,"_source_registry_name":"default","contributors":[]},"0.0.6":{"name":"@ast-grep/lang-python","version":"0.0.6","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.9","tree-sitter-cli":"0.25.8","tree-sitter-python":"0.25.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-python@0.0.6","types":"./index.d.ts","_integrity":"sha512-eF/bEBspmrxdVuPNihvZDyyJx5qtIpGEMz9l1nNQmrji7NZcUiRNC8WwzYyQCBdy1mj8HZ0Tn4I2q3gp/6Bkiw==","_resolved":"/tmp/c5a07d419ec2078caaf36d740b9dfca5/ast-grep-lang-python-0.0.6.tgz","_from":"file:ast-grep-lang-python-0.0.6.tgz","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-eF/bEBspmrxdVuPNihvZDyyJx5qtIpGEMz9l1nNQmrji7NZcUiRNC8WwzYyQCBdy1mj8HZ0Tn4I2q3gp/6Bkiw==","shasum":"32a855afe220485cd5cdcd6caa52655de652d80f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@ast-grep/lang-python/-/lang-python-0.0.6.tgz","fileCount":19,"unpackedSize":6174980,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC5vvZxcl+2kfQmB2cUs+Gq8lFZ3guaYmjoNF+mv0AzWAIhAJILKjLpWSLD0bJH692PNrPHQXKYBi5Q/VUvAFTqA6jc"}],"size":560255},"_npmUser":{"name":"anonymous","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-python_0.0.6_1773542684822_0.46122315772925715"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-15T02:44:44.982Z","publish_time":1773542684982,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.0.6"},"name":"@ast-grep/lang-python","time":{"created":"2025-03-27T04:41:54.031Z","modified":"2026-03-15T02:45:03.844Z","0.0.1":"2025-03-27T04:41:15.907Z","0.0.2":"2025-06-09T01:53:55.665Z","0.0.3":"2025-08-14T03:17:15.833Z","0.0.4":"2025-12-11T06:11:37.458Z","0.0.5":"2026-01-10T21:46:34.750Z","0.0.6":"2026-03-15T02:44:44.982Z"},"readme":"# ast-grep napi language for python\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-python\npnpm install @ast-grep/napi\n# install the tree-sitter-cli if no prebuild is available\npnpm install tree-sitter-cli --save-dev\n```\n\n## Usage\n\n```js\nimport python from '@ast-grep/lang-python'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ python })\n\nconst sg = parse('python', `your code`)\nsg.root().kind()\n```","users":{}}