moderation_api 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. moderation_api/__init__.py +102 -0
  2. moderation_api/_base_client.py +1995 -0
  3. moderation_api/_client.py +454 -0
  4. moderation_api/_compat.py +219 -0
  5. moderation_api/_constants.py +14 -0
  6. moderation_api/_exceptions.py +108 -0
  7. moderation_api/_files.py +123 -0
  8. moderation_api/_models.py +857 -0
  9. moderation_api/_qs.py +150 -0
  10. moderation_api/_resource.py +43 -0
  11. moderation_api/_response.py +832 -0
  12. moderation_api/_streaming.py +333 -0
  13. moderation_api/_types.py +260 -0
  14. moderation_api/_utils/__init__.py +64 -0
  15. moderation_api/_utils/_compat.py +45 -0
  16. moderation_api/_utils/_datetime_parse.py +136 -0
  17. moderation_api/_utils/_logs.py +25 -0
  18. moderation_api/_utils/_proxy.py +65 -0
  19. moderation_api/_utils/_reflection.py +42 -0
  20. moderation_api/_utils/_resources_proxy.py +24 -0
  21. moderation_api/_utils/_streams.py +12 -0
  22. moderation_api/_utils/_sync.py +58 -0
  23. moderation_api/_utils/_transform.py +457 -0
  24. moderation_api/_utils/_typing.py +156 -0
  25. moderation_api/_utils/_utils.py +421 -0
  26. moderation_api/_version.py +4 -0
  27. moderation_api/lib/.keep +4 -0
  28. moderation_api/py.typed +0 -0
  29. moderation_api/resources/__init__.py +103 -0
  30. moderation_api/resources/account.py +135 -0
  31. moderation_api/resources/actions/__init__.py +33 -0
  32. moderation_api/resources/actions/actions.py +810 -0
  33. moderation_api/resources/actions/execute.py +354 -0
  34. moderation_api/resources/auth.py +204 -0
  35. moderation_api/resources/authors.py +714 -0
  36. moderation_api/resources/content.py +244 -0
  37. moderation_api/resources/queue/__init__.py +33 -0
  38. moderation_api/resources/queue/items.py +445 -0
  39. moderation_api/resources/queue/queue.py +302 -0
  40. moderation_api/resources/wordlist/__init__.py +33 -0
  41. moderation_api/resources/wordlist/wordlist.py +470 -0
  42. moderation_api/resources/wordlist/words.py +274 -0
  43. moderation_api/types/__init__.py +35 -0
  44. moderation_api/types/account_list_response.py +31 -0
  45. moderation_api/types/action_create_params.py +94 -0
  46. moderation_api/types/action_create_response.py +82 -0
  47. moderation_api/types/action_delete_response.py +13 -0
  48. moderation_api/types/action_list_params.py +13 -0
  49. moderation_api/types/action_list_response.py +113 -0
  50. moderation_api/types/action_retrieve_response.py +105 -0
  51. moderation_api/types/action_update_params.py +94 -0
  52. moderation_api/types/action_update_response.py +82 -0
  53. moderation_api/types/actions/__init__.py +8 -0
  54. moderation_api/types/actions/execute_execute_by_id_params.py +24 -0
  55. moderation_api/types/actions/execute_execute_by_id_response.py +20 -0
  56. moderation_api/types/actions/execute_execute_params.py +30 -0
  57. moderation_api/types/actions/execute_execute_response.py +10 -0
  58. moderation_api/types/auth_create_response.py +16 -0
  59. moderation_api/types/auth_retrieve_response.py +13 -0
  60. moderation_api/types/author_create_params.py +57 -0
  61. moderation_api/types/author_create_response.py +120 -0
  62. moderation_api/types/author_delete_response.py +9 -0
  63. moderation_api/types/author_list_params.py +40 -0
  64. moderation_api/types/author_list_response.py +147 -0
  65. moderation_api/types/author_retrieve_response.py +120 -0
  66. moderation_api/types/author_update_params.py +54 -0
  67. moderation_api/types/author_update_response.py +120 -0
  68. moderation_api/types/content_submit_params.py +352 -0
  69. moderation_api/types/content_submit_response.py +269 -0
  70. moderation_api/types/queue/__init__.py +10 -0
  71. moderation_api/types/queue/item_list_params.py +36 -0
  72. moderation_api/types/queue/item_list_response.py +90 -0
  73. moderation_api/types/queue/item_resolve_params.py +15 -0
  74. moderation_api/types/queue/item_resolve_response.py +19 -0
  75. moderation_api/types/queue/item_unresolve_params.py +15 -0
  76. moderation_api/types/queue/item_unresolve_response.py +17 -0
  77. moderation_api/types/queue_get_stats_params.py +14 -0
  78. moderation_api/types/queue_get_stats_response.py +110 -0
  79. moderation_api/types/queue_retrieve_response.py +64 -0
  80. moderation_api/types/wordlist/__init__.py +8 -0
  81. moderation_api/types/wordlist/word_add_params.py +14 -0
  82. moderation_api/types/wordlist/word_add_response.py +20 -0
  83. moderation_api/types/wordlist/word_remove_params.py +14 -0
  84. moderation_api/types/wordlist/word_remove_response.py +20 -0
  85. moderation_api/types/wordlist_get_embedding_status_response.py +18 -0
  86. moderation_api/types/wordlist_list_response.py +30 -0
  87. moderation_api/types/wordlist_retrieve_response.py +32 -0
  88. moderation_api/types/wordlist_update_params.py +29 -0
  89. moderation_api/types/wordlist_update_response.py +32 -0
  90. moderation_api-1.0.0.dist-info/METADATA +458 -0
  91. moderation_api-1.0.0.dist-info/RECORD +93 -0
  92. moderation_api-1.0.0.dist-info/WHEEL +4 -0
  93. moderation_api-1.0.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,458 @@
