stripe-python
CLAUDE.md2.1k starsChanged 4 months agoMITView on GitHub
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Trending
Less talk lately.about the whole repository
Who's talking about stripe/stripe-python
- pydantic/logfire“Stripe Integration?”GitHub · May 4, 2024 · 5 reactions
- cbwinslow/arbfinder-suite“Bump the python-deps group with 8 updates”GitHub · Dec 17, 2025 · 4 reactions
- EvezArt/evez-credit-api“chore(deps): bump stripe from 10.0.0 to 15.3.1”GitHub · Jul 18, 2026 · 2 reactions
- EvezArt/evez-credit-api“chore(deps): bump stripe from 10.0.0 to 15.3.0”GitHub · Jun 27, 2026 · 2 reactions
- DataDog/dd-trace-py“fix(tracer): avoid flushing traces from the child in case of fork (#18262)”GitHub · Jun 17, 2026 · 2 reactions
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub (36 times).
On GitHub · 36
- May 4, 2024Stripe Integration? — pydantic/logfire5 reactions · 10 comments
- Dec 17, 2025Bump the python-deps group with 8 updates — cbwinslow/arbfinder-suite4 reactions · 18 comments
- Jul 18, 2026chore(deps): bump stripe from 10.0.0 to 15.3.1 — EvezArt/evez-credit-api2 reactions · 1 comment
- Jun 27, 2026chore(deps): bump stripe from 10.0.0 to 15.3.0 — EvezArt/evez-credit-api2 reactions · 2 comments
- Jun 17, 2026fix(tracer): avoid flushing traces from the child in case of fork (#18262) — DataDog/dd-trace-py2 reactions · 2 comments
31 more on GitHub
- Jun 17, 2026fix(tracer): avoid flushing traces from the child in case of fork (#18262) — DataDog/dd-trace-py2 reactions · 2 comments
- Jun 13, 2026chore(deps): bump stripe from 10.0.0 to 15.2.1 — EvezArt/evez-credit-api2 reactions · 2 comments
- May 30, 2026chore(deps): bump stripe from 10.0.0 to 15.2.0 — EvezArt/evez-credit-api2 reactions · 1 comment
- May 23, 2026chore(deps): bump stripe from 10.0.0 to 15.1.0 — EvezArt/evez-credit-api2 reactions · 2 comments
- May 12, 2026chore(deps): update stripe requirement from >=9.0 to >=15.1.0 — EvezArt/evez666-arg-canon2 reactions · 1 comment
- Mar 9, 2026deps(python)(deps): bump the production-dependencies group across 1 directory with 3 updates — ranoli90/Jobhuntin2 reactions · 4 comments
- Mar 5, 2026deps(python)(deps): bump the production-dependencies group across 1 directory with 2 updates — ranoli90/Jobhuntin2 reactions · 3 comments
- Mar 5, 2026deps(python)(deps): bump the production-dependencies group with 3 updates — ranoli90/Jobhuntin2 reactions · 3 comments
- Feb 23, 2026deps(python)(deps): bump the production-dependencies group with 3 updates — ranoli90/Jobhuntin2 reactions · 4 comments
- Feb 14, 2026deps(deps): bump the production-dependencies group with 5 updates — ranoli90/Jobhuntin2 reactions · 3 comments
- Jan 14, 2025SubscriptionItem.create_usage_record() missing 1 required positional argument: 'subscription_item' — dj-stripe/dj-stripe2 reactions · 12 comments
- Oct 5, 2026deps: bump stripe from 14.4.1 to 16.0.0 — emre2821/all_daemons1 reaction
- Sep 7, 2026chore(deps): Bump stripe from 15.6.0 to 15.6.1 in /academy-watch-backend — performlikemj/the-academy-watch1 reaction
- Sep 7, 2026build(deps): bump the python-minor-patch group across 1 directory with 10 updates — thegspiro/the-logbook1 reaction · 4 comments
- Sep 7, 2026deps: bump stripe from 14.4.1 to 15.6.1 — emre2821/all_daemons1 reaction · 1 comment
- Aug 31, 2026chore(deps): Bump stripe from 15.5.0 to 15.6.0 in /academy-watch-backend — performlikemj/the-academy-watch1 reaction
- Aug 31, 2026build(deps): bump the python-minor-patch group in /backend with 15 updates — thegspiro/the-logbook1 reaction · 3 comments
- Aug 31, 2026deps: bump stripe from 14.4.1 to 15.6.0 — emre2821/all_daemons1 reaction · 1 comment
- Aug 28, 2026Migrate demo to Stripe Python 15.6.0 — ChiragSW/driftfix-4sum1 reaction · 3 comments
- Aug 24, 2026chore(deps): Bump stripe from 15.5.0 to 15.5.1 in /academy-watch-backend — performlikemj/the-academy-watch1 reaction · 1 comment
- Aug 24, 2026deps: bump stripe from 14.4.1 to 15.5.1 — emre2821/all_daemons1 reaction · 1 comment
- Aug 17, 2026deps: bump stripe from 14.4.1 to 15.5.0 — emre2821/all_daemons1 reaction · 1 comment
- Aug 14, 2026chore(deps): Bump stripe from 15.4.0 to 15.5.0 in /academy-watch-backend — performlikemj/the-academy-watch1 reaction
- Aug 3, 2026deps: bump stripe from 14.4.1 to 15.4.0 — emre2821/all_daemons1 reaction · 1 comment
- Jul 30, 2026chore(deps): Bump stripe from 15.3.1 to 15.4.0 in /academy-watch-backend — performlikemj/the-academy-watch1 reaction
- Jul 27, 2026deps: bump stripe from 14.4.1 to 15.3.1 — emre2821/all_daemons1 reaction · 1 comment
- Jul 16, 2026chore(deps): Bump stripe from 15.3.0 to 15.3.1 in /academy-watch-backend — performlikemj/the-academy-watch1 reaction
- Jun 17, 2026Throw an error when using the wrong webhook parsing method — greptile-examples/stripe-python-webhook-guard-attributeerror1 reaction · 1 comment
- Jun 15, 2026deps: bump stripe from 14.4.1 to 15.2.1 — emre2821/all_daemons1 reaction
- Jan 2, 2026chore(deps-dev): update stripe requirement from <11.0.0,>=10.11.0 to >=10.11.0,<15.0.0 in /apps/api-service — trevor-nichols/agents-saas-starter1 reaction · 1 comment
- Mar 23, 2020Pin stripe to latest version 2.44.0 — felixvarghese/frappe0 reactions
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Run all tests: just test
- Very specific: line 6
Run a specific test by name: just test-one test_name
- Very specific: line 7
Run a specific test file: just test tests/path/to/test_file.py
- Distinctive: line 25
If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it …
- Very specific: line 35
All code must run on all supported Python versions (full list in the test section of @.github/workflows/ci.yml)
- Very specific: line 37
Prefer f-strings over .format in new code.
- Very specific: line 38
When editing a method, update any .format calls to use f-strings.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
stripe-python
Testing
- Run all tests:
just test - Run a specific test by name:
just test-one test_name - Run a specific test file:
just test tests/path/to/test_file.py
Formatting & Linting
- Format:
just format(uses ruff) - Lint:
just lint(uses flake8) - Typecheck:
just typecheck(uses pyright)
Key Locations
- HTTP client (request execution, retries, headers):
stripe/_http_client.py - Main client class:
stripe/_stripe_client.py - Client options/config:
stripe/_client_options.py - API requestor (request building, auth):
stripe/_api_requestor.py
Generated Code
- Files containing
File generated from our OpenAPI specat the top are generated; do not edit. Similarly, any code block starting withThe beginning of the section generated from our OpenAPI specis generated and should not be edited directly.- If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it directly.
- Most files under
stripe/resource subdirectories (e.g.stripe/_customer.py,stripe/params/,stripe/resources/) are generated. - The HTTP client layer (
_http_client.py,_stripe_client.py,_api_requestor.py,_client_options.py) is NOT generated.
Conventions
- Uses
requestslibrary by default for sync HTTP,httpxfor async - Type hints throughout
- Virtual env managed in
.venv/;justrecipes handle setup automatically - Work is not complete until
just test,just lintandjust typecheckcomplete successfully. - All code must run on all supported Python versions (full list in the test section of @.github/workflows/ci.yml)
- In test files, prefer pytest fixtures over module-level declarations
- Prefer f-strings over
.formatin new code.- When editing a method, update any
.formatcalls to use f-strings.
- When editing a method, update any
Comments
- Comments MUST only be used to:
- Document a function
- Explain the WHY of a piece of code
- Explain a particularly complicated piece of code
- Comments NEVER should be used to:
- Say what used to be there. That's no longer relevant!
- Explain the WHAT of a piece of code (unless it's very non-obvious)
It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

