datalegion 0.1.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.
- datalegion/__init__.py +113 -0
- datalegion/_client.py +1313 -0
- datalegion/_exceptions.py +51 -0
- datalegion/_types.py +438 -0
- datalegion/types.py +443 -0
- datalegion-0.1.0.dist-info/METADATA +24 -0
- datalegion-0.1.0.dist-info/RECORD +13 -0
- datalegion-0.1.0.dist-info/WHEEL +4 -0
- datalegion-0.1.0.dist-info/entry_points.txt +3 -0
- datalegion-0.1.0.dist-info/licenses/LICENSE +21 -0
- scripts/__init__.py +0 -0
- scripts/lint.py +43 -0
- scripts/test.py +16 -0
datalegion/__init__.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"""Data Legion Python SDK.
|
|
2
|
+
|
|
3
|
+
Usage::
|
|
4
|
+
|
|
5
|
+
from datalegion import DataLegion
|
|
6
|
+
|
|
7
|
+
client = DataLegion(api_key="legion_...")
|
|
8
|
+
person = client.person.enrich(email="john@example.com")
|
|
9
|
+
print(person.full_name)
|
|
10
|
+
|
|
11
|
+
Async usage::
|
|
12
|
+
|
|
13
|
+
from datalegion import AsyncDataLegion
|
|
14
|
+
|
|
15
|
+
client = AsyncDataLegion(api_key="legion_...")
|
|
16
|
+
person = await client.person.enrich(email="john@example.com")
|
|
17
|
+
print(person.full_name)
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from ._client import AsyncDataLegion, DataLegion
|
|
21
|
+
from ._exceptions import (
|
|
22
|
+
APIError,
|
|
23
|
+
AuthenticationError,
|
|
24
|
+
DataLegionError,
|
|
25
|
+
InsufficientCreditsError,
|
|
26
|
+
RateLimitError,
|
|
27
|
+
ValidationError,
|
|
28
|
+
)
|
|
29
|
+
from ._types import (
|
|
30
|
+
BulkCompanyEnrichResponse,
|
|
31
|
+
BulkCompanyItemResult,
|
|
32
|
+
BulkPersonEnrichResponse,
|
|
33
|
+
BulkPersonItemResult,
|
|
34
|
+
CleanedRaw,
|
|
35
|
+
CompanyDomain,
|
|
36
|
+
CompanyMatch,
|
|
37
|
+
CompanyMatchesResponse,
|
|
38
|
+
CompanyResponse,
|
|
39
|
+
CompanySocial,
|
|
40
|
+
Education,
|
|
41
|
+
EducationOrganization,
|
|
42
|
+
Email,
|
|
43
|
+
EmailHashResponse,
|
|
44
|
+
EmployeeCountByMonth,
|
|
45
|
+
Experience,
|
|
46
|
+
ExperienceOrganization,
|
|
47
|
+
FieldCleanResponse,
|
|
48
|
+
FieldCleanResult,
|
|
49
|
+
HealthResponse,
|
|
50
|
+
Language,
|
|
51
|
+
Location,
|
|
52
|
+
MatchMetadata,
|
|
53
|
+
PersonMatch,
|
|
54
|
+
PersonMatchesResponse,
|
|
55
|
+
PersonResponse,
|
|
56
|
+
Phone,
|
|
57
|
+
Skill,
|
|
58
|
+
Social,
|
|
59
|
+
Ticker,
|
|
60
|
+
TimeBucketFloat,
|
|
61
|
+
TimeBucketInt,
|
|
62
|
+
ValidationErrorDetail,
|
|
63
|
+
ValidationResponse,
|
|
64
|
+
ValidationSuggestion,
|
|
65
|
+
ValidationWarning,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
__all__ = [
|
|
69
|
+
"APIError",
|
|
70
|
+
"AsyncDataLegion",
|
|
71
|
+
"AuthenticationError",
|
|
72
|
+
"BulkCompanyEnrichResponse",
|
|
73
|
+
"BulkCompanyItemResult",
|
|
74
|
+
"BulkPersonEnrichResponse",
|
|
75
|
+
"BulkPersonItemResult",
|
|
76
|
+
"CleanedRaw",
|
|
77
|
+
"CompanyDomain",
|
|
78
|
+
"CompanyMatch",
|
|
79
|
+
"CompanyMatchesResponse",
|
|
80
|
+
"CompanyResponse",
|
|
81
|
+
"CompanySocial",
|
|
82
|
+
"DataLegion",
|
|
83
|
+
"DataLegionError",
|
|
84
|
+
"Education",
|
|
85
|
+
"EducationOrganization",
|
|
86
|
+
"Email",
|
|
87
|
+
"EmailHashResponse",
|
|
88
|
+
"EmployeeCountByMonth",
|
|
89
|
+
"Experience",
|
|
90
|
+
"ExperienceOrganization",
|
|
91
|
+
"FieldCleanResponse",
|
|
92
|
+
"FieldCleanResult",
|
|
93
|
+
"HealthResponse",
|
|
94
|
+
"InsufficientCreditsError",
|
|
95
|
+
"Language",
|
|
96
|
+
"Location",
|
|
97
|
+
"MatchMetadata",
|
|
98
|
+
"PersonMatch",
|
|
99
|
+
"PersonMatchesResponse",
|
|
100
|
+
"PersonResponse",
|
|
101
|
+
"Phone",
|
|
102
|
+
"RateLimitError",
|
|
103
|
+
"Skill",
|
|
104
|
+
"Social",
|
|
105
|
+
"Ticker",
|
|
106
|
+
"TimeBucketFloat",
|
|
107
|
+
"TimeBucketInt",
|
|
108
|
+
"ValidationError",
|
|
109
|
+
"ValidationErrorDetail",
|
|
110
|
+
"ValidationResponse",
|
|
111
|
+
"ValidationSuggestion",
|
|
112
|
+
"ValidationWarning",
|
|
113
|
+
]
|