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
# .auto_paging_iter() implements both AsyncIterable and Iterable
295
+
async for c in await stripe.Customer.list_async().auto_paging_iter():
296
+
...
297
+
```
298
+
299
+
There is no `.save_async` as `.save` is [deprecated since stripe-python v5](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v5#deprecated). Please migrate to `.modify_async`.
300
+
301
+
The default HTTP client uses `requests` for making synchronous requests but
302
+
`httpx` for making async requests. If you're migrating to async, we recommend
303
+
you to explicitly initialize your own http client and pass it to StripeClient
304
+
or set it as the global default.
305
+
306
+
```python
307
+
# By default, an explicitly initialized HTTPXClient will raise an exception if you
308
+
# attempt to call a sync method. If you intend to only use async, this is useful to
309
+
# make sure you don't unintentionally make a synchronous request.
310
+
my_http_client = stripe.HTTPXClient()
311
+
312
+
# If you want to use httpx to make sync requests, you can disable this
You can also subclass `stripe.HTTPClient` and provide your own instance.
327
+
280
328
## Support
281
329
282
330
New features and bug fixes are released on the latest major version of the Stripe Python library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
0 commit comments