You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120
120
121
121
### Publish with a GitHub workflow
122
122
123
-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/stripe-minimal-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123
+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-commons/stripe-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
The Stripe Python library provides convenient access to the Stripe REST API from any Python 3.9+
7
7
application. The library includes type definitions for all request params and response fields,
@@ -13,8 +13,8 @@ It is generated with [Stainless](https://www.stainless.com/).
13
13
14
14
Use the Stripe MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
15
15
16
-
[](https://cursor.com/en-US/install-mcp?name=%40stainless-commons%2Fstripe-minimal-mcp&config=eyJuYW1lIjoiQHN0YWlubGVzcy1jb21tb25zL3N0cmlwZS1taW5pbWFsLW1jcCIsInRyYW5zcG9ydCI6Imh0dHAiLCJ1cmwiOiJodHRwczovL3N0cmlwZS1taW5pbWFsLnN0bG1jcC5jb20iLCJoZWFkZXJzIjp7Ingtc3RyaXBlLXNlY3JldC1rZXkiOiJNeSBBUEkgS2V5In19)
17
-
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40stainless-commons%2Fstripe-minimal-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fstripe-minimal.stlmcp.com%22%2C%22headers%22%3A%7B%22x-stripe-secret-key%22%3A%22My%20API%20Key%22%7D%7D)
16
+
[](https://cursor.com/en-US/install-mcp?name=%40stainless-commons%2Fstripe-mcp&config=eyJuYW1lIjoiQHN0YWlubGVzcy1jb21tb25zL3N0cmlwZS1tY3AiLCJ0cmFuc3BvcnQiOiJodHRwIiwidXJsIjoiaHR0cHM6Ly9zdHJpcGUtbWluaW1hbC5zdGxtY3AuY29tIiwiaGVhZGVycyI6eyJ4LXN0cmlwZS1zZWNyZXQta2V5IjoiTXkgQVBJIEtleSJ9fQ)
17
+
[](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40stainless-commons%2Fstripe-mcp%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fstripe-minimal.stlmcp.com%22%2C%22headers%22%3A%7B%22x-stripe-secret-key%22%3A%22My%20API%20Key%22%7D%7D)
18
18
19
19
> Note: You may need to set environment variables in your MCP client.
20
20
@@ -25,20 +25,20 @@ The REST API documentation can be found on [stripe.com](https://stripe.com). The
@@ -125,7 +125,7 @@ List methods in the Stripe API are paginated.
125
125
This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually:
126
126
127
127
```python
128
-
fromstripe_minimalimport Stripe
128
+
fromstainless_commons_stripeimport Stripe
129
129
130
130
client = Stripe()
131
131
@@ -141,7 +141,7 @@ Or, asynchronously:
141
141
142
142
```python
143
143
import asyncio
144
-
fromstripe_minimalimport AsyncStripe
144
+
fromstainless_commons_stripeimport AsyncStripe
145
145
146
146
client = AsyncStripe()
147
147
@@ -186,7 +186,7 @@ for coupon in first_page.data:
186
186
Nested parameters are dictionaries, typed using `TypedDict`, for example:
187
187
188
188
```python
189
-
fromstripe_minimalimport Stripe
189
+
fromstainless_commons_stripeimport Stripe
190
190
191
191
client = Stripe()
192
192
@@ -198,27 +198,27 @@ print(coupon.applies_to)
198
198
199
199
## Handling errors
200
200
201
-
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `stripe_minimal.APIConnectionError` is raised.
201
+
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `stainless_commons_stripe.APIConnectionError` is raised.
202
202
203
203
When the API returns a non-success status code (that is, 4xx or 5xx
204
-
response), a subclass of `stripe_minimal.APIStatusError` is raised, containing `status_code` and `response` properties.
204
+
response), a subclass of `stainless_commons_stripe.APIStatusError` is raised, containing `status_code` and `response` properties.
205
205
206
-
All errors inherit from `stripe_minimal.APIError`.
206
+
All errors inherit from `stainless_commons_stripe.APIError`.
207
207
208
208
```python
209
-
importstripe_minimal
210
-
fromstripe_minimalimport Stripe
209
+
importstainless_commons_stripe
210
+
fromstainless_commons_stripeimport Stripe
211
211
212
212
client = Stripe()
213
213
214
214
try:
215
215
client.accounts.retrieve()
216
-
exceptstripe_minimal.APIConnectionError as e:
216
+
exceptstainless_commons_stripe.APIConnectionError as e:
217
217
print("The server could not be reached")
218
218
print(e.__cause__) # an underlying Exception, likely raised within httpx.
219
-
exceptstripe_minimal.RateLimitError as e:
219
+
exceptstainless_commons_stripe.RateLimitError as e:
220
220
print("A 429 status code was received; we should back off a bit.")
221
-
exceptstripe_minimal.APIStatusError as e:
221
+
exceptstainless_commons_stripe.APIStatusError as e:
222
222
print("Another non-200-range status code was received")
223
223
print(e.status_code)
224
224
print(e.response)
@@ -246,7 +246,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
246
246
You can use the `max_retries` option to configure or disable retry settings:
247
247
248
248
```python
249
-
fromstripe_minimalimport Stripe
249
+
fromstainless_commons_stripeimport Stripe
250
250
251
251
# Configure the default for all requests:
252
252
client = Stripe(
@@ -264,7 +264,7 @@ By default requests time out after 1 minute. You can configure this with a `time
264
264
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
265
265
266
266
```python
267
-
fromstripe_minimalimport Stripe
267
+
fromstainless_commons_stripeimport Stripe
268
268
269
269
# Configure the default for all requests:
270
270
client = Stripe(
@@ -316,7 +316,7 @@ if response.my_field is None:
316
316
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
@@ -326,9 +326,9 @@ account = response.parse() # get the object that `accounts.retrieve()` would ha
326
326
print(account.id)
327
327
```
328
328
329
-
These methods return an [`APIResponse`](https://github.com/stainless-sdks/stripe-minimal-python/tree/main/src/stripe_minimal/_response.py) object.
329
+
These methods return an [`APIResponse`](https://github.com/stainless-commons/stripe-python/tree/main/src/stainless_commons_stripe/_response.py) object.
330
330
331
-
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/stripe-minimal-python/tree/main/src/stripe_minimal/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
331
+
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-commons/stripe-python/tree/main/src/stainless_commons_stripe/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
332
332
333
333
#### `.with_streaming_response`
334
334
@@ -390,7 +390,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
414
414
415
415
```py
416
-
fromstripe_minimalimport Stripe
416
+
fromstainless_commons_stripeimport Stripe
417
417
418
418
with Stripe() as client:
419
419
# make requests here
@@ -432,7 +432,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
432
432
433
433
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
434
434
435
-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/stripe-minimal-python/issues) with questions, bugs, or suggestions.
435
+
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-commons/stripe-python/issues) with questions, bugs, or suggestions.
436
436
437
437
### Determining the installed version
438
438
@@ -441,8 +441,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
441
441
You can determine the version that is being used at runtime with:
0 commit comments