Skip to content

Commit 64bcf41

Browse files
committed
remove skill api
1 parent 5df206c commit 64bcf41

File tree

11 files changed

+17
-111
lines changed

11 files changed

+17
-111
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -395,22 +395,6 @@ else:
395395
)
396396
```
397397
398-
#### Get Skill Enrichment
399-
400-
```python
401-
result = client.skill(
402-
skill="c++",
403-
)
404-
if result.ok:
405-
print(result.text)
406-
else:
407-
print(
408-
f"Status: {result.status_code}"
409-
f"\nReason: {result.reason}"
410-
f"\nMessage: {result.json()['error']['message']}"
411-
)
412-
```
413-
414398
#### Get IP Enrichment
415399
416400
```python
@@ -463,7 +447,6 @@ PDLPY(sandbox=True)
463447
| [Location Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#locationclean) | `PDLPY.location.cleaner(**params)` |
464448
| [School Cleaner API](https://docs.peopledatalabs.com/docs/cleaner-apis#schoolclean) | `PDLPY.school.cleaner(**params)` |
465449
| [Job Title Enrichment API](https://docs.peopledatalabs.com/docs/job-title-enrichment-api) | `PDLPY.job_title(**params)` |
466-
| [Skill Enrichment API](https://docs.peopledatalabs.com/docs/skill-enrichment-api) | `PDLPY.skill(**params)` |
467450
| [IP Enrichment API](https://docs.peopledatalabs.com/docs/ip-enrichment-api) | `PDLPY.ip(**params)` |
468451
469452
## 📘 Documentation <a name="documentation"></a>

poetry.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "peopledatalabs"
3-
version = "5.0.3"
3+
version = "6.0.0"
44
description = "Official Python client for the People Data Labs API"
55
homepage = "https://www.peopledatalabs.com"
66
repository = "https://github.com/peopledatalabs/peopledatalabs-python"

src/peopledatalabs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
from .main import PDLPY
66

77

8-
__version__ = "5.0.3"
8+
__version__ = "6.0.0"
99

1010
__all__ = ["PDLPY"]

src/peopledatalabs/main.py

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .endpoints.location import Location
1717
from .endpoints.school import School
1818
from .logger import get_logger
19-
from .models import AutocompleteModel, JobTitleModel, SkillModel, IPModel
19+
from .models import AutocompleteModel, JobTitleModel, IPModel
2020
from .requests import Request
2121
from .settings import settings
2222
from .utils import check_empty_parameters
@@ -94,33 +94,6 @@ def autocomplete(self, **kwargs):
9494
validator=AutocompleteModel,
9595
).get()
9696

97-
@check_empty_parameters
98-
def skill(self, **kwargs):
99-
"""
100-
Calls PeopleDataLabs' skill API.
101-
102-
Args:
103-
**kwargs: Parameters for the API as defined
104-
in the documentation.
105-
106-
Returns:
107-
A requests.Response object with the result of the HTTP call.
108-
"""
109-
url = Endpoint(self.api_key, self.base_path).get_url(
110-
endpoint="skill/enrich"
111-
)
112-
return Request(
113-
api_key=self.api_key,
114-
url=url,
115-
headers={
116-
"Accept-Encoding": "gzip",
117-
"User-Agent": "PDL-PYTHON-SDK",
118-
"Content-Type": "application/json",
119-
},
120-
params=kwargs,
121-
validator=SkillModel,
122-
).get()
123-
12497
@check_empty_parameters
12598
def job_title(self, **kwargs):
12699
"""

src/peopledatalabs/models/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@ class AutocompleteModel(BaseRequestModel):
100100
titlecase: Optional[bool]
101101

102102

103-
class SkillModel(BaseRequestModel):
104-
"""
105-
Validator model for skill API.
106-
"""
107-
108-
skill: str
109-
pretty: Optional[bool]
110-
titlecase: Optional[bool]
111-
112-
113103
class JobTitleModel(BaseRequestModel):
114104
"""
115105
Validator model for job_title API.

tests/client/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_version():
1919
"""
2020
Version check.
2121
"""
22-
assert __version__ == "5.0.3"
22+
assert __version__ == "6.0.0"
2323

2424

2525
@pytest.mark.usefixtures("fake_api_key")

tests/client/test_skill.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/company/test_company.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def test_calls_unsupported_endpoints(client_with_fake_api_key):
3030
"autocomplete",
3131
"identify",
3232
"retrieve",
33-
"skill",
3433
"job_title",
3534
"ip",
3635
]

tests/location/test_location.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def test_calls_unsupported_endpoints(client_with_fake_api_key):
3232
"identify",
3333
"retrieve",
3434
"search",
35-
"skill",
3635
"job_title",
3736
"ip",
3837
]

0 commit comments

Comments
 (0)