-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompany.py
More file actions
338 lines (264 loc) · 8.92 KB
/
company.py
File metadata and controls
338 lines (264 loc) · 8.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
from datetime import date
from typing_extensions import Literal, TypeAlias
from . import investors
from .owner import Owner
from .contact import Contact
from .._models import BaseModel
from .location import Location
from .conference import Conference
from .industry_classification import IndustryClassification
from .software_industry_classification import SoftwareIndustryClassification
__all__ = [
"Company",
"Classifications",
"Conferences",
"Contacts",
"Domain",
"EmployeeLocationBreakdown",
"EmployeesGrowth",
"Investors",
"Locations",
]
class Classifications(BaseModel):
industry_classifications: List[IndustryClassification]
"""Industry classifications for the company."""
software_industries: List[SoftwareIndustryClassification]
"""Software industry classifications for the company."""
class Conferences(BaseModel):
conferences: List[Conference]
"""List of conferences."""
count: int
"""Total count of all conferences."""
class Contacts(BaseModel):
contacts: List[Contact]
"""List of contacts."""
count: int
"""Total count of all contacts."""
class Domain(BaseModel):
domain: str
"""Domain of a company."""
domain_type: Literal[
"Primary",
"Product",
"Business unit",
"Redirect",
"Foreign language",
"Corporate",
"Blog",
"Blacklisted domain",
"Secondary",
]
"""The type of domain."""
status: float
"""Indicates if this domain is active.
0 indicates an active domain, 1 indicates an inactive domain.
"""
class EmployeeLocationBreakdown(BaseModel):
confidence: str
"""Confidence score of the prediction."""
country: str
"""Country where the employees are located."""
country_percentage: float
"""Percentage of the employees located in the specified country."""
class EmployeesGrowth(BaseModel):
percentage_one_month: float
"""1 month growth rate as a percentage."""
percentage_one_year: float
"""Annual growth rate as a percentage."""
percentage_six_month: float
"""6 month growth rate as a percentage."""
percentage_three_month: float
"""3 month growth rate as a percentage."""
Investors: TypeAlias = Union[str, investors.Investors]
class Locations(BaseModel):
locations: List[Location]
"""List of locations."""
total: int
"""Total count of all locations of business for the Company"""
class Company(BaseModel):
company_uid: str
"""Unique alphanumeric Grata ID for the company (case-sensitive)."""
name: str
"""Name of the company."""
business_models: Optional[
List[
Literal[
"Software",
"Software Enabled",
"Services",
"Retailer",
"Manufacturer",
"Distributor",
"Producer",
"Hardware",
"Content & Publishing",
"Investment Banks & Business Brokers",
"Education",
"Directory",
"Job Site",
"Staff & Recruiting",
"Private Equity & Venture Capital",
"Private Schools",
"Hospitals & Medical Centers",
"Colleges & Universities",
"Government",
"US Federal Agencies",
"Nonprofit & Associations",
"Religious Institutions",
"Marketplace",
]
]
] = None
"""Method of product or service delivery."""
classifications: Optional[Classifications] = None
"""Classifications for the company."""
conferences: Optional[Conferences] = None
"""Conferences the company has or will attend."""
contacts: Optional[Contacts] = None
"""Contacts for the company."""
description: Optional[str] = None
"""Description of the company."""
domain: Optional[str] = None
"""Domain of the company."""
domains: Optional[List[Domain]] = None
"""Associated domains for the company.
Includes foreign domains, secondary domains, and redirects.
"""
employee_location_breakdown: Optional[List[EmployeeLocationBreakdown]] = None
"""Location breakdown of the employees by country"""
employees_growth: Optional[EmployeesGrowth] = None
"""Employee growth rate as a percentage."""
employees_on_professional_networks: Optional[int] = None
"""The number of employees on professional networks."""
end_customer: Optional[
List[
Literal[
"B2B",
"B2C",
"Consumer Products & Retail",
"Media",
"Finance",
"Agriculture",
"Healthcare",
"Professional Services",
"Transportation",
"Hospitality & Leisure",
"Government",
"Education",
"Electronics",
"Information Technology",
"Industrials",
"Commercial & Residential Services",
]
]
] = None
"""End vertical that the company sells to."""
entity_type: Optional[
Literal[
"Event",
"Private",
"Public",
"Government",
"Industry Organization",
"Non-Profit",
"Private Equity",
"Subsidiary",
]
] = None
"""The company's entity classification."""
funding_rounds_count: Optional[int] = None
"""Rounds of equity funding the company has received."""
funding_stage: Optional[
Literal[
"Early Stage Funding",
"Late Stage Funding",
"Pre-IPO Funding",
"Private Equity Backed",
"Other Funding",
"Public",
]
] = None
"""Stage of funding a company has received."""
grata_employee_estimates: Optional[int] = None
"""Grata's employee estimates"""
headquarters: Optional[str] = None
"""City and region of headquarters."""
investors: Optional[Investors] = None
"""Investors of the company."""
is_active: Optional[str] = None
"""Indicates if this company is active in platform."""
keywords: Optional[List[str]] = None
"""Top 10 most relevant keywords that relate to the company's operations."""
latest_funding_amount: Optional[float] = None
"""The last funding amount received."""
latest_funding_date: Optional[date] = None
"""The date of the last funding round."""
latest_funding_round: Optional[str] = None
"""The type of the last funding round."""
locations: Optional[Locations] = None
"""Locations of business."""
organization_type: Optional[
Literal[
"Company",
"Independent",
"Private Equity",
"Public Subsidiary",
"Private Subsidiary",
"Private Equity Add-On",
"Private Equity Platform",
]
] = None
"""The type of organization."""
owner: Optional[Owner] = None
"""Owner information."""
ownership_status: Optional[
Literal[
"Bootstrapped",
"Investor Backed",
"Public Subsidiary",
"Public",
"Private Subsidiary",
"Private Equity Add-On",
"Private Equity",
]
] = None
"""Current ownership status of the company."""
primary_email: Optional[str] = None
"""Primary company email from home page or contact section of the website."""
primary_phone: Optional[str] = None
"""Primary company phone number from home page or contact section of the website."""
revenue_estimates: Optional[float] = None
"""Grata's revenue estimate"""
social_crunchbase: Optional[str] = None
"""Link to the company's Crunchbase page."""
social_facebook: Optional[str] = None
"""Link to the company's Facebook page."""
social_instagram: Optional[str] = None
"""Link to the company's Instagram page."""
social_linkedin: Optional[str] = None
"""Link to the company's LinkedIn page."""
social_twitter: Optional[str] = None
"""Link to the company's Twitter page."""
total_funding: Optional[float] = None
"""The total funding amount received."""
ultimate_entity_type: Optional[
Literal[
"Event",
"Public",
"Private",
"Government",
"Industry Organization",
"Non-Profit",
"Private Equity",
"Subsidiary",
]
] = None
"""Ultimate owner company type."""
ultimate_owner: Optional[Owner] = None
"""Owner information."""
url: Optional[str] = None
"""URL to the company's Grata profile."""
year_founded: Optional[int] = None
"""Founding year of the company."""