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
{{ message }}
Repository navigation
Commit d2335fb
Browse filesBrowse the repository at this point in the historyBrowse files
Transient network errors are always retried up to `retry_max_attempts`.
125
+
126
+
The client reuses pooled HTTP connections through a `requests.Session`. You may pass your own
127
+
session with `IpregistryClient("YOUR_API_KEY", session=my_session)` for proxy or TLS control,
128
+
and release resources with `client.close()` or by using the client as a context manager.
129
+
130
+
Batch lookups larger than the API limit of 1024 items are automatically split into concurrent
131
+
chunks. Tune this with `IpregistryClient("YOUR_API_KEY", max_batch_size=1024, batch_concurrency=4)`.
132
+
91
133
### Caching
92
134
93
135
This Ipregistry client library has built-in support for in-memory caching. By default caching is disabled.
@@ -130,7 +172,7 @@ All Ipregistry exceptions inherit `IpregistryError` class.
130
172
131
173
Main subtypes are `ApiError` and `ClientError`.
132
174
133
-
Errors of type _ApiError_ include a code field that maps to the one described in the [Ipregistry documentation](https://ipregistry.co/docs/errors).
175
+
Errors of type _ApiError_ include a `code` field that maps to the one described in the [Ipregistry documentation](https://ipregistry.co/docs/errors), along with a typed `error_code` enum value (`ErrorCode`) that is `None` for unrecognized codes.
0 commit comments