Skip to content

Commit fbd88f5

Browse files
committed
refactor: update service descriptions with new names
bump package version 1.6.0
1 parent b8a3724 commit fbd88f5

9 files changed

Lines changed: 18 additions & 18 deletions

magicalapi/services/company_data_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
this file stores the implementation of company data Service.
2+
this file stores the implementation of LinkedIn Company Scraper Service.
33
https://magicalapi.com/services/company-data
44
55
"""
@@ -24,7 +24,7 @@ async def get_company_data(
2424
company_name: str | None = None,
2525
company_website: str | None = None,
2626
) -> CompanyDataResponse | WebhookCreatedResponse | ErrorResponse:
27-
"""this method sends request to company data service in magicalAPI.
27+
"""this method sends request to LinkedIn Company Scraper service in magicalAPI.
2828
https://magicalapi.com/services/company-data
2929
3030
company_name (``str``):

magicalapi/services/profile_data_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
this file stores the implementation of profile data Service.
2+
this file stores the implementation of LinkedIn Profile Scraper Service.
33
https://magicalapi.com/services/profile-data
44
55
"""
@@ -21,7 +21,7 @@ class ProfileDataService(BaseService):
2121
async def get_profile_data(
2222
self, profile_name: str
2323
) -> ProfileDataResponse | WebhookCreatedResponse | ErrorResponse:
24-
"""this method sends request to profile data service in magicalAPI.
24+
"""this method sends request to LinkedIn Profile Scraper service in magicalAPI.
2525
https://magicalapi.com/services/profile-data
2626
2727
profile_name (``str``):
@@ -49,4 +49,4 @@ async def get_profile_data(
4949
def validate_response(
5050
self, response: HttpResponse, validate_model: type[BaseModel]
5151
) -> ProfileDataResponse | WebhookCreatedResponse | ErrorResponse:
52-
return super().validate_response(response, validate_model) # type:ignore
52+
return super().validate_response(response, validate_model) # type: ignore

magicalapi/services/resume_review_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
this file stores the implementation of resume review Service.
2+
this file stores the implementation of Resume Checker(Review) Service.
33
https://magicalapi.com/services/resume-review
44
55
"""
@@ -19,7 +19,7 @@ class ResumeReviewService(BaseService):
1919
async def get_resume_review(
2020
self, url: str
2121
) -> ResumeReviewResponse | WebhookCreatedResponse | ErrorResponse:
22-
"""this method sends request to resume review service in magicalAPI.
22+
"""this method sends request to Resume Checker(Review) service in magicalAPI.
2323
https://magicalapi.com/services/resume-review
2424
2525
url (``str``):

magicalapi/services/resume_score_service.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
this file stores the implementation of resume score Service.
2+
this file stores the implementation of Resume Matcher(Score) Service.
33
https://magicalapi.com/services/resume-score
44
55
"""
@@ -19,7 +19,7 @@ class ResumeScoreService(BaseService):
1919
async def get_resume_score(
2020
self, url: str, job_description: str
2121
) -> ResumeScoreResponse | WebhookCreatedResponse | ErrorResponse:
22-
"""this method sends request to resume score service in magicalAPI.
22+
"""this method sends request to Resume Matcher(Score) service in magicalAPI.
2323
https://magicalapi.com/services/resume-score
2424
2525
url (``str``):
@@ -36,7 +36,9 @@ async def get_resume_score(
3636
3737
"""
3838
if not 100 <= len(job_description) <= 5000:
39-
raise ValueError("job_description must be between 100 and 5000 characters long")
39+
raise ValueError(
40+
"job_description must be between 100 and 5000 characters long"
41+
)
4042

4143
request_body = {
4244
"url": url,

magicalapi/types/company_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Funding(BaseModelValidated):
6464

6565
class Company(BaseModelValidated):
6666
"""
67-
The main type of company data service
67+
The main type of LinkedIn Company Scraper service
6868
"""
6969

7070
url: str

magicalapi/types/profile_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class Patent(BaseModelValidated):
151151

152152
class Profile(BaseModelValidated):
153153
"""
154-
The main type of linkedin profile data service
154+
The main type of LinkedIn Profile Scraper service
155155
"""
156156

157157
url: str

magicalapi/types/resume_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
types schem of resume review service
2+
types schema of Resume Checker(Review) service
33
44
"""
55

magicalapi/types/resume_score.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
types schem of resume score service
2+
types schema of Resume Matcher(Score) service
33
https://magicalapi.com/services/resume-score
44
"""
55

@@ -11,8 +11,6 @@
1111
from typing import Literal
1212
from pydantic import BaseModel
1313

14-
15-
1614
Category = Literal[
1715
"job",
1816
"education",
@@ -99,7 +97,7 @@ class ScoreResponse(BaseModelValidated):
9997

10098
class ResumeScoreResponse(BaseResponse):
10199
"""
102-
the main resposne schema for resume score service
100+
the main resposne schema for Resume Matcher(Score) service
103101
https://magicalapi.com/services/resume-score
104102
"""
105103

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "magicalapi"
3-
version = "1.5.2"
3+
version = "1.6.0"
44
description = "This is a Python client that provides easy access to the MagicalAPI.com services, fully type annotated, and asynchronous."
55
authors = [
66
{ name = "MagicalAPI", email = "info@magicalapi.com" }

0 commit comments

Comments
 (0)