tango-python 0.0.1a1__py3-none-any.whl → 0.2.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.
- tango/__init__.py +33 -78
- tango/client.py +860 -0
- tango/exceptions.py +100 -0
- tango/models.py +447 -0
- tango/shapes/__init__.py +41 -0
- tango/shapes/explicit_schemas.py +752 -0
- tango/shapes/factory.py +881 -0
- tango/shapes/generator.py +617 -0
- tango/shapes/models.py +93 -0
- tango/shapes/parser.py +689 -0
- tango/shapes/schema.py +383 -0
- tango/shapes/types.py +46 -0
- tango_python-0.2.0.dist-info/METADATA +532 -0
- tango_python-0.2.0.dist-info/RECORD +16 -0
- {tango_python-0.0.1a1.dist-info → tango_python-0.2.0.dist-info}/WHEEL +1 -1
- tango_python-0.2.0.dist-info/licenses/LICENSE +21 -0
- tango/_base_client.py +0 -2045
- tango/_client.py +0 -544
- tango/_compat.py +0 -219
- tango/_constants.py +0 -14
- tango/_exceptions.py +0 -108
- tango/_files.py +0 -123
- tango/_models.py +0 -788
- tango/_qs.py +0 -150
- tango/_resource.py +0 -43
- tango/_response.py +0 -824
- tango/_streaming.py +0 -333
- tango/_types.py +0 -219
- tango/_utils/__init__.py +0 -56
- tango/_utils/_logs.py +0 -25
- tango/_utils/_proxy.py +0 -62
- tango/_utils/_reflection.py +0 -42
- tango/_utils/_streams.py +0 -12
- tango/_utils/_sync.py +0 -71
- tango/_utils/_transform.py +0 -392
- tango/_utils/_typing.py +0 -120
- tango/_utils/_utils.py +0 -414
- tango/_version.py +0 -4
- tango/lib/.keep +0 -4
- tango/py.typed +0 -0
- tango/resources/__init__.py +0 -229
- tango/resources/agencies.py +0 -255
- tango/resources/assistance_listings.py +0 -214
- tango/resources/bulk/__init__.py +0 -33
- tango/resources/bulk/bulk.py +0 -102
- tango/resources/bulk/entities.py +0 -152
- tango/resources/business_types.py +0 -218
- tango/resources/contracts.py +0 -381
- tango/resources/departments.py +0 -210
- tango/resources/entities.py +0 -325
- tango/resources/idvs/__init__.py +0 -33
- tango/resources/idvs/awards.py +0 -287
- tango/resources/idvs/idvs.py +0 -413
- tango/resources/naics.py +0 -317
- tango/resources/notices.py +0 -391
- tango/resources/offices.py +0 -281
- tango/resources/opportunities.py +0 -420
- tango/resources/pscs.py +0 -210
- tango/resources/schemas.py +0 -398
- tango/resources/subawards.py +0 -313
- tango/resources/versions.py +0 -136
- tango/types/__init__.py +0 -43
- tango/types/agency.py +0 -17
- tango/types/agency_list_params.py +0 -14
- tango/types/agency_list_response.py +0 -10
- tango/types/assistance_listing.py +0 -12
- tango/types/assistance_listing_list_response.py +0 -10
- tango/types/assistance_listing_retrieve_response.py +0 -26
- tango/types/bulk/__init__.py +0 -3
- tango/types/business_type.py +0 -14
- tango/types/business_type_list_response.py +0 -10
- tango/types/contract_list_params.py +0 -78
- tango/types/contract_list_response.py +0 -55
- tango/types/contract_retrieve_response.py +0 -51
- tango/types/department.py +0 -16
- tango/types/department_list_response.py +0 -10
- tango/types/entity_list_params.py +0 -38
- tango/types/entity_list_response.py +0 -37
- tango/types/entity_retrieve_response.py +0 -116
- tango/types/idv.py +0 -102
- tango/types/idv_list_params.py +0 -78
- tango/types/idv_list_response.py +0 -27
- tango/types/idvs/__init__.py +0 -6
- tango/types/idvs/award_list_params.py +0 -55
- tango/types/idvs/award_list_response.py +0 -55
- tango/types/naic_list_params.py +0 -47
- tango/types/naic_list_response.py +0 -10
- tango/types/naic_retrieve_response.py +0 -13
- tango/types/naics_code.py +0 -13
- tango/types/notice_list_params.py +0 -81
- tango/types/notice_list_response.py +0 -60
- tango/types/notice_retrieve_response.py +0 -93
- tango/types/office.py +0 -15
- tango/types/office_list_params.py +0 -18
- tango/types/office_list_response.py +0 -18
- tango/types/opportunity_list_params.py +0 -97
- tango/types/opportunity_list_response.py +0 -101
- tango/types/opportunity_retrieve_response.py +0 -123
- tango/types/product_service_code.py +0 -21
- tango/types/psc_list_response.py +0 -10
- tango/types/schema_retrieve_params.py +0 -113
- tango/types/schema_retrieve_response.py +0 -8
- tango/types/subaward.py +0 -172
- tango/types/subaward_list_params.py +0 -33
- tango/types/subaward_list_response.py +0 -18
- tango_python-0.0.1a1.dist-info/METADATA +0 -359
- tango_python-0.0.1a1.dist-info/RECORD +0 -94
- tango_python-0.0.1a1.dist-info/licenses/LICENSE +0 -201
tango/__init__.py
CHANGED
|
@@ -1,83 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
"""Tango API Python SDK"""
|
|
2
2
|
|
|
3
|
-
from . import
|
|
4
|
-
from .
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
from .
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
AuthenticationError,
|
|
22
|
-
InternalServerError,
|
|
23
|
-
PermissionDeniedError,
|
|
24
|
-
UnprocessableEntityError,
|
|
25
|
-
APIResponseValidationError,
|
|
3
|
+
from .client import TangoClient
|
|
4
|
+
from .exceptions import (
|
|
5
|
+
TangoAPIError,
|
|
6
|
+
TangoAuthError,
|
|
7
|
+
TangoNotFoundError,
|
|
8
|
+
TangoRateLimitError,
|
|
9
|
+
TangoValidationError,
|
|
10
|
+
)
|
|
11
|
+
from .models import (
|
|
12
|
+
PaginatedResponse,
|
|
13
|
+
SearchFilters,
|
|
14
|
+
ShapeConfig,
|
|
15
|
+
)
|
|
16
|
+
from .shapes import (
|
|
17
|
+
ModelFactory,
|
|
18
|
+
SchemaRegistry,
|
|
19
|
+
ShapeParser,
|
|
20
|
+
TypeGenerator,
|
|
26
21
|
)
|
|
27
|
-
from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
|
|
28
|
-
from ._utils._logs import setup_logging as _setup_logging
|
|
29
22
|
|
|
23
|
+
__version__ = "0.2.0"
|
|
30
24
|
__all__ = [
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"APIResponseValidationError",
|
|
45
|
-
"BadRequestError",
|
|
46
|
-
"AuthenticationError",
|
|
47
|
-
"PermissionDeniedError",
|
|
48
|
-
"NotFoundError",
|
|
49
|
-
"ConflictError",
|
|
50
|
-
"UnprocessableEntityError",
|
|
51
|
-
"RateLimitError",
|
|
52
|
-
"InternalServerError",
|
|
53
|
-
"Timeout",
|
|
54
|
-
"RequestOptions",
|
|
55
|
-
"Client",
|
|
56
|
-
"AsyncClient",
|
|
57
|
-
"Stream",
|
|
58
|
-
"AsyncStream",
|
|
59
|
-
"Tango",
|
|
60
|
-
"AsyncTango",
|
|
61
|
-
"file_from_path",
|
|
62
|
-
"BaseModel",
|
|
63
|
-
"DEFAULT_TIMEOUT",
|
|
64
|
-
"DEFAULT_MAX_RETRIES",
|
|
65
|
-
"DEFAULT_CONNECTION_LIMITS",
|
|
66
|
-
"DefaultHttpxClient",
|
|
67
|
-
"DefaultAsyncHttpxClient",
|
|
25
|
+
"TangoClient",
|
|
26
|
+
"TangoAPIError",
|
|
27
|
+
"TangoAuthError",
|
|
28
|
+
"TangoNotFoundError",
|
|
29
|
+
"TangoValidationError",
|
|
30
|
+
"TangoRateLimitError",
|
|
31
|
+
"PaginatedResponse",
|
|
32
|
+
"SearchFilters",
|
|
33
|
+
"ShapeConfig",
|
|
34
|
+
"ShapeParser",
|
|
35
|
+
"ModelFactory",
|
|
36
|
+
"TypeGenerator",
|
|
37
|
+
"SchemaRegistry",
|
|
68
38
|
]
|
|
69
|
-
|
|
70
|
-
_setup_logging()
|
|
71
|
-
|
|
72
|
-
# Update the __module__ attribute for exported symbols so that
|
|
73
|
-
# error messages point to this module instead of the module
|
|
74
|
-
# it was originally defined in, e.g.
|
|
75
|
-
# tango._exceptions.NotFoundError -> tango.NotFoundError
|
|
76
|
-
__locals = locals()
|
|
77
|
-
for __name in __all__:
|
|
78
|
-
if not __name.startswith("__"):
|
|
79
|
-
try:
|
|
80
|
-
__locals[__name].__module__ = "tango"
|
|
81
|
-
except (TypeError, AttributeError):
|
|
82
|
-
# Some of our exported symbols are builtins which we can't set attributes for.
|
|
83
|
-
pass
|