1
+ Metadata-Version: 2.3
2
+ Name: moderation_api
3
+ Version: 1.0.0
4
+ Summary: The official Python library for the moderation-api API
5
+ Project-URL: Homepage, https://github.com/moderation-api/sdk-python
6
+ Project-URL: Repository, https://github.com/moderation-api/sdk-python
7
+ Author-email: Moderation API <support@moderationapi.com>
8
+ License: Apache-2.0
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.9
25
+ Requires-Dist: anyio<5,>=3.5.0
26
+ Requires-Dist: distro<2,>=1.7.0
27
+ Requires-Dist: httpx<1,>=0.23.0
28
+ Requires-Dist: pydantic<3,>=1.9.0
29
+ Requires-Dist: sniffio
30
+ Requires-Dist: typing-extensions<5,>=4.10
31
+ Provides-Extra: aiohttp
32
+ Requires-Dist: aiohttp; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # Moderation API Python API library
37
+
38
+ <!-- prettier-ignore -->
39
+ [![PyPI version](https://img.shields.io/pypi/v/moderation_api.svg?label=pypi%20(stable))](https://pypi.org/project/moderation_api/)
40
+
41
+ The Moderation API Python library provides convenient access to the Moderation API REST API from any Python 3.9+
42
+ application. The library includes type definitions for all request params and response fields,
43
+ and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
44
+
45
+ It is generated with [Stainless](https://www.stainless.com/).
46
+
47
+ ## Documentation
48
+
49
+ The REST API documentation can be found on [docs.moderationapi.com](https://docs.moderationapi.com). The full API of this library can be found in [api.md](https://github.com/moderation-api/sdk-python/tree/main/api.md).
50
+
51
+ ## Installation
52
+
53
+ ```sh
54
+ # install from the production repo
55
+ pip install git+ssh://git@github.com/moderation-api/sdk-python.git
56
+ ```
57
+
58
+ > [!NOTE]
59
+ > Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install moderation_api`
60
+
61
+ ## Usage
62
+
63
+ The full API of this library can be found in [api.md](https://github.com/moderation-api/sdk-python/tree/main/api.md).
64
+
65
+ ```python
66
+ import os
67
+ from moderation_api import ModerationAPI
68
+
69
+ client = ModerationAPI(
70
+ secret_key=os.environ.get("MODAPI_SECRET_KEY"), # This is the default and can be omitted
71
+ )
72
+
73
+ response = client.content.submit(
74
+ content={
75
+ "text": "x",
76
+ "type": "text",
77
+ },
78
+ )
79
+ print(response.recommendation)
80
+ ```
81
+
82
+ While you can provide a `secret_key` keyword argument,
83
+ we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
84
+ to add `MODAPI_SECRET_KEY="My Secret Key"` to your `.env` file
85
+ so that your Secret Key is not stored in source control.
86
+
87
+ ## Async usage
88
+
89
+ Simply import `AsyncModerationAPI` instead of `ModerationAPI` and use `await` with each API call:
90
+
91
+ ```python
92
+ import os
93
+ import asyncio
94
+ from moderation_api import AsyncModerationAPI
95
+
96
+ client = AsyncModerationAPI(
97
+ secret_key=os.environ.get("MODAPI_SECRET_KEY"), # This is the default and can be omitted
98
+ )
99
+
100
+
101
+ async def main() -> None:
102
+ response = await client.content.submit(
103
+ content={
104
+ "text": "x",
105
+ "type": "text",
106
+ },
107
+ )
108
+ print(response.recommendation)
109
+
110
+
111
+ asyncio.run(main())
112
+ ```
113
+
114
+ Functionality between the synchronous and asynchronous clients is otherwise identical.
115
+
116
+ ### With aiohttp
117
+
118
+ By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
119
+
120
+ You can enable this by installing `aiohttp`:
121
+
122
+ ```sh
123
+ # install from the production repo
124
+ pip install 'moderation_api[aiohttp] @ git+ssh://git@github.com/moderation-api/sdk-python.git'
125
+ ```
126
+
127
+ Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
128
+
129
+ ```python
130
+ import os
131
+ import asyncio
132
+ from moderation_api import DefaultAioHttpClient
133
+ from moderation_api import AsyncModerationAPI
134
+
135
+
136
+ async def main() -> None:
137
+ async with AsyncModerationAPI(
138
+ secret_key=os.environ.get("MODAPI_SECRET_KEY"), # This is the default and can be omitted
139
+ http_client=DefaultAioHttpClient(),
140
+ ) as client:
141
+ response = await client.content.submit(
142
+ content={
143
+ "text": "x",
144
+ "type": "text",
145
+ },
146
+ )
147
+ print(response.recommendation)
148
+
149
+
150
+ asyncio.run(main())
151
+ ```
152
+
153
+ ## Using types
154
+
155
+ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
156
+
157
+ - Serializing back into JSON, `model.to_json()`
158
+ - Converting to a dictionary, `model.to_dict()`
159
+
160
+ Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
161
+
162
+ ## Nested params
163
+
164
+ Nested parameters are dictionaries, typed using `TypedDict`, for example:
165
+
166
+ ```python
167
+ from moderation_api import ModerationAPI
168
+
169
+ client = ModerationAPI()
170
+
171
+ author = client.authors.create(
172
+ external_id="external_id",
173
+ metadata={},
174
+ )
175
+ print(author.metadata)
176
+ ```
177
+
178
+ ## Handling errors
179
+
180
+ When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `moderation_api.APIConnectionError` is raised.
181
+
182
+ When the API returns a non-success status code (that is, 4xx or 5xx
183
+ response), a subclass of `moderation_api.APIStatusError` is raised, containing `status_code` and `response` properties.
184
+
185
+ All errors inherit from `moderation_api.APIError`.
186
+
187
+ ```python
188
+ import moderation_api
189
+ from moderation_api import ModerationAPI
190
+
191
+ client = ModerationAPI()
192
+
193
+ try:
194
+ client.content.submit(
195
+ content={
196
+ "text": "x",
197
+ "type": "text",
198
+ },
199
+ )
200
+ except moderation_api.APIConnectionError as e:
201
+ print("The server could not be reached")
202
+ print(e.__cause__) # an underlying Exception, likely raised within httpx.
203
+ except moderation_api.RateLimitError as e:
204
+ print("A 429 status code was received; we should back off a bit.")
205
+ except moderation_api.APIStatusError as e:
206
+ print("Another non-200-range status code was received")
207
+ print(e.status_code)
208
+ print(e.response)
209
+ ```
210
+
211
+ Error codes are as follows:
212
+
213
+ | Status Code | Error Type |
214
+ | ----------- | -------------------------- |
215
+ | 400 | `BadRequestError` |
216
+ | 401 | `AuthenticationError` |
217
+ | 403 | `PermissionDeniedError` |
218
+ | 404 | `NotFoundError` |
219
+ | 422 | `UnprocessableEntityError` |
220
+ | 429 | `RateLimitError` |
221
+ | >=500 | `InternalServerError` |
222
+ | N/A | `APIConnectionError` |
223
+
224
+ ### Retries
225
+
226
+ Certain errors are automatically retried 2 times by default, with a short exponential backoff.
227
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
228
+ 429 Rate Limit, and >=500 Internal errors are all retried by default.
229
+
230
+ You can use the `max_retries` option to configure or disable retry settings:
231
+
232
+ ```python
233
+ from moderation_api import ModerationAPI
234
+
235
+ # Configure the default for all requests:
236
+ client = ModerationAPI(
237
+ # default is 2
238
+ max_retries=0,
239
+ )
240
+
241
+ # Or, configure per-request:
242
+ client.with_options(max_retries=5).content.submit(
243
+ content={
244
+ "text": "x",
245
+ "type": "text",
246
+ },
247
+ )
248
+ ```
249
+
250
+ ### Timeouts
251
+
252
+ By default requests time out after 1 minute. You can configure this with a `timeout` option,
253
+ which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
254
+
255
+ ```python
256
+ from moderation_api import ModerationAPI
257
+
258
+ # Configure the default for all requests:
259
+ client = ModerationAPI(
260
+ # 20 seconds (default is 1 minute)
261
+ timeout=20.0,
262
+ )
263
+
264
+ # More granular control:
265
+ client = ModerationAPI(
266
+ timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
267
+ )
268
+
269
+ # Override per-request:
270
+ client.with_options(timeout=5.0).content.submit(
271
+ content={
272
+ "text": "x",
273
+ "type": "text",
274
+ },
275
+ )
276
+ ```
277
+
278
+ On timeout, an `APITimeoutError` is thrown.
279
+
280
+ Note that requests that time out are [retried twice by default](https://github.com/moderation-api/sdk-python/tree/main/#retries).
281
+
282
+ ## Advanced
283
+
284
+ ### Logging
285
+
286
+ We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
287
+
288
+ You can enable logging by setting the environment variable `MODERATION_API_LOG` to `info`.
289
+
290
+ ```shell
291
+ $ export MODERATION_API_LOG=info
292
+ ```
293
+
294
+ Or to `debug` for more verbose logging.
295
+
296
+ ### How to tell whether `None` means `null` or missing
297
+
298
+ In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:
299
+
300
+ ```py
301
+ if response.my_field is None:
302
+ if 'my_field' not in response.model_fields_set:
303
+ print('Got json like {}, without a "my_field" key present at all.')
304
+ else:
305
+ print('Got json like {"my_field": null}.')
306
+ ```
307
+
308
+ ### Accessing raw response data (e.g. headers)
309
+
310
+ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
311
+
312
+ ```py
313
+ from moderation_api import ModerationAPI
314
+
315
+ client = ModerationAPI()
316
+ response = client.content.with_raw_response.submit(
317
+ content={
318
+ "text": "x",
319
+ "type": "text",
320
+ },
321
+ )
322
+ print(response.headers.get('X-My-Header'))
323
+
324
+ content = response.parse() # get the object that `content.submit()` would have returned
325
+ print(content.recommendation)
326
+ ```
327
+
328
+ These methods return an [`APIResponse`](https://github.com/moderation-api/sdk-python/tree/main/src/moderation_api/_response.py) object.
329
+
330
+ The async client returns an [`AsyncAPIResponse`](https://github.com/moderation-api/sdk-python/tree/main/src/moderation_api/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
331
+
332
+ #### `.with_streaming_response`
333
+
334
+ The above interface eagerly reads the full response body when you make the request, which may not always be what you want.
335
+
336
+ To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
337
+
338
+ ```python
339
+ with client.content.with_streaming_response.submit(
340
+ content={
341
+ "text": "x",
342
+ "type": "text",
343
+ },
344
+ ) as response:
345
+ print(response.headers.get("X-My-Header"))
346
+
347
+ for line in response.iter_lines():
348
+ print(line)
349
+ ```
350
+
351
+ The context manager is required so that the response will reliably be closed.
352
+
353
+ ### Making custom/undocumented requests
354
+
355
+ This library is typed for convenient access to the documented API.
356
+
357
+ If you need to access undocumented endpoints, params, or response properties, the library can still be used.
358
+
359
+ #### Undocumented endpoints
360
+
361
+ To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
362
+ http verbs. Options on the client will be respected (such as retries) when making this request.
363
+
364
+ ```py
365
+ import httpx
366
+
367
+ response = client.post(
368
+ "/foo",
369
+ cast_to=httpx.Response,
370
+ body={"my_param": True},
371
+ )
372
+
373
+ print(response.headers.get("x-foo"))
374
+ ```
375
+
376
+ #### Undocumented request params
377
+
378
+ If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` request
379
+ options.
380
+
381
+ #### Undocumented response properties
382
+
383
+ To access undocumented response properties, you can access the extra fields like `response.unknown_prop`. You
384
+ can also get all the extra fields on the Pydantic model as a dict with
385
+ [`response.model_extra`](https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_extra).
386
+
387
+ ### Configuring the HTTP client
388
+
389
+ You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
390
+
391
+ - Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
392
+ - Custom [transports](https://www.python-httpx.org/advanced/transports/)
393
+ - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
394
+
395
+ ```python
396
+ import httpx
397
+ from moderation_api import ModerationAPI, DefaultHttpxClient
398
+
399
+ client = ModerationAPI(
400
+ # Or use the `MODERATION_API_BASE_URL` env var
401
+ base_url="http://my.test.server.example.com:8083",
402
+ http_client=DefaultHttpxClient(
403
+ proxy="http://my.test.proxy.example.com",
404
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
405
+ ),
406
+ )
407
+ ```
408
+
409
+ You can also customize the client on a per-request basis by using `with_options()`:
410
+
411
+ ```python
412
+ client.with_options(http_client=DefaultHttpxClient(...))
413
+ ```
414
+
415
+ ### Managing HTTP resources
416
+
417
+ 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.
418
+
419
+ ```py
420
+ from moderation_api import ModerationAPI
421
+
422
+ with ModerationAPI() as client:
423
+ # make requests here
424
+ ...
425
+
426
+ # HTTP client is now closed
427
+ ```
428
+
429
+ ## Versioning
430
+
431
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
432
+
433
+ 1. Changes that only affect static types, without breaking runtime behavior.
434
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
435
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
436
+
437
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
438
+
439
+ We are keen for your feedback; please open an [issue](https://www.github.com/moderation-api/sdk-python/issues) with questions, bugs, or suggestions.
440
+
441
+ ### Determining the installed version
442
+
443
+ If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.
444
+
445
+ You can determine the version that is being used at runtime with:
446
+
447
+ ```py
448
+ import moderation_api
449
+ print(moderation_api.__version__)
450
+ ```
451
+
452
+ ## Requirements
453
+
454
+ Python 3.9 or higher.
455
+
456
+ ## Contributing
457
+
458
+ See [the contributing documentation](https://github.com/moderation-api/sdk-python/tree/main/./CONTRIBUTING.md).
@@ -0,0 +1,93 @@
1
+ moderation_api/__init__.py,sha256=bLL9kyIBu53YRyIkgb62XJalfAtSpHKKEHDQBAbi0uo,2731
2
+ moderation_api/_base_client.py,sha256=289CqXNlQgvJyVWT0ODN2dw1b_d13awhGEkvOgm580M,67055
3
+ moderation_api/_client.py,sha256=Cc3GmNgFj9pnYfDdzvq36D5AX-A05uUJrp-AeoNNtJs,18464
4
+ moderation_api/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
+ moderation_api/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
+ moderation_api/_exceptions.py,sha256=64AX93jb8MpEi8bvRGNcvKMelcUrcjKpJ9wO9V5PAnE,3234
7
+ moderation_api/_files.py,sha256=KnEzGi_O756MvKyJ4fOCW_u3JhOeWPQ4RsmDvqihDQU,3545
8
+ moderation_api/_models.py,sha256=3D65psj_C02Mw0K2zpBWrn1khmrvtEXgTTQ6P4r3tUY,31837
9
+ moderation_api/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
+ moderation_api/_resource.py,sha256=js-YKYgTxrgFzm6YL-_MTtmmk-z0_uzgzsQLXlcBNxw,1142
11
+ moderation_api/_response.py,sha256=GB8HUK_Tp5TBig6V-yFUwnxqH9V5Uyin0bUmqQKCprk,28864
12
+ moderation_api/_streaming.py,sha256=mdLouILKNbRkJx0MXMmBqlkHcN0rYeHwICjBNG4YtA4,10249
13
+ moderation_api/_types.py,sha256=pYtr7fBsyyuC_rG5040YqBXX9Rr2JZa4sd-bzW32pbc,7244
14
+ moderation_api/_version.py,sha256=aAgjWRRZKxQEbVxktaEsORPGMgRN1cI7E23bh9FE2I0,166
15
+ moderation_api/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ moderation_api/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
+ moderation_api/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
18
+ moderation_api/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
19
+ moderation_api/_utils/_logs.py,sha256=1yGjVnVzJW8QH7jbtTCw7-7KJS3knO8-Jpx3I92_gsI,798
20
+ moderation_api/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
21
+ moderation_api/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
22
+ moderation_api/_utils/_resources_proxy.py,sha256=JIgpVBUP7YZw0lNzQOCVRRDx8MniaykiKG1hJ6crQ9w,629
23
+ moderation_api/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
24
+ moderation_api/_utils/_sync.py,sha256=HBnZkkBnzxtwOZe0212C4EyoRvxhTVtTrLFDz2_xVCg,1589
25
+ moderation_api/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951
26
+ moderation_api/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
27
+ moderation_api/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoSU,12252
28
+ moderation_api/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
+ moderation_api/resources/__init__.py,sha256=BxPVGVzq8u20ay5w8TRw-X9L4rZs8lqDmKLqXP33krU,3291
30
+ moderation_api/resources/account.py,sha256=SAVBlX4n_wW6TzOzZIaqV9GMwOT1kvAn0sI60s7_qa8,4895
31
+ moderation_api/resources/auth.py,sha256=nQSSaMF1dIWFZMDIVwCH63buINU7UPH8OuerfaVQmcg,7799
32
+ moderation_api/resources/authors.py,sha256=0LsSHMu3M7s9yV_wVokl1MVM3qjQYaeQpz_TSYjSgqQ,26625
33
+ moderation_api/resources/content.py,sha256=el75Yi0vw6RFg3XwwbN_OSYVp5yuH5xgBbQsCCiisYo,9154
34
+ moderation_api/resources/actions/__init__.py,sha256=yu0TQ4OhhtvT6Akqm2AIn5PXzpb7gGkrU9nznJTO9O8,1028
35
+ moderation_api/resources/actions/actions.py,sha256=RdEVc4f3ZZl7DoZ1W5YFCOjeLN3vzVr8jSlSz9dBPH4,30407
36
+ moderation_api/resources/actions/execute.py,sha256=gGHKnuo4hjvAQ6hW3f5fmPVkyQA9drgDayK2DRJgMdE,13627
37
+ moderation_api/resources/queue/__init__.py,sha256=nddiRTxA6oCpSyysSsrHKKMJIQqrRuZkDf8tQb59teg,976
38
+ moderation_api/resources/queue/items.py,sha256=dW6eFz8ptOMtJhVrm7hI4E0LoALBJQsH2zNq8xVLnMQ,16773
39
+ moderation_api/resources/queue/queue.py,sha256=BQoibrn6oL378ri-oLA8PynDPqwnZX1obiqob5H4P5U,10740
40
+ moderation_api/resources/wordlist/__init__.py,sha256=IPRzI5968cP8ywCw4ZkqpWpC0ZLMN5AMjJlHc2btqTA,1015
41
+ moderation_api/resources/wordlist/wordlist.py,sha256=hUsBIOBAsJK25hV4AbQ9HUflixst8GCY3E3Kp1Ml_Q4,17511
42
+ moderation_api/resources/wordlist/words.py,sha256=eaFc82II3TBFBReitOjYeI6cibirb-yaYD307wNxL1E,9989
43
+ moderation_api/types/__init__.py,sha256=Km1F0BLFUrrQqbpgqbnBpGYl3rJ3Ub-jUqwJEKiWfvM,2491
44
+ moderation_api/types/account_list_response.py,sha256=9FVXq8ab84QFNqtxLHd05wLXxGuszv8XSnts00Efb08,634
45
+ moderation_api/types/action_create_params.py,sha256=--XvkacPJB-na7m3UM3NvkArb8q2IsZrxH8GIYEEGYg,2835
46
+ moderation_api/types/action_create_response.py,sha256=-sN-BUr9ae5Xqfm3WaYOy_ZpxVvtFVxgimspno2_8xE,2346
47
+ moderation_api/types/action_delete_response.py,sha256=YtueSWZugbwFLW9mKLfn8v_Z5peAPsgRiTx_bptZwPs,301
48
+ moderation_api/types/action_list_params.py,sha256=Mz0BoTd8c7u8GroOvl_rYwKpNvs41eRAtcWZP84V1nU,351
49
+ moderation_api/types/action_list_response.py,sha256=2kVxSZydZieIkBLG8c2dF1-e2YtvfNw-N8Bldou5Ikc,3202
50
+ moderation_api/types/action_retrieve_response.py,sha256=uT0OfI4LxRoPsb1uUoyp0EaGo7oFKzCFZSd3YEjbYmE,2955
51
+ moderation_api/types/action_update_params.py,sha256=6zadbFt3V21lk1EsWuoX65XG6j7S17DDd4LLCIyoJDU,2825
52
+ moderation_api/types/action_update_response.py,sha256=y8Ij_rCcZyDvvpbS77BQ-qM_MVXiHHwfX6Qs_zu8PyE,2346
53
+ moderation_api/types/auth_create_response.py,sha256=A_Oa0xqVsN2xfri7seZ_0rhW8tgVT7Gh3JuJabeF3HM,367
54
+ moderation_api/types/auth_retrieve_response.py,sha256=pIactiq8EODz1Ko2hHwAtfTr1VrLcho5Rf8mUDL7dSA,309
55
+ moderation_api/types/author_create_params.py,sha256=TxM52_YrMMTlLKu3AxW872dFw1zojaZziEGJUnlChD8,1541
56
+ moderation_api/types/author_create_response.py,sha256=vWIwZN06dVbjpqGY4TVerB596mxywp21z7zLNeVLElg,3512
57
+ moderation_api/types/author_delete_response.py,sha256=U8NuWxbn8diBNn1wM7S13bMF8Cqf4c4Zoh5nug08UOs,214
58
+ moderation_api/types/author_list_params.py,sha256=PZgXw-j5x-5oncW5NN6onmLx1_EozRfTEewU4luuJJw,1171
59
+ moderation_api/types/author_list_response.py,sha256=DHpBj7bVjYIEN9kZ1AlLOC4xqBLLYtD65ctsGceGLZ4,4024
60
+ moderation_api/types/author_retrieve_response.py,sha256=J-9uiJOgNDLykgC5UxEGoRrzX2gMKbwLzsUw8_N7ehE,3516
61
+ moderation_api/types/author_update_params.py,sha256=Yb8yj_s0ENK9iVEWjTfRhXcfkLA-g6UuNHevDhh6_cs,1415
62
+ moderation_api/types/author_update_response.py,sha256=aaM_tU70h81f78WbtPrXhlgyFJeEGkTc4_Kwr7YC25s,3512
63
+ moderation_api/types/content_submit_params.py,sha256=g1fpq7lf9UZpTjl6XNNx_3I6eYD68Af_74MgHbiRiew,8127
64
+ moderation_api/types/content_submit_response.py,sha256=0H8CEu5qFXrEW9hsx0zx8ecywAvpY_ILh7BpAiuIG34,7030
65
+ moderation_api/types/queue_get_stats_params.py,sha256=WP4B8wrN8F14ydBwJMw-lRx4uNe803e2CucXn6KDU3M,414
66
+ moderation_api/types/queue_get_stats_response.py,sha256=v55BLHiQOMf2PlFVpWWhz5LypGGbHIc5Xj5WBMK4Q54,3045
67
+ moderation_api/types/queue_retrieve_response.py,sha256=j3hxnQ1yAstPV2INKPlXUEGEB9hJvklQSl2gAH_YaDA,1925
68
+ moderation_api/types/wordlist_get_embedding_status_response.py,sha256=DlXPB0QRblR6eerzYfdY3TxPNRMML2VMfpRp7C_TyZ0,570
69
+ moderation_api/types/wordlist_list_response.py,sha256=-OTtt5osNWWNyB7dT0X1iGxC8fR6g_yhI_AFJ2KOOlk,833
70
+ moderation_api/types/wordlist_retrieve_response.py,sha256=RGtLN8GmceY9CSxcdhFxmFnmF3D6GSbXGMUTIX-6jJQ,760
71
+ moderation_api/types/wordlist_update_params.py,sha256=_L-j5fkuE4Ar8Mn7E4RGj8eX8PjLXu0u3UiQgu8_0aM,696
72
+ moderation_api/types/wordlist_update_response.py,sha256=fJdRdppnkskkV1RcwDhvT09vwUiJtugXqrPAdODM7AI,756
73
+ moderation_api/types/actions/__init__.py,sha256=MVY1iZaLzqxyrS8gPEJVwQxahOd4oNS3DOWZBeVXix4,487
74
+ moderation_api/types/actions/execute_execute_by_id_params.py,sha256=ZT1g4zQSNLzMxxMN6Knx35cggCy-gkF5KSZX9HBUSz8,848
75
+ moderation_api/types/actions/execute_execute_by_id_response.py,sha256=paEqBAqFd7UlXchWVgs4FFxl_F58Qeq0SmzZ8qGIuAk,475
76
+ moderation_api/types/actions/execute_execute_params.py,sha256=GSoQgC4t_5tr2Hrl1SwA_nisR7jz_YFeSjt9RNZn3do,1077
77
+ moderation_api/types/actions/execute_execute_response.py,sha256=Vo2r9PgbwRbP4WsXan1ruARFnbgv3ZCKLksm1XvAgYI,274
78
+ moderation_api/types/queue/__init__.py,sha256=mPYNjP2h98zQJHbpAnsoT9Qu6OT2w76hdiBuYOnk4zU,567
79
+ moderation_api/types/queue/item_list_params.py,sha256=a5XHNUP3z44pTLzRk3qy0vkjaKYB8IVeueDCwovfHpo,1169
80
+ moderation_api/types/queue/item_list_response.py,sha256=6CIL-qZ-vPU2546s-3jB4Wje9dm8W4uLfd-LofXMA_w,2047
81
+ moderation_api/types/queue/item_resolve_params.py,sha256=LxAIKZYo9ioGY_2yfLdUhezFYr1HoZ0h-_6UuV7s1ys,347
82
+ moderation_api/types/queue/item_resolve_response.py,sha256=ef4bUBEtLCCa30DL28JSmn40Yd9973tNKs4wRCk9x20,446
83
+ moderation_api/types/queue/item_unresolve_params.py,sha256=N1RV053CTw3KS4rlH3_OmkB4ph2NQ5-mKfU1D5-Kln0,375
84
+ moderation_api/types/queue/item_unresolve_response.py,sha256=nvfvYR7PF2KafNfD_H3LeuYONWoZ80H5NNuWyK4tA_o,415
85
+ moderation_api/types/wordlist/__init__.py,sha256=CuFZ44unpihUjNF_BBXr-scRgUmoyIMj32iSqUZmsdk,393
86
+ moderation_api/types/wordlist/word_add_params.py,sha256=aHBy-HIusjqWu97aTnj5v_fLFzUh8DuUkhWP0pFXiLo,410
87
+ moderation_api/types/wordlist/word_add_response.py,sha256=16sHnmZzzNmMny7slQYA29nXv290ubW_LmpQf4i_x-g,540
88
+ moderation_api/types/wordlist/word_remove_params.py,sha256=3oNAec4v8OyRA6oBvBtiHQIlrFJ2KYNglCgUVQo-ZpE,387
89
+ moderation_api/types/wordlist/word_remove_response.py,sha256=rU7NVeFMlo_UWQLXdYu8ikKiItJ-2QN0S2WQHcalpkc,548
90
+ moderation_api-1.0.0.dist-info/METADATA,sha256=qv2CLr5lnuEHGT2kGJ1RFiOjsipXUIDnVqz5bblFAGI,15126
91
+ moderation_api-1.0.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
92
+ moderation_api-1.0.0.dist-info/licenses/LICENSE,sha256=AdrIFEfkw3KAVzbQPx0WLBWZCSLTzbfEmu9QzVokOp8,11344
93
+ moderation_api-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.26.3
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any