blitz-api-py 1.0.0__tar.gz → 2.0.0__tar.gz
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.
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/CHANGELOG.md +11 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/PKG-INFO +1 -1
- blitz_api_py-2.0.0/src/blitz_api/_version.py +1 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_async/enrichment.py +6 -6
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_sync/enrichment.py +6 -6
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/__init__.py +12 -12
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/enrichment.py +10 -10
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/enums.py +2 -2
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/filters.py +6 -6
- blitz_api_py-1.0.0/src/blitz_api/_version.py +0 -1
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/.gitignore +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/LICENSE +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/README.md +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/pyproject.toml +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/__init__.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_base_client.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_client.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_client_async.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_client_sync.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_compat.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_constants.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_exceptions.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_pagination_async.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_pagination_base.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_pagination_sync.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_rate_limit.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_rate_limit_async.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/_rate_limit_sync.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/py.typed +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/__init__.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_async/__init__.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_async/account.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_async/search.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_async/utils.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_sync/__init__.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_sync/account.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_sync/search.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/resources/_sync/utils.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/_models.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/account.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/search.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/shared.py +0 -0
- {blitz_api_py-1.0.0 → blitz_api_py-2.0.0}/src/blitz_api/types/utils.py +0 -0
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.0](https://github.com/api-blitz/blitz-api-py/compare/v1.0.0...v2.0.0) (2026-06-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* spec-faithful type names for funding enum + distribution responses ([#17](https://github.com/api-blitz/blitz-api-py/issues/17)) (#18)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* spec-faithful type names for funding enum + distribution responses ([#17](https://github.com/api-blitz/blitz-api-py/issues/17)) ([#18](https://github.com/api-blitz/blitz-api-py/issues/18)) ([95370bd](https://github.com/api-blitz/blitz-api-py/commit/95370bdcd8771a40d9a6bdf921a609dca038bad5))
|
|
13
|
+
|
|
3
14
|
## [1.0.0](https://github.com/api-blitz/blitz-api-py/compare/v0.5.0...v1.0.0) (2026-06-19)
|
|
4
15
|
|
|
5
16
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.0.0" # x-release-please-version
|
|
@@ -6,8 +6,8 @@ from typing import TYPE_CHECKING
|
|
|
6
6
|
|
|
7
7
|
from ..._compat import TimeoutParam
|
|
8
8
|
from ...types.enrichment import (
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
CompanyDistributionByCountryResponse,
|
|
10
|
+
CompanyDistributionByDepartmentResponse,
|
|
11
11
|
CompanyEnrichmentResponse,
|
|
12
12
|
DomainToLinkedinResponse,
|
|
13
13
|
EmailEnrichmentResponse,
|
|
@@ -121,7 +121,7 @@ class AsyncEnrichmentResource:
|
|
|
121
121
|
|
|
122
122
|
async def company_distribution_by_country(
|
|
123
123
|
self, *, company_linkedin_url: str, timeout: TimeoutParam = None
|
|
124
|
-
) ->
|
|
124
|
+
) -> CompanyDistributionByCountryResponse:
|
|
125
125
|
"""Get a company's employee count broken down by country.
|
|
126
126
|
|
|
127
127
|
Countries are reported as ISO 3166-1 alpha-2 codes (e.g. ``US``, ``GB``);
|
|
@@ -131,13 +131,13 @@ class AsyncEnrichmentResource:
|
|
|
131
131
|
"POST",
|
|
132
132
|
_DISTRIBUTION_BY_COUNTRY,
|
|
133
133
|
body={"company_linkedin_url": company_linkedin_url},
|
|
134
|
-
cast_to=
|
|
134
|
+
cast_to=CompanyDistributionByCountryResponse,
|
|
135
135
|
timeout=timeout,
|
|
136
136
|
)
|
|
137
137
|
|
|
138
138
|
async def company_distribution_by_department(
|
|
139
139
|
self, *, company_linkedin_url: str, timeout: TimeoutParam = None
|
|
140
|
-
) ->
|
|
140
|
+
) -> CompanyDistributionByDepartmentResponse:
|
|
141
141
|
"""Get a company's employee count broken down by department.
|
|
142
142
|
|
|
143
143
|
Employees with no classified department are counted under ``"Other"``.
|
|
@@ -146,6 +146,6 @@ class AsyncEnrichmentResource:
|
|
|
146
146
|
"POST",
|
|
147
147
|
_DISTRIBUTION_BY_DEPARTMENT,
|
|
148
148
|
body={"company_linkedin_url": company_linkedin_url},
|
|
149
|
-
cast_to=
|
|
149
|
+
cast_to=CompanyDistributionByDepartmentResponse,
|
|
150
150
|
timeout=timeout,
|
|
151
151
|
)
|
|
@@ -8,8 +8,8 @@ from typing import TYPE_CHECKING
|
|
|
8
8
|
|
|
9
9
|
from ..._compat import TimeoutParam
|
|
10
10
|
from ...types.enrichment import (
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
CompanyDistributionByCountryResponse,
|
|
12
|
+
CompanyDistributionByDepartmentResponse,
|
|
13
13
|
CompanyEnrichmentResponse,
|
|
14
14
|
DomainToLinkedinResponse,
|
|
15
15
|
EmailEnrichmentResponse,
|
|
@@ -123,7 +123,7 @@ class EnrichmentResource:
|
|
|
123
123
|
|
|
124
124
|
def company_distribution_by_country(
|
|
125
125
|
self, *, company_linkedin_url: str, timeout: TimeoutParam = None
|
|
126
|
-
) ->
|
|
126
|
+
) -> CompanyDistributionByCountryResponse:
|
|
127
127
|
"""Get a company's employee count broken down by country.
|
|
128
128
|
|
|
129
129
|
Countries are reported as ISO 3166-1 alpha-2 codes (e.g. ``US``, ``GB``);
|
|
@@ -133,13 +133,13 @@ class EnrichmentResource:
|
|
|
133
133
|
"POST",
|
|
134
134
|
_DISTRIBUTION_BY_COUNTRY,
|
|
135
135
|
body={"company_linkedin_url": company_linkedin_url},
|
|
136
|
-
cast_to=
|
|
136
|
+
cast_to=CompanyDistributionByCountryResponse,
|
|
137
137
|
timeout=timeout,
|
|
138
138
|
)
|
|
139
139
|
|
|
140
140
|
def company_distribution_by_department(
|
|
141
141
|
self, *, company_linkedin_url: str, timeout: TimeoutParam = None
|
|
142
|
-
) ->
|
|
142
|
+
) -> CompanyDistributionByDepartmentResponse:
|
|
143
143
|
"""Get a company's employee count broken down by department.
|
|
144
144
|
|
|
145
145
|
Employees with no classified department are counted under ``"Other"``.
|
|
@@ -148,6 +148,6 @@ class EnrichmentResource:
|
|
|
148
148
|
"POST",
|
|
149
149
|
_DISTRIBUTION_BY_DEPARTMENT,
|
|
150
150
|
body={"company_linkedin_url": company_linkedin_url},
|
|
151
|
-
cast_to=
|
|
151
|
+
cast_to=CompanyDistributionByDepartmentResponse,
|
|
152
152
|
timeout=timeout,
|
|
153
153
|
)
|
|
@@ -9,11 +9,11 @@ from __future__ import annotations
|
|
|
9
9
|
|
|
10
10
|
from .account import ActivePlan, KeyInfo
|
|
11
11
|
from .enrichment import (
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
CompanyDistributionByCountryItem,
|
|
13
|
+
CompanyDistributionByCountryResponse,
|
|
14
|
+
CompanyDistributionByDepartmentItem,
|
|
15
|
+
CompanyDistributionByDepartmentResponse,
|
|
14
16
|
CompanyEnrichmentResponse,
|
|
15
|
-
CountryDistributionItem,
|
|
16
|
-
DepartmentDistributionItem,
|
|
17
17
|
DomainToLinkedinResponse,
|
|
18
18
|
EmailEnrichmentResponse,
|
|
19
19
|
EmailMatch,
|
|
@@ -26,10 +26,10 @@ from .enums import (
|
|
|
26
26
|
CompanyType,
|
|
27
27
|
Continent,
|
|
28
28
|
EmployeeRange,
|
|
29
|
-
FundingType,
|
|
30
29
|
Industry,
|
|
31
30
|
JobFunction,
|
|
32
31
|
JobLevel,
|
|
32
|
+
LastFundingType,
|
|
33
33
|
SalesRegion,
|
|
34
34
|
)
|
|
35
35
|
from .filters import (
|
|
@@ -37,9 +37,9 @@ from .filters import (
|
|
|
37
37
|
CompanyFilter,
|
|
38
38
|
CompanyHQFilter,
|
|
39
39
|
CompanyTypeFilter,
|
|
40
|
-
FundingTypeFilter,
|
|
41
40
|
IndustryFilter,
|
|
42
41
|
KeywordFilter,
|
|
42
|
+
LastFundingTypeFilter,
|
|
43
43
|
PeopleFilter,
|
|
44
44
|
PeopleJobTitleFilter,
|
|
45
45
|
PeopleLocationFilter,
|
|
@@ -75,7 +75,7 @@ __all__ = [
|
|
|
75
75
|
"Industry",
|
|
76
76
|
"CompanyType",
|
|
77
77
|
"EmployeeRange",
|
|
78
|
-
"
|
|
78
|
+
"LastFundingType",
|
|
79
79
|
"Continent",
|
|
80
80
|
"SalesRegion",
|
|
81
81
|
"JobFunction",
|
|
@@ -84,7 +84,7 @@ __all__ = [
|
|
|
84
84
|
"KeywordFilter",
|
|
85
85
|
"IndustryFilter",
|
|
86
86
|
"CompanyTypeFilter",
|
|
87
|
-
"
|
|
87
|
+
"LastFundingTypeFilter",
|
|
88
88
|
"RangeFilter",
|
|
89
89
|
"CompanyHQFilter",
|
|
90
90
|
"CompanyFilter",
|
|
@@ -107,10 +107,10 @@ __all__ = [
|
|
|
107
107
|
"CompanyEnrichmentResponse",
|
|
108
108
|
"DomainToLinkedinResponse",
|
|
109
109
|
"LinkedinToDomainResponse",
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
110
|
+
"CompanyDistributionByCountryItem",
|
|
111
|
+
"CompanyDistributionByCountryResponse",
|
|
112
|
+
"CompanyDistributionByDepartmentItem",
|
|
113
|
+
"CompanyDistributionByDepartmentResponse",
|
|
114
114
|
# utils
|
|
115
115
|
"CurrentDateResponse",
|
|
116
116
|
]
|
|
@@ -14,10 +14,10 @@ __all__ = [
|
|
|
14
14
|
"CompanyEnrichmentResponse",
|
|
15
15
|
"DomainToLinkedinResponse",
|
|
16
16
|
"LinkedinToDomainResponse",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
17
|
+
"CompanyDistributionByCountryItem",
|
|
18
|
+
"CompanyDistributionByCountryResponse",
|
|
19
|
+
"CompanyDistributionByDepartmentItem",
|
|
20
|
+
"CompanyDistributionByDepartmentResponse",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
|
|
@@ -80,7 +80,7 @@ class LinkedinToDomainResponse(BlitzModel):
|
|
|
80
80
|
email_domain: str | None = None
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
class
|
|
83
|
+
class CompanyDistributionByCountryItem(BlitzModel):
|
|
84
84
|
"""Employee count for a single country.
|
|
85
85
|
|
|
86
86
|
``country`` is an ISO 3166-1 alpha-2 code (e.g. ``"US"``, ``"GB"``), or the
|
|
@@ -94,7 +94,7 @@ class CountryDistributionItem(BlitzModel):
|
|
|
94
94
|
percentage_ratio: float | None = None
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class CompanyDistributionByCountryResponse(BlitzModel):
|
|
98
98
|
"""Result of ``enrichment.company_distribution_by_country``.
|
|
99
99
|
|
|
100
100
|
Served by ``POST /v2/enrichment/company-distribution-by-country``.
|
|
@@ -102,10 +102,10 @@ class CompanyCountryDistributionResponse(BlitzModel):
|
|
|
102
102
|
|
|
103
103
|
company_linkedin_url: str | None = None
|
|
104
104
|
total_employees: int | None = None
|
|
105
|
-
distribution: list[
|
|
105
|
+
distribution: list[CompanyDistributionByCountryItem] = []
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
class
|
|
108
|
+
class CompanyDistributionByDepartmentItem(BlitzModel):
|
|
109
109
|
"""Employee count for a single department (Blitz job function).
|
|
110
110
|
|
|
111
111
|
Employees with no classified department are counted under ``"Other"``.
|
|
@@ -118,7 +118,7 @@ class DepartmentDistributionItem(BlitzModel):
|
|
|
118
118
|
percentage_ratio: float | None = None
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class CompanyDistributionByDepartmentResponse(BlitzModel):
|
|
122
122
|
"""Result of ``enrichment.company_distribution_by_department``.
|
|
123
123
|
|
|
124
124
|
Served by ``POST /v2/enrichment/company-distribution-by-department``.
|
|
@@ -126,4 +126,4 @@ class CompanyDepartmentDistributionResponse(BlitzModel):
|
|
|
126
126
|
|
|
127
127
|
company_linkedin_url: str | None = None
|
|
128
128
|
total_employees: int | None = None
|
|
129
|
-
distribution: list[
|
|
129
|
+
distribution: list[CompanyDistributionByDepartmentItem] = []
|
|
@@ -18,7 +18,7 @@ __all__ = [
|
|
|
18
18
|
"SalesRegion",
|
|
19
19
|
"JobFunction",
|
|
20
20
|
"JobLevel",
|
|
21
|
-
"
|
|
21
|
+
"LastFundingType",
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
|
|
@@ -634,7 +634,7 @@ class JobLevel(str, Enum):
|
|
|
634
634
|
VP = 'VP'
|
|
635
635
|
|
|
636
636
|
|
|
637
|
-
class
|
|
637
|
+
class LastFundingType(str, Enum):
|
|
638
638
|
SERIES_UNKNOWN = 'Series unknown'
|
|
639
639
|
PRE_SEED = 'Pre seed'
|
|
640
640
|
SEED = 'Seed'
|
|
@@ -16,10 +16,10 @@ from .enums import (
|
|
|
16
16
|
CompanyType,
|
|
17
17
|
Continent,
|
|
18
18
|
EmployeeRange,
|
|
19
|
-
FundingType,
|
|
20
19
|
Industry,
|
|
21
20
|
JobFunction,
|
|
22
21
|
JobLevel,
|
|
22
|
+
LastFundingType,
|
|
23
23
|
SalesRegion,
|
|
24
24
|
)
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ from .enums import (
|
|
|
31
31
|
IndustryValue = Industry | str
|
|
32
32
|
CompanyTypeValue = CompanyType | str
|
|
33
33
|
EmployeeRangeValue = EmployeeRange | str
|
|
34
|
-
|
|
34
|
+
LastFundingTypeValue = LastFundingType | str
|
|
35
35
|
ContinentValue = Continent | str
|
|
36
36
|
SalesRegionValue = SalesRegion | str
|
|
37
37
|
JobFunctionValue = JobFunction | str
|
|
@@ -59,11 +59,11 @@ class CompanyTypeFilter(TypedDict, total=False):
|
|
|
59
59
|
exclude: list[CompanyTypeValue]
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
class
|
|
62
|
+
class LastFundingTypeFilter(TypedDict, total=False):
|
|
63
63
|
"""Include/exclude filter over the last funding round type."""
|
|
64
64
|
|
|
65
|
-
include: list[
|
|
66
|
-
exclude: list[
|
|
65
|
+
include: list[LastFundingTypeValue]
|
|
66
|
+
exclude: list[LastFundingTypeValue]
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
class RangeFilter(TypedDict, total=False):
|
|
@@ -101,7 +101,7 @@ class CompanyFilter(TypedDict, total=False):
|
|
|
101
101
|
total_funding: RangeFilter
|
|
102
102
|
last_funding_amount: RangeFilter
|
|
103
103
|
last_funding_year: RangeFilter
|
|
104
|
-
last_funding_type:
|
|
104
|
+
last_funding_type: LastFundingTypeFilter
|
|
105
105
|
lead_investors: KeywordFilter
|
|
106
106
|
keywords: KeywordFilter
|
|
107
107
|
founded_year: RangeFilter
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.0" # x-release-please-version
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|