pdc-api 0.4.1__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.
pdc_api/__init__.py ADDED
@@ -0,0 +1,37 @@
1
+ from pdc_api.errors import (
2
+ ApplicationFormNotFoundError,
3
+ ChangemakerFieldValueBatchNotFoundError,
4
+ ChangemakerNotFoundError,
5
+ FunderNotFoundError,
6
+ PDCBadRequestError,
7
+ PDCConflictError,
8
+ PDCException,
9
+ PDCForbiddenError,
10
+ PDCNotFoundError,
11
+ PDCServiceError,
12
+ PDCUnauthorizedError,
13
+ PDCUnprocessableEntityError,
14
+ ProposalNotFoundError,
15
+ TokenRequestError,
16
+ )
17
+ from pdc_api.token import TokenProvider
18
+ from pdc_api.transport import APISession
19
+
20
+ __all__ = [
21
+ "APISession",
22
+ "ApplicationFormNotFoundError",
23
+ "ChangemakerFieldValueBatchNotFoundError",
24
+ "ChangemakerNotFoundError",
25
+ "FunderNotFoundError",
26
+ "PDCBadRequestError",
27
+ "PDCConflictError",
28
+ "PDCException",
29
+ "PDCForbiddenError",
30
+ "PDCNotFoundError",
31
+ "PDCServiceError",
32
+ "PDCUnauthorizedError",
33
+ "PDCUnprocessableEntityError",
34
+ "ProposalNotFoundError",
35
+ "TokenProvider",
36
+ "TokenRequestError",
37
+ ]
pdc_api/_base.py ADDED
@@ -0,0 +1,6 @@
1
+ from pydantic import BaseModel, ConfigDict
2
+
3
+
4
+ class BaseSchema(BaseModel):
5
+ # Ignore undeclared fields so a field PDC adds to a response doesn't break parsing.
6
+ model_config = ConfigDict(populate_by_name=True, extra="ignore")