feat: Add Cloudflare R2 stdlib registry upload + bump to v1.0.0 #407
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π― Overview
This PR adds automated Python stdlib registry uploads to Cloudflare R2 and bumps the version to 1.0.0.
β¨ What's New
π¦ Version Bump
0.0.34β1.0.0sourcecode-parser/VERSIONandpackage.jsonβοΈ Cloudflare R2 Integration
.github/workflows/stdlib-r2-upload.ymlsourcecode-parser/tools/upload_to_r2.sh--deleteflag to replace existing registriessourcecode-parser/tools/test_generation_local.shπ URL Migration
Old:
https://codepathfinder.dev/assets/registries/...New:
https://assets.codepathfinder.dev/registries/...Updated files:
sourcecode-parser/tools/generate_stdlib_registry.py(manifest base_url)sourcecode-parser/graph/callgraph/builder/builder.go(Go client)sourcecode-parser/graph/callgraph/registry/stdlib_remote.go(comments)π§Ή Cleanup
.github/workflows/deploy.yml(Cloudflare Pages - now using Netlify)π Documentation
R2_SETUP.mdwith complete setup instructionsπ§ͺ Testing
β Local testing completed:
msvcrt,nt,winreg,winsoundπ Required Secrets (Already Added)
The following GitHub secrets are configured:
R2_ACCOUNT_IDR2_ACCESS_KEY_IDR2_SECRET_ACCESS_KEYπ Cloudflare R2 Setup Checklist
See
R2_SETUP.mdfor detailed instructions.code-pathfinder-assetscreatedassets.codepathfinder.devconfigured (DNS CNAME)π How It Works
On Release: When you publish a new release (e.g.,
v1.0.0):Manual Trigger: Go to Actions β "Upload Stdlib Registries to R2" β Run workflow
Lazy Loading: Go client downloads modules on-demand from:
https://assets.codepathfinder.dev/registries/python3.11/stdlib/v1/manifest.jsonhttps://assets.codepathfinder.dev/registries/python3.12/stdlib/v1/manifest.jsonhttps://assets.codepathfinder.dev/registries/python3.14/stdlib/v1/manifest.jsonπ° Cost
Storage: 25-30 MB / 10 GB free tier = $0/month
Operations: ~100/month / 1M free = $0/month
Egress: Unlimited free = $0/month
Total: $0/month β
π Next Steps
After merging:
π Related
π€ Generated with Claude Code