tango-python 0.0.1a1__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 +83 -0
- tango/_base_client.py +2045 -0
- tango/_client.py +544 -0
- tango/_compat.py +219 -0
- tango/_constants.py +14 -0
- tango/_exceptions.py +108 -0
- tango/_files.py +123 -0
- tango/_models.py +788 -0
- tango/_qs.py +150 -0
- tango/_resource.py +43 -0
- tango/_response.py +824 -0
- tango/_streaming.py +333 -0
- tango/_types.py +219 -0
- tango/_utils/__init__.py +56 -0
- tango/_utils/_logs.py +25 -0
- tango/_utils/_proxy.py +62 -0
- tango/_utils/_reflection.py +42 -0
- tango/_utils/_streams.py +12 -0
- tango/_utils/_sync.py +71 -0
- tango/_utils/_transform.py +392 -0
- tango/_utils/_typing.py +120 -0
- tango/_utils/_utils.py +414 -0
- tango/_version.py +4 -0
- tango/lib/.keep +4 -0
- tango/py.typed +0 -0
- tango/resources/__init__.py +229 -0
- tango/resources/agencies.py +255 -0
- tango/resources/assistance_listings.py +214 -0
- tango/resources/bulk/__init__.py +33 -0
- tango/resources/bulk/bulk.py +102 -0
- tango/resources/bulk/entities.py +152 -0
- tango/resources/business_types.py +218 -0
- tango/resources/contracts.py +381 -0
- tango/resources/departments.py +210 -0
- tango/resources/entities.py +325 -0
- tango/resources/idvs/__init__.py +33 -0
- tango/resources/idvs/awards.py +287 -0
- tango/resources/idvs/idvs.py +413 -0
- tango/resources/naics.py +317 -0
- tango/resources/notices.py +391 -0
- tango/resources/offices.py +281 -0
- tango/resources/opportunities.py +420 -0
- tango/resources/pscs.py +210 -0
- tango/resources/schemas.py +398 -0
- tango/resources/subawards.py +313 -0
- tango/resources/versions.py +136 -0
- tango/types/__init__.py +43 -0
- tango/types/agency.py +17 -0
- tango/types/agency_list_params.py +14 -0
- tango/types/agency_list_response.py +10 -0
- tango/types/assistance_listing.py +12 -0
- tango/types/assistance_listing_list_response.py +10 -0
- tango/types/assistance_listing_retrieve_response.py +26 -0
- tango/types/bulk/__init__.py +3 -0
- tango/types/business_type.py +14 -0
- tango/types/business_type_list_response.py +10 -0
- tango/types/contract_list_params.py +78 -0
- tango/types/contract_list_response.py +55 -0
- tango/types/contract_retrieve_response.py +51 -0
- tango/types/department.py +16 -0
- tango/types/department_list_response.py +10 -0
- tango/types/entity_list_params.py +38 -0
- tango/types/entity_list_response.py +37 -0
- tango/types/entity_retrieve_response.py +116 -0
- tango/types/idv.py +102 -0
- tango/types/idv_list_params.py +78 -0
- tango/types/idv_list_response.py +27 -0
- tango/types/idvs/__init__.py +6 -0
- tango/types/idvs/award_list_params.py +55 -0
- tango/types/idvs/award_list_response.py +55 -0
- tango/types/naic_list_params.py +47 -0
- tango/types/naic_list_response.py +10 -0
- tango/types/naic_retrieve_response.py +13 -0
- tango/types/naics_code.py +13 -0
- tango/types/notice_list_params.py +81 -0
- tango/types/notice_list_response.py +60 -0
- tango/types/notice_retrieve_response.py +93 -0
- tango/types/office.py +15 -0
- tango/types/office_list_params.py +18 -0
- tango/types/office_list_response.py +18 -0
- tango/types/opportunity_list_params.py +97 -0
- tango/types/opportunity_list_response.py +101 -0
- tango/types/opportunity_retrieve_response.py +123 -0
- tango/types/product_service_code.py +21 -0
- tango/types/psc_list_response.py +10 -0
- tango/types/schema_retrieve_params.py +113 -0
- tango/types/schema_retrieve_response.py +8 -0
- tango/types/subaward.py +172 -0
- tango/types/subaward_list_params.py +33 -0
- tango/types/subaward_list_response.py +18 -0
- tango_python-0.0.1a1.dist-info/METADATA +359 -0
- tango_python-0.0.1a1.dist-info/RECORD +94 -0
- tango_python-0.0.1a1.dist-info/WHEEL +4 -0
- tango_python-0.0.1a1.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
|
8
|
+
from .._compat import cached_property
|
|
9
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
+
from .._response import (
|
|
11
|
+
to_raw_response_wrapper,
|
|
12
|
+
to_streamed_response_wrapper,
|
|
13
|
+
async_to_raw_response_wrapper,
|
|
14
|
+
async_to_streamed_response_wrapper,
|
|
15
|
+
)
|
|
16
|
+
from .._base_client import make_request_options
|
|
17
|
+
|
|
18
|
+
__all__ = ["VersionsResource", "AsyncVersionsResource"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class VersionsResource(SyncAPIResource):
|
|
22
|
+
@cached_property
|
|
23
|
+
def with_raw_response(self) -> VersionsResourceWithRawResponse:
|
|
24
|
+
"""
|
|
25
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
26
|
+
the raw response object instead of the parsed content.
|
|
27
|
+
|
|
28
|
+
For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers
|
|
29
|
+
"""
|
|
30
|
+
return VersionsResourceWithRawResponse(self)
|
|
31
|
+
|
|
32
|
+
@cached_property
|
|
33
|
+
def with_streaming_response(self) -> VersionsResourceWithStreamingResponse:
|
|
34
|
+
"""
|
|
35
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
36
|
+
|
|
37
|
+
For more information, see https://www.github.com/makegov/tango-python#with_streaming_response
|
|
38
|
+
"""
|
|
39
|
+
return VersionsResourceWithStreamingResponse(self)
|
|
40
|
+
|
|
41
|
+
def retrieve(
|
|
42
|
+
self,
|
|
43
|
+
*,
|
|
44
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
45
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
46
|
+
extra_headers: Headers | None = None,
|
|
47
|
+
extra_query: Query | None = None,
|
|
48
|
+
extra_body: Body | None = None,
|
|
49
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
50
|
+
) -> None:
|
|
51
|
+
"""API endpoint to get version."""
|
|
52
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
53
|
+
return self._get(
|
|
54
|
+
"/api/version/",
|
|
55
|
+
options=make_request_options(
|
|
56
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
57
|
+
),
|
|
58
|
+
cast_to=NoneType,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class AsyncVersionsResource(AsyncAPIResource):
|
|
63
|
+
@cached_property
|
|
64
|
+
def with_raw_response(self) -> AsyncVersionsResourceWithRawResponse:
|
|
65
|
+
"""
|
|
66
|
+
This property can be used as a prefix for any HTTP method call to return the
|
|
67
|
+
the raw response object instead of the parsed content.
|
|
68
|
+
|
|
69
|
+
For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers
|
|
70
|
+
"""
|
|
71
|
+
return AsyncVersionsResourceWithRawResponse(self)
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def with_streaming_response(self) -> AsyncVersionsResourceWithStreamingResponse:
|
|
75
|
+
"""
|
|
76
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
77
|
+
|
|
78
|
+
For more information, see https://www.github.com/makegov/tango-python#with_streaming_response
|
|
79
|
+
"""
|
|
80
|
+
return AsyncVersionsResourceWithStreamingResponse(self)
|
|
81
|
+
|
|
82
|
+
async def retrieve(
|
|
83
|
+
self,
|
|
84
|
+
*,
|
|
85
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
86
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
87
|
+
extra_headers: Headers | None = None,
|
|
88
|
+
extra_query: Query | None = None,
|
|
89
|
+
extra_body: Body | None = None,
|
|
90
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
91
|
+
) -> None:
|
|
92
|
+
"""API endpoint to get version."""
|
|
93
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
94
|
+
return await self._get(
|
|
95
|
+
"/api/version/",
|
|
96
|
+
options=make_request_options(
|
|
97
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
98
|
+
),
|
|
99
|
+
cast_to=NoneType,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class VersionsResourceWithRawResponse:
|
|
104
|
+
def __init__(self, versions: VersionsResource) -> None:
|
|
105
|
+
self._versions = versions
|
|
106
|
+
|
|
107
|
+
self.retrieve = to_raw_response_wrapper(
|
|
108
|
+
versions.retrieve,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class AsyncVersionsResourceWithRawResponse:
|
|
113
|
+
def __init__(self, versions: AsyncVersionsResource) -> None:
|
|
114
|
+
self._versions = versions
|
|
115
|
+
|
|
116
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
117
|
+
versions.retrieve,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class VersionsResourceWithStreamingResponse:
|
|
122
|
+
def __init__(self, versions: VersionsResource) -> None:
|
|
123
|
+
self._versions = versions
|
|
124
|
+
|
|
125
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
126
|
+
versions.retrieve,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class AsyncVersionsResourceWithStreamingResponse:
|
|
131
|
+
def __init__(self, versions: AsyncVersionsResource) -> None:
|
|
132
|
+
self._versions = versions
|
|
133
|
+
|
|
134
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
135
|
+
versions.retrieve,
|
|
136
|
+
)
|
tango/types/__init__.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .idv import Idv as Idv
|
|
6
|
+
from .agency import Agency as Agency
|
|
7
|
+
from .office import Office as Office
|
|
8
|
+
from .subaward import Subaward as Subaward
|
|
9
|
+
from .department import Department as Department
|
|
10
|
+
from .naics_code import NaicsCode as NaicsCode
|
|
11
|
+
from .business_type import BusinessType as BusinessType
|
|
12
|
+
from .idv_list_params import IdvListParams as IdvListParams
|
|
13
|
+
from .naic_list_params import NaicListParams as NaicListParams
|
|
14
|
+
from .idv_list_response import IdvListResponse as IdvListResponse
|
|
15
|
+
from .psc_list_response import PscListResponse as PscListResponse
|
|
16
|
+
from .agency_list_params import AgencyListParams as AgencyListParams
|
|
17
|
+
from .assistance_listing import AssistanceListing as AssistanceListing
|
|
18
|
+
from .entity_list_params import EntityListParams as EntityListParams
|
|
19
|
+
from .naic_list_response import NaicListResponse as NaicListResponse
|
|
20
|
+
from .notice_list_params import NoticeListParams as NoticeListParams
|
|
21
|
+
from .office_list_params import OfficeListParams as OfficeListParams
|
|
22
|
+
from .agency_list_response import AgencyListResponse as AgencyListResponse
|
|
23
|
+
from .contract_list_params import ContractListParams as ContractListParams
|
|
24
|
+
from .entity_list_response import EntityListResponse as EntityListResponse
|
|
25
|
+
from .notice_list_response import NoticeListResponse as NoticeListResponse
|
|
26
|
+
from .office_list_response import OfficeListResponse as OfficeListResponse
|
|
27
|
+
from .product_service_code import ProductServiceCode as ProductServiceCode
|
|
28
|
+
from .subaward_list_params import SubawardListParams as SubawardListParams
|
|
29
|
+
from .contract_list_response import ContractListResponse as ContractListResponse
|
|
30
|
+
from .naic_retrieve_response import NaicRetrieveResponse as NaicRetrieveResponse
|
|
31
|
+
from .schema_retrieve_params import SchemaRetrieveParams as SchemaRetrieveParams
|
|
32
|
+
from .subaward_list_response import SubawardListResponse as SubawardListResponse
|
|
33
|
+
from .opportunity_list_params import OpportunityListParams as OpportunityListParams
|
|
34
|
+
from .department_list_response import DepartmentListResponse as DepartmentListResponse
|
|
35
|
+
from .entity_retrieve_response import EntityRetrieveResponse as EntityRetrieveResponse
|
|
36
|
+
from .notice_retrieve_response import NoticeRetrieveResponse as NoticeRetrieveResponse
|
|
37
|
+
from .schema_retrieve_response import SchemaRetrieveResponse as SchemaRetrieveResponse
|
|
38
|
+
from .opportunity_list_response import OpportunityListResponse as OpportunityListResponse
|
|
39
|
+
from .contract_retrieve_response import ContractRetrieveResponse as ContractRetrieveResponse
|
|
40
|
+
from .business_type_list_response import BusinessTypeListResponse as BusinessTypeListResponse
|
|
41
|
+
from .opportunity_retrieve_response import OpportunityRetrieveResponse as OpportunityRetrieveResponse
|
|
42
|
+
from .assistance_listing_list_response import AssistanceListingListResponse as AssistanceListingListResponse
|
|
43
|
+
from .assistance_listing_retrieve_response import AssistanceListingRetrieveResponse as AssistanceListingRetrieveResponse
|
tango/types/agency.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["Agency"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Agency(BaseModel):
|
|
11
|
+
code: str
|
|
12
|
+
|
|
13
|
+
department: int
|
|
14
|
+
|
|
15
|
+
name: str
|
|
16
|
+
|
|
17
|
+
abbreviation: Optional[str] = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["AgencyListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AgencyListParams(TypedDict, total=False):
|
|
11
|
+
search: str
|
|
12
|
+
"""
|
|
13
|
+
<details><summary>Filter by </summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
|
|
14
|
+
"""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .agency import Agency
|
|
7
|
+
|
|
8
|
+
__all__ = ["AgencyListResponse"]
|
|
9
|
+
|
|
10
|
+
AgencyListResponse: TypeAlias = List[Agency]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .assistance_listing import AssistanceListing
|
|
7
|
+
|
|
8
|
+
__all__ = ["AssistanceListingListResponse"]
|
|
9
|
+
|
|
10
|
+
AssistanceListingListResponse: TypeAlias = List[AssistanceListing]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import date
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["AssistanceListingRetrieveResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AssistanceListingRetrieveResponse(BaseModel):
|
|
12
|
+
number: str
|
|
13
|
+
|
|
14
|
+
published_date: date
|
|
15
|
+
|
|
16
|
+
title: str
|
|
17
|
+
|
|
18
|
+
applicant_eligibility: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
archived_date: Optional[date] = None
|
|
21
|
+
|
|
22
|
+
benefit_eligibility: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
objectives: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
popular_name: Optional[str] = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from .._models import BaseModel
|
|
5
|
+
|
|
6
|
+
__all__ = ["BusinessType"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BusinessType(BaseModel):
|
|
10
|
+
code: str
|
|
11
|
+
"""The SAM code for the business type"""
|
|
12
|
+
|
|
13
|
+
name: str
|
|
14
|
+
"""Business types that can classify an entity"""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .business_type import BusinessType
|
|
7
|
+
|
|
8
|
+
__all__ = ["BusinessTypeListResponse"]
|
|
9
|
+
|
|
10
|
+
BusinessTypeListResponse: TypeAlias = List[BusinessType]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["ContractListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ContractListParams(TypedDict, total=False):
|
|
11
|
+
award_date: str
|
|
12
|
+
"""
|
|
13
|
+
<details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var>, <var>2024-08</var></span></li></ul></details>
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
award_date_gte: str
|
|
17
|
+
"""
|
|
18
|
+
<details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var></span></li></ul></details>
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
award_date_lte: str
|
|
22
|
+
"""
|
|
23
|
+
<details><summary>Filter by award date</summary><ul><li><span>Accepted values: <var>2024-08-01</var></span></li></ul></details>
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
awarding_agency: str
|
|
27
|
+
"""
|
|
28
|
+
<details><summary>Filter by awarding agency</summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
fiscal_year: str
|
|
32
|
+
"""
|
|
33
|
+
<details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
fiscal_year_gte: str
|
|
37
|
+
"""
|
|
38
|
+
<details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
fiscal_year_lte: str
|
|
42
|
+
"""
|
|
43
|
+
<details><summary>Filter by fiscal year</summary><ul><li><span>Accepted values: <var>2024</var></span></li></ul></details>
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
funding_agency: str
|
|
47
|
+
"""
|
|
48
|
+
<details><summary>Filter by funding agency</summary><ul><li>Accepts any agency or department code, acronym, or (partial) name</li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
limit: int
|
|
52
|
+
"""Number of results to return per page."""
|
|
53
|
+
|
|
54
|
+
naics: str
|
|
55
|
+
"""
|
|
56
|
+
<details><summary>Filter by NAICS Code</summary><ul><li><span>Accepted values: <var>541511</var>, <var>541512</var>, <var>etc.</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
ordering: str
|
|
60
|
+
"""
|
|
61
|
+
<details><summary>Order results by a field of your choice.</summary><ul><li><span>Accepted values: <var>award_date</var>, <var>obligated</var>, <var>potential_total_value</var>, <var>recipient_name</var></span></li><li>Prefix with <var>-</var> to reverse order (e.g. <var>-award_date</var>)</li></ul></details>
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
page: int
|
|
65
|
+
"""A page number within the paginated result set."""
|
|
66
|
+
|
|
67
|
+
psc: str
|
|
68
|
+
"""
|
|
69
|
+
<details><summary>Filter by PSC (Product Service Code)</summary><ul><li><span>Accepted values: <var>S222</var>, <var>T005</var>, <var>etc.</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
set_aside: str
|
|
73
|
+
"""
|
|
74
|
+
<details><summary>Filter by set-aside type</summary><ul><li><span>Accepted values: <var>8A</var>, <var>8AN</var>, <var>BICiv</var>, <var>EDWOSB</var>, <var>EDWOSBSS</var>, <var>HUBZONE</var>, <var>HZC</var>, <var>HZS</var>, <var>IEE</var>, <var>ISBEE</var>, <var>LAS</var>, <var>NONE</var>, <var>SB</var>, <var>SBA</var>, <var>SBP</var>, <var>SDB</var>, <var>SDVOSB</var>, <var>SDVOSBC</var>, <var>SDVOSBS</var>, <var>VOSB</var>, <var>VSA</var>, <var>VSS</var>, <var>WOSB</var>, <var>WOSBSS</var></span></li><li>Disjunctive with <var>|</var> or <var>OR</var></li></ul></details>
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
uei: str
|
|
78
|
+
"""Filter by recipient UEI (Unique Entity Identifier)"""
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from .office import Office
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["ContractListResponse", "Result", "ResultRecipient"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ResultRecipient(BaseModel):
|
|
13
|
+
legal_business_name: str
|
|
14
|
+
|
|
15
|
+
uei: str
|
|
16
|
+
|
|
17
|
+
dba_name: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Result(BaseModel):
|
|
21
|
+
awarding_office: Office
|
|
22
|
+
|
|
23
|
+
contract_award_unique_key: str
|
|
24
|
+
|
|
25
|
+
funding_office: Office
|
|
26
|
+
|
|
27
|
+
recipient: ResultRecipient
|
|
28
|
+
|
|
29
|
+
set_aside: str
|
|
30
|
+
|
|
31
|
+
award_date: Optional[datetime] = None
|
|
32
|
+
|
|
33
|
+
award_piid: Optional[str] = None
|
|
34
|
+
|
|
35
|
+
current_total_value: Optional[float] = None
|
|
36
|
+
|
|
37
|
+
description: Optional[str] = None
|
|
38
|
+
|
|
39
|
+
naics_code: Optional[int] = None
|
|
40
|
+
|
|
41
|
+
obligated: Optional[float] = None
|
|
42
|
+
|
|
43
|
+
potential_total_value: Optional[float] = None
|
|
44
|
+
|
|
45
|
+
psc_code: Optional[str] = None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class ContractListResponse(BaseModel):
|
|
49
|
+
count: int
|
|
50
|
+
|
|
51
|
+
results: List[Result]
|
|
52
|
+
|
|
53
|
+
next: Optional[str] = None
|
|
54
|
+
|
|
55
|
+
previous: Optional[str] = None
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from .office import Office
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["ContractRetrieveResponse", "Recipient"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Recipient(BaseModel):
|
|
13
|
+
legal_business_name: str
|
|
14
|
+
|
|
15
|
+
uei: str
|
|
16
|
+
|
|
17
|
+
dba_name: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ContractRetrieveResponse(BaseModel):
|
|
21
|
+
awarding_office: Office
|
|
22
|
+
|
|
23
|
+
contract_award_unique_key: str
|
|
24
|
+
|
|
25
|
+
extent_competed: Dict[str, str]
|
|
26
|
+
|
|
27
|
+
funding_office: Office
|
|
28
|
+
|
|
29
|
+
recipient: Recipient
|
|
30
|
+
|
|
31
|
+
set_aside: str
|
|
32
|
+
|
|
33
|
+
solicitation_procedures: Dict[str, str]
|
|
34
|
+
|
|
35
|
+
type_of_contract_pricing: Dict[str, str]
|
|
36
|
+
|
|
37
|
+
award_date: Optional[datetime] = None
|
|
38
|
+
|
|
39
|
+
award_piid: Optional[str] = None
|
|
40
|
+
|
|
41
|
+
current_total_value: Optional[float] = None
|
|
42
|
+
|
|
43
|
+
description: Optional[str] = None
|
|
44
|
+
|
|
45
|
+
naics_code: Optional[int] = None
|
|
46
|
+
|
|
47
|
+
obligated: Optional[float] = None
|
|
48
|
+
|
|
49
|
+
potential_total_value: Optional[float] = None
|
|
50
|
+
|
|
51
|
+
psc_code: Optional[str] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["Department"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Department(BaseModel):
|
|
11
|
+
name: str
|
|
12
|
+
"""The Department name"""
|
|
13
|
+
|
|
14
|
+
abbreviation: Optional[str] = None
|
|
15
|
+
|
|
16
|
+
code: Optional[int] = None
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .department import Department
|
|
7
|
+
|
|
8
|
+
__all__ = ["DepartmentListResponse"]
|
|
9
|
+
|
|
10
|
+
DepartmentListResponse: TypeAlias = List[Department]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["EntityListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class EntityListParams(TypedDict, total=False):
|
|
11
|
+
cage_code: str
|
|
12
|
+
"""CAGE Code"""
|
|
13
|
+
|
|
14
|
+
limit: int
|
|
15
|
+
"""Number of results to return per page."""
|
|
16
|
+
|
|
17
|
+
naics: str
|
|
18
|
+
|
|
19
|
+
name: str
|
|
20
|
+
"""The company name"""
|
|
21
|
+
|
|
22
|
+
page: int
|
|
23
|
+
"""A page number within the paginated result set."""
|
|
24
|
+
|
|
25
|
+
psc: str
|
|
26
|
+
|
|
27
|
+
purpose_of_registration_code: str
|
|
28
|
+
|
|
29
|
+
search: str
|
|
30
|
+
|
|
31
|
+
socioeconomic: str
|
|
32
|
+
|
|
33
|
+
state: str
|
|
34
|
+
|
|
35
|
+
uei: str
|
|
36
|
+
"""Unique Entity Identifier"""
|
|
37
|
+
|
|
38
|
+
zip_code: str
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from .._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["EntityListResponse", "Result"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Result(BaseModel):
|
|
11
|
+
legal_business_name: str
|
|
12
|
+
|
|
13
|
+
purpose_of_registration_code: str
|
|
14
|
+
|
|
15
|
+
uei: str
|
|
16
|
+
|
|
17
|
+
business_types: Optional[object] = None
|
|
18
|
+
|
|
19
|
+
dba_name: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
entity_url: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
physical_address: Optional[object] = None
|
|
24
|
+
|
|
25
|
+
primary_naics: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
sba_business_types: Optional[object] = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class EntityListResponse(BaseModel):
|
|
31
|
+
count: int
|
|
32
|
+
|
|
33
|
+
results: List[Result]
|
|
34
|
+
|
|
35
|
+
next: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
previous: Optional[str] = None
|