tango-python 0.1.0a1__py3-none-any.whl → 0.3.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 (108) hide show
  1. tango/__init__.py +45 -78
  2. tango/client.py +1527 -0
  3. tango/exceptions.py +100 -0
  4. tango/models.py +565 -0
  5. tango/shapes/__init__.py +41 -0
  6. tango/shapes/explicit_schemas.py +1054 -0
  7. tango/shapes/factory.py +881 -0
  8. tango/shapes/generator.py +617 -0
  9. tango/shapes/models.py +93 -0
  10. tango/shapes/parser.py +689 -0
  11. tango/shapes/schema.py +383 -0
  12. tango/shapes/types.py +46 -0
  13. tango_python-0.3.0.dist-info/METADATA +532 -0
  14. tango_python-0.3.0.dist-info/RECORD +16 -0
  15. {tango_python-0.1.0a1.dist-info → tango_python-0.3.0.dist-info}/WHEEL +1 -1
  16. tango_python-0.3.0.dist-info/licenses/LICENSE +21 -0
  17. tango/_base_client.py +0 -2045
  18. tango/_client.py +0 -528
  19. tango/_compat.py +0 -219
  20. tango/_constants.py +0 -14
  21. tango/_exceptions.py +0 -108
  22. tango/_files.py +0 -123
  23. tango/_models.py +0 -788
  24. tango/_qs.py +0 -150
  25. tango/_resource.py +0 -43
  26. tango/_response.py +0 -824
  27. tango/_streaming.py +0 -333
  28. tango/_types.py +0 -219
  29. tango/_utils/__init__.py +0 -56
  30. tango/_utils/_logs.py +0 -25
  31. tango/_utils/_proxy.py +0 -62
  32. tango/_utils/_reflection.py +0 -42
  33. tango/_utils/_streams.py +0 -12
  34. tango/_utils/_sync.py +0 -71
  35. tango/_utils/_transform.py +0 -392
  36. tango/_utils/_typing.py +0 -120
  37. tango/_utils/_utils.py +0 -414
  38. tango/_version.py +0 -4
  39. tango/lib/.keep +0 -4
  40. tango/py.typed +0 -0
  41. tango/resources/__init__.py +0 -229
  42. tango/resources/agencies.py +0 -255
  43. tango/resources/assistance_listings.py +0 -214
  44. tango/resources/bulk/__init__.py +0 -33
  45. tango/resources/bulk/bulk.py +0 -102
  46. tango/resources/bulk/entities.py +0 -152
  47. tango/resources/business_types.py +0 -218
  48. tango/resources/contracts.py +0 -381
  49. tango/resources/departments.py +0 -210
  50. tango/resources/entities.py +0 -325
  51. tango/resources/idvs/__init__.py +0 -33
  52. tango/resources/idvs/awards.py +0 -287
  53. tango/resources/idvs/idvs.py +0 -413
  54. tango/resources/naics.py +0 -317
  55. tango/resources/notices.py +0 -391
  56. tango/resources/offices.py +0 -281
  57. tango/resources/opportunities.py +0 -420
  58. tango/resources/pscs.py +0 -210
  59. tango/resources/schemas.py +0 -398
  60. tango/resources/subawards.py +0 -313
  61. tango/resources/versions.py +0 -136
  62. tango/types/__init__.py +0 -43
  63. tango/types/agency.py +0 -17
  64. tango/types/agency_list_params.py +0 -14
  65. tango/types/agency_list_response.py +0 -10
  66. tango/types/assistance_listing.py +0 -12
  67. tango/types/assistance_listing_list_response.py +0 -10
  68. tango/types/assistance_listing_retrieve_response.py +0 -26
  69. tango/types/bulk/__init__.py +0 -3
  70. tango/types/business_type.py +0 -14
  71. tango/types/business_type_list_response.py +0 -10
  72. tango/types/contract_list_params.py +0 -78
  73. tango/types/contract_list_response.py +0 -55
  74. tango/types/contract_retrieve_response.py +0 -51
  75. tango/types/department.py +0 -16
  76. tango/types/department_list_response.py +0 -10
  77. tango/types/entity_list_params.py +0 -38
  78. tango/types/entity_list_response.py +0 -37
  79. tango/types/entity_retrieve_response.py +0 -116
  80. tango/types/idv.py +0 -102
  81. tango/types/idv_list_params.py +0 -78
  82. tango/types/idv_list_response.py +0 -27
  83. tango/types/idvs/__init__.py +0 -6
  84. tango/types/idvs/award_list_params.py +0 -55
  85. tango/types/idvs/award_list_response.py +0 -55
  86. tango/types/naic_list_params.py +0 -47
  87. tango/types/naic_list_response.py +0 -10
  88. tango/types/naic_retrieve_response.py +0 -13
  89. tango/types/naics_code.py +0 -13
  90. tango/types/notice_list_params.py +0 -81
  91. tango/types/notice_list_response.py +0 -60
  92. tango/types/notice_retrieve_response.py +0 -93
  93. tango/types/office.py +0 -15
  94. tango/types/office_list_params.py +0 -18
  95. tango/types/office_list_response.py +0 -18
  96. tango/types/opportunity_list_params.py +0 -97
  97. tango/types/opportunity_list_response.py +0 -101
  98. tango/types/opportunity_retrieve_response.py +0 -123
  99. tango/types/product_service_code.py +0 -21
  100. tango/types/psc_list_response.py +0 -10
  101. tango/types/schema_retrieve_params.py +0 -113
  102. tango/types/schema_retrieve_response.py +0 -8
  103. tango/types/subaward.py +0 -172
  104. tango/types/subaward_list_params.py +0 -33
  105. tango/types/subaward_list_response.py +0 -18
  106. tango_python-0.1.0a1.dist-info/METADATA +0 -350
  107. tango_python-0.1.0a1.dist-info/RECORD +0 -94
  108. tango_python-0.1.0a1.dist-info/licenses/LICENSE +0 -201
tango/__init__.py CHANGED
@@ -1,83 +1,50 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1
+ """Tango API Python SDK"""
2
2
 
3
- from . import types
4
- from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes
5
- from ._utils import file_from_path
6
- from ._client import Tango, Client, Stream, Timeout, Transport, AsyncTango, AsyncClient, AsyncStream, RequestOptions
7
- from ._models import BaseModel
8
- from ._version import __title__, __version__
9
- from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
10
- from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
11
- from ._exceptions import (
12
- APIError,
13
- TangoError,
14
- ConflictError,
15
- NotFoundError,
16
- APIStatusError,
17
- RateLimitError,
18
- APITimeoutError,
19
- BadRequestError,
20
- APIConnectionError,
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
+ WebhookEndpoint,
16
+ WebhookEventType,
17
+ WebhookEventTypesResponse,
18
+ WebhookSubjectTypeDefinition,
19
+ WebhookSubscription,
20
+ WebhookTestDeliveryResult,
21
+ )
22
+ from .shapes import (
23
+ ModelFactory,
24
+ SchemaRegistry,
25
+ ShapeParser,
26
+ TypeGenerator,
26
27
  )
27
- from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
28
- from ._utils._logs import setup_logging as _setup_logging
29
28
 
29
+ __version__ = "0.3.0"
30
30
  __all__ = [
31
- "types",
32
- "__version__",
33
- "__title__",
34
- "NoneType",
35
- "Transport",
36
- "ProxiesTypes",
37
- "NotGiven",
38
- "NOT_GIVEN",
39
- "TangoError",
40
- "APIError",
41
- "APIStatusError",
42
- "APITimeoutError",
43
- "APIConnectionError",
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",
31
+ "TangoClient",
32
+ "TangoAPIError",
33
+ "TangoAuthError",
34
+ "TangoNotFoundError",
35
+ "TangoValidationError",
36
+ "TangoRateLimitError",
37
+ "PaginatedResponse",
38
+ "SearchFilters",
39
+ "ShapeConfig",
40
+ "WebhookEndpoint",
41
+ "WebhookEventType",
42
+ "WebhookEventTypesResponse",
43
+ "WebhookSubscription",
44
+ "WebhookSubjectTypeDefinition",
45
+ "WebhookTestDeliveryResult",
46
+ "ShapeParser",
47
+ "ModelFactory",
48
+ "TypeGenerator",
49
+ "SchemaRegistry",
68
50
  ]
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