rxresume-python 0.2.0__py3-none-any.whl → 0.3.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.
- reactive_resume/api/__init__.py +15 -0
- reactive_resume/api/agent.py +37 -0
- reactive_resume/api/ai_providers.py +31 -0
- reactive_resume/api/applications.py +78 -0
- reactive_resume/api/statistics.py +27 -0
- reactive_resume/api/storage.py +53 -0
- reactive_resume/core/async_client.py +10 -0
- reactive_resume/core/client.py +10 -0
- reactive_resume/models/__init__.py +11 -0
- reactive_resume/models/agent.py +15 -0
- reactive_resume/models/application.py +33 -0
- reactive_resume/models/statistics.py +14 -0
- reactive_resume/models/storage.py +14 -0
- {rxresume_python-0.2.0.dist-info → rxresume_python-0.3.0.dist-info}/METADATA +32 -2
- rxresume_python-0.3.0.dist-info/RECORD +25 -0
- rxresume_python-0.2.0.dist-info/RECORD +0 -16
- {rxresume_python-0.2.0.dist-info → rxresume_python-0.3.0.dist-info}/WHEEL +0 -0
- {rxresume_python-0.2.0.dist-info → rxresume_python-0.3.0.dist-info}/licenses/LICENSE +0 -0
- {rxresume_python-0.2.0.dist-info → rxresume_python-0.3.0.dist-info}/top_level.txt +0 -0
reactive_resume/api/__init__.py
CHANGED
|
@@ -2,10 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
from .auth import AuthAPI, AsyncAuthAPI
|
|
4
4
|
from .resumes import ResumesAPI, AsyncResumesAPI
|
|
5
|
+
from .applications import ApplicationsAPI, AsyncApplicationsAPI
|
|
6
|
+
from .statistics import StatisticsAPI, AsyncStatisticsAPI
|
|
7
|
+
from .storage import StorageAPI, AsyncStorageAPI
|
|
8
|
+
from .agent import AgentAPI, AsyncAgentAPI
|
|
9
|
+
from .ai_providers import AiProvidersAPI, AsyncAiProvidersAPI
|
|
5
10
|
|
|
6
11
|
__all__ = [
|
|
7
12
|
"AuthAPI",
|
|
8
13
|
"AsyncAuthAPI",
|
|
9
14
|
"ResumesAPI",
|
|
10
15
|
"AsyncResumesAPI",
|
|
16
|
+
"ApplicationsAPI",
|
|
17
|
+
"AsyncApplicationsAPI",
|
|
18
|
+
"StatisticsAPI",
|
|
19
|
+
"AsyncStatisticsAPI",
|
|
20
|
+
"StorageAPI",
|
|
21
|
+
"AsyncStorageAPI",
|
|
22
|
+
"AgentAPI",
|
|
23
|
+
"AsyncAgentAPI",
|
|
24
|
+
"AiProvidersAPI",
|
|
25
|
+
"AsyncAiProvidersAPI",
|
|
11
26
|
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Agent API endpoints implementation."""
|
|
2
|
+
|
|
3
|
+
from ..models.agent import AgentRequest, AgentResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AgentAPI:
|
|
7
|
+
"""Synchronous AI Agent operations."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, client) -> None:
|
|
10
|
+
self._client = client
|
|
11
|
+
|
|
12
|
+
def chat(self, resume_id: str, prompt: str) -> AgentResponse:
|
|
13
|
+
"""Send a prompt to the AI Agent relative to a specific resume context."""
|
|
14
|
+
payload = AgentRequest(prompt=prompt).model_dump()
|
|
15
|
+
response = self._client._request(
|
|
16
|
+
"POST",
|
|
17
|
+
f"/api/openapi/agent/{resume_id}/chat",
|
|
18
|
+
json=payload,
|
|
19
|
+
)
|
|
20
|
+
return AgentResponse.model_validate(response)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AsyncAgentAPI:
|
|
24
|
+
"""Asynchronous AI Agent operations."""
|
|
25
|
+
|
|
26
|
+
def __init__(self, client) -> None:
|
|
27
|
+
self._client = client
|
|
28
|
+
|
|
29
|
+
async def chat(self, resume_id: str, prompt: str) -> AgentResponse:
|
|
30
|
+
"""Send a prompt to the AI Agent asynchronously relative to a specific resume context."""
|
|
31
|
+
payload = AgentRequest(prompt=prompt).model_dump()
|
|
32
|
+
response = await self._client._request(
|
|
33
|
+
"POST",
|
|
34
|
+
f"/api/openapi/agent/{resume_id}/chat",
|
|
35
|
+
json=payload,
|
|
36
|
+
)
|
|
37
|
+
return AgentResponse.model_validate(response)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""AI Providers API endpoints implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import List, Dict, Any
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AiProvidersAPI:
|
|
7
|
+
"""Synchronous AI Providers operations."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, client) -> None:
|
|
10
|
+
self._client = client
|
|
11
|
+
|
|
12
|
+
def list(self) -> List[Dict[str, Any]]:
|
|
13
|
+
"""List all configured AI Providers."""
|
|
14
|
+
response = self._client._request("GET", "/api/openapi/ai-providers")
|
|
15
|
+
if isinstance(response, list):
|
|
16
|
+
return response
|
|
17
|
+
return [response]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AsyncAiProvidersAPI:
|
|
21
|
+
"""Asynchronous AI Providers operations."""
|
|
22
|
+
|
|
23
|
+
def __init__(self, client) -> None:
|
|
24
|
+
self._client = client
|
|
25
|
+
|
|
26
|
+
async def list(self) -> List[Dict[str, Any]]:
|
|
27
|
+
"""List all configured AI Providers asynchronously."""
|
|
28
|
+
response = await self._client._request("GET", "/api/openapi/ai-providers")
|
|
29
|
+
if isinstance(response, list):
|
|
30
|
+
return response
|
|
31
|
+
return [response]
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Applications API endpoints implementation."""
|
|
2
|
+
|
|
3
|
+
from typing import List, Dict, Any
|
|
4
|
+
from ..models.application import Application, ApplicationCreate
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ApplicationsAPI:
|
|
8
|
+
"""Synchronous Applications operations."""
|
|
9
|
+
|
|
10
|
+
def __init__(self, client) -> None:
|
|
11
|
+
self._client = client
|
|
12
|
+
|
|
13
|
+
def list(self) -> List[Application]:
|
|
14
|
+
"""List all job applications."""
|
|
15
|
+
response = self._client._request("GET", "/api/openapi/applications")
|
|
16
|
+
if isinstance(response, dict) and "data" in response:
|
|
17
|
+
items = response["data"]
|
|
18
|
+
else:
|
|
19
|
+
items = response
|
|
20
|
+
return [Application.model_validate(item) for item in items]
|
|
21
|
+
|
|
22
|
+
def get(self, app_id: str) -> Application:
|
|
23
|
+
"""Retrieve a specific job application by ID."""
|
|
24
|
+
response = self._client._request("GET", f"/api/openapi/applications/{app_id}")
|
|
25
|
+
return Application.model_validate(response)
|
|
26
|
+
|
|
27
|
+
def create(self, data: ApplicationCreate) -> Application:
|
|
28
|
+
"""Log/create a new job application."""
|
|
29
|
+
payload = data.model_dump(by_alias=True, exclude_none=True)
|
|
30
|
+
response = self._client._request("POST", "/api/openapi/applications", json=payload)
|
|
31
|
+
return Application.model_validate(response)
|
|
32
|
+
|
|
33
|
+
def update(self, app_id: str, data: Dict[str, Any]) -> Application:
|
|
34
|
+
"""Update an existing job application."""
|
|
35
|
+
response = self._client._request("PATCH", f"/api/openapi/applications/{app_id}", json=data)
|
|
36
|
+
return Application.model_validate(response)
|
|
37
|
+
|
|
38
|
+
def delete(self, app_id: str) -> None:
|
|
39
|
+
"""Delete a job application by ID."""
|
|
40
|
+
self._client._request("DELETE", f"/api/openapi/applications/{app_id}")
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class AsyncApplicationsAPI:
|
|
44
|
+
"""Asynchronous Applications operations."""
|
|
45
|
+
|
|
46
|
+
def __init__(self, client) -> None:
|
|
47
|
+
self._client = client
|
|
48
|
+
|
|
49
|
+
async def list(self) -> List[Application]:
|
|
50
|
+
"""List all job applications asynchronously."""
|
|
51
|
+
response = await self._client._request("GET", "/api/openapi/applications")
|
|
52
|
+
if isinstance(response, dict) and "data" in response:
|
|
53
|
+
items = response["data"]
|
|
54
|
+
else:
|
|
55
|
+
items = response
|
|
56
|
+
return [Application.model_validate(item) for item in items]
|
|
57
|
+
|
|
58
|
+
async def get(self, app_id: str) -> Application:
|
|
59
|
+
"""Retrieve a specific job application by ID asynchronously."""
|
|
60
|
+
response = await self._client._request("GET", f"/api/openapi/applications/{app_id}")
|
|
61
|
+
return Application.model_validate(response)
|
|
62
|
+
|
|
63
|
+
async def create(self, data: ApplicationCreate) -> Application:
|
|
64
|
+
"""Log/create a new job application asynchronously."""
|
|
65
|
+
payload = data.model_dump(by_alias=True, exclude_none=True)
|
|
66
|
+
response = await self._client._request("POST", "/api/openapi/applications", json=payload)
|
|
67
|
+
return Application.model_validate(response)
|
|
68
|
+
|
|
69
|
+
async def update(self, app_id: str, data: Dict[str, Any]) -> Application:
|
|
70
|
+
"""Update an existing job application asynchronously."""
|
|
71
|
+
response = await self._client._request(
|
|
72
|
+
"PATCH", f"/api/openapi/applications/{app_id}", json=data
|
|
73
|
+
)
|
|
74
|
+
return Application.model_validate(response)
|
|
75
|
+
|
|
76
|
+
async def delete(self, app_id: str) -> None:
|
|
77
|
+
"""Delete a job application by ID asynchronously."""
|
|
78
|
+
await self._client._request("DELETE", f"/api/openapi/applications/{app_id}")
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Statistics API endpoints implementation."""
|
|
2
|
+
|
|
3
|
+
from ..models.statistics import ResumeStats
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class StatisticsAPI:
|
|
7
|
+
"""Synchronous Statistics operations."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, client) -> None:
|
|
10
|
+
self._client = client
|
|
11
|
+
|
|
12
|
+
def get(self, resume_id: str) -> ResumeStats:
|
|
13
|
+
"""Retrieve interaction statistics for a specific resume."""
|
|
14
|
+
response = self._client._request("GET", f"/api/openapi/statistics/{resume_id}")
|
|
15
|
+
return ResumeStats.model_validate(response)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class AsyncStatisticsAPI:
|
|
19
|
+
"""Asynchronous Statistics operations."""
|
|
20
|
+
|
|
21
|
+
def __init__(self, client) -> None:
|
|
22
|
+
self._client = client
|
|
23
|
+
|
|
24
|
+
async def get(self, resume_id: str) -> ResumeStats:
|
|
25
|
+
"""Retrieve interaction statistics for a specific resume asynchronously."""
|
|
26
|
+
response = await self._client._request("GET", f"/api/openapi/statistics/{resume_id}")
|
|
27
|
+
return ResumeStats.model_validate(response)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Storage API endpoints implementation."""
|
|
2
|
+
|
|
3
|
+
from ..models.storage import StorageFile
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class StorageAPI:
|
|
7
|
+
"""Synchronous Storage operations."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, client) -> None:
|
|
10
|
+
self._client = client
|
|
11
|
+
|
|
12
|
+
def upload_file(self, file_content: bytes, filename: str) -> StorageFile:
|
|
13
|
+
"""Upload a file to storage.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
file_content: Raw bytes of the file.
|
|
17
|
+
filename: Target name for the uploaded file.
|
|
18
|
+
|
|
19
|
+
Returns:
|
|
20
|
+
Metadata details of the uploaded file.
|
|
21
|
+
"""
|
|
22
|
+
files = {"file": (filename, file_content)}
|
|
23
|
+
response = self._client._request(
|
|
24
|
+
"POST",
|
|
25
|
+
"/api/openapi/storage/upload",
|
|
26
|
+
files=files,
|
|
27
|
+
)
|
|
28
|
+
return StorageFile.model_validate(response)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class AsyncStorageAPI:
|
|
32
|
+
"""Asynchronous Storage operations."""
|
|
33
|
+
|
|
34
|
+
def __init__(self, client) -> None:
|
|
35
|
+
self._client = client
|
|
36
|
+
|
|
37
|
+
async def upload_file(self, file_content: bytes, filename: str) -> StorageFile:
|
|
38
|
+
"""Upload a file to storage asynchronously.
|
|
39
|
+
|
|
40
|
+
Args:
|
|
41
|
+
file_content: Raw bytes of the file.
|
|
42
|
+
filename: Target name for the uploaded file.
|
|
43
|
+
|
|
44
|
+
Returns:
|
|
45
|
+
Metadata details of the uploaded file.
|
|
46
|
+
"""
|
|
47
|
+
files = {"file": (filename, file_content)}
|
|
48
|
+
response = await self._client._request(
|
|
49
|
+
"POST",
|
|
50
|
+
"/api/openapi/storage/upload",
|
|
51
|
+
files=files,
|
|
52
|
+
)
|
|
53
|
+
return StorageFile.model_validate(response)
|
|
@@ -11,6 +11,11 @@ from .exceptions import (
|
|
|
11
11
|
)
|
|
12
12
|
from ..api.auth import AsyncAuthAPI
|
|
13
13
|
from ..api.resumes import AsyncResumesAPI
|
|
14
|
+
from ..api.applications import AsyncApplicationsAPI
|
|
15
|
+
from ..api.statistics import AsyncStatisticsAPI
|
|
16
|
+
from ..api.storage import AsyncStorageAPI
|
|
17
|
+
from ..api.agent import AsyncAgentAPI
|
|
18
|
+
from ..api.ai_providers import AsyncAiProvidersAPI
|
|
14
19
|
|
|
15
20
|
|
|
16
21
|
class AsyncRxResumeClient:
|
|
@@ -57,6 +62,11 @@ class AsyncRxResumeClient:
|
|
|
57
62
|
# Initialize API sections
|
|
58
63
|
self.auth = AsyncAuthAPI(self)
|
|
59
64
|
self.resumes = AsyncResumesAPI(self)
|
|
65
|
+
self.applications = AsyncApplicationsAPI(self)
|
|
66
|
+
self.statistics = AsyncStatisticsAPI(self)
|
|
67
|
+
self.storage = AsyncStorageAPI(self)
|
|
68
|
+
self.agent = AsyncAgentAPI(self)
|
|
69
|
+
self.ai_providers = AsyncAiProvidersAPI(self)
|
|
60
70
|
|
|
61
71
|
def set_token(self, token: str) -> None:
|
|
62
72
|
"""Update client headers with a new Bearer token."""
|
reactive_resume/core/client.py
CHANGED
|
@@ -11,6 +11,11 @@ from .exceptions import (
|
|
|
11
11
|
)
|
|
12
12
|
from ..api.auth import AuthAPI
|
|
13
13
|
from ..api.resumes import ResumesAPI
|
|
14
|
+
from ..api.applications import ApplicationsAPI
|
|
15
|
+
from ..api.statistics import StatisticsAPI
|
|
16
|
+
from ..api.storage import StorageAPI
|
|
17
|
+
from ..api.agent import AgentAPI
|
|
18
|
+
from ..api.ai_providers import AiProvidersAPI
|
|
14
19
|
|
|
15
20
|
|
|
16
21
|
class RxResumeClient:
|
|
@@ -57,6 +62,11 @@ class RxResumeClient:
|
|
|
57
62
|
# Initialize API sections
|
|
58
63
|
self.auth = AuthAPI(self)
|
|
59
64
|
self.resumes = ResumesAPI(self)
|
|
65
|
+
self.applications = ApplicationsAPI(self)
|
|
66
|
+
self.statistics = StatisticsAPI(self)
|
|
67
|
+
self.storage = StorageAPI(self)
|
|
68
|
+
self.agent = AgentAPI(self)
|
|
69
|
+
self.ai_providers = AiProvidersAPI(self)
|
|
60
70
|
|
|
61
71
|
def set_token(self, token: str) -> None:
|
|
62
72
|
"""Update client headers with a new Bearer token."""
|
|
@@ -24,6 +24,11 @@ from .resume import (
|
|
|
24
24
|
ResumeImportData,
|
|
25
25
|
)
|
|
26
26
|
|
|
27
|
+
from .application import Application, ApplicationCreate
|
|
28
|
+
from .statistics import ResumeStats
|
|
29
|
+
from .storage import StorageFile
|
|
30
|
+
from .agent import AgentRequest, AgentResponse
|
|
31
|
+
|
|
27
32
|
__all__ = [
|
|
28
33
|
"User",
|
|
29
34
|
"URLModel",
|
|
@@ -46,4 +51,10 @@ __all__ = [
|
|
|
46
51
|
"ResumeData",
|
|
47
52
|
"Resume",
|
|
48
53
|
"ResumeImportData",
|
|
54
|
+
"Application",
|
|
55
|
+
"ApplicationCreate",
|
|
56
|
+
"ResumeStats",
|
|
57
|
+
"StorageFile",
|
|
58
|
+
"AgentRequest",
|
|
59
|
+
"AgentResponse",
|
|
49
60
|
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Pydantic models representing AI Agent communication in Reactive Resume."""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AgentRequest(BaseModel):
|
|
7
|
+
"""Payload to send to the AI Agent."""
|
|
8
|
+
|
|
9
|
+
prompt: str
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AgentResponse(BaseModel):
|
|
13
|
+
"""Response returned by the AI Agent."""
|
|
14
|
+
|
|
15
|
+
response: str
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Pydantic models representing job applications in Reactive Resume."""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, Field, ConfigDict
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Application(BaseModel):
|
|
9
|
+
"""Represents a job application in the tracker."""
|
|
10
|
+
|
|
11
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
12
|
+
|
|
13
|
+
id: str
|
|
14
|
+
user_id: str = Field(..., alias="userId")
|
|
15
|
+
company: str
|
|
16
|
+
position: str
|
|
17
|
+
stage: str = "Applied" # Applied, Interviewing, Offered, Rejected
|
|
18
|
+
date: datetime
|
|
19
|
+
summary: str = ""
|
|
20
|
+
url: str = ""
|
|
21
|
+
created_at: datetime = Field(..., alias="createdAt")
|
|
22
|
+
updated_at: datetime = Field(..., alias="updatedAt")
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class ApplicationCreate(BaseModel):
|
|
26
|
+
"""Payload to log/create a new job application."""
|
|
27
|
+
|
|
28
|
+
company: str
|
|
29
|
+
position: str
|
|
30
|
+
stage: Optional[str] = "Applied"
|
|
31
|
+
date: Optional[datetime] = None
|
|
32
|
+
summary: Optional[str] = ""
|
|
33
|
+
url: Optional[str] = ""
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Pydantic models representing resume interaction statistics."""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, ConfigDict
|
|
4
|
+
from typing import Dict, Any
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ResumeStats(BaseModel):
|
|
8
|
+
"""Represents view and download statistics for a resume."""
|
|
9
|
+
|
|
10
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
11
|
+
|
|
12
|
+
views: int = 0
|
|
13
|
+
downloads: int = 0
|
|
14
|
+
history: Dict[str, Any] = {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Pydantic models representing storage files in Reactive Resume."""
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel, Field, ConfigDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class StorageFile(BaseModel):
|
|
7
|
+
"""Represents a file/blob uploaded to Reactive Resume storage."""
|
|
8
|
+
|
|
9
|
+
model_config = ConfigDict(populate_by_name=True)
|
|
10
|
+
|
|
11
|
+
filename: str
|
|
12
|
+
url: str
|
|
13
|
+
size: int
|
|
14
|
+
mime_type: str = Field(..., alias="mimeType")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rxresume-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Unofficial Python API client (SDK) for Reactive Resume v4
|
|
5
5
|
Author: Ata Can Yaymacı
|
|
6
6
|
License: MIT
|
|
@@ -42,10 +42,12 @@ It supports both synchronous (`httpx.Client`) and asynchronous (`httpx.AsyncClie
|
|
|
42
42
|
## Features
|
|
43
43
|
|
|
44
44
|
- **Dual client modes**: Support for both sync and async APIs.
|
|
45
|
-
- **
|
|
45
|
+
- **Full API coverage**: Integrated modules for Resume management, Auth, Job Tracker (Applications), AI Agent prompts, AI Providers configurations, Statistics, and Storage uploads.
|
|
46
|
+
- **Type safety**: Fully typed models for all entities using Pydantic V2.
|
|
46
47
|
- **Robust error handling**: Raw API status errors are automatically parsed into specific exceptions (`AuthenticationError`, `NotFoundError`, etc.).
|
|
47
48
|
- **Developer Experience (DX)**: Code-completion ready with clear typing and docstrings.
|
|
48
49
|
|
|
50
|
+
|
|
49
51
|
---
|
|
50
52
|
|
|
51
53
|
## Installation
|
|
@@ -111,8 +113,36 @@ with RxResumeClient(base_url="https://rxresu.me", api_key="your_api_key") as cli
|
|
|
111
113
|
print(f"Resume: {resume.name} (Slug: {resume.slug})")
|
|
112
114
|
```
|
|
113
115
|
|
|
116
|
+
### 3. Advanced Features (AI Agent, Storage, Statistics, Applications)
|
|
117
|
+
|
|
118
|
+
```python
|
|
119
|
+
with RxResumeClient(base_url="https://rxresu.me", api_key="your_api_key") as client:
|
|
120
|
+
# 1. Ask the AI agent to optimize a resume summary
|
|
121
|
+
ai_response = client.agent.chat("resume_id_here", "Suggest a professional summary for a software developer.")
|
|
122
|
+
print(f"AI Suggestion: {ai_response.response}")
|
|
123
|
+
|
|
124
|
+
# 2. Upload a profile image to storage
|
|
125
|
+
with open("avatar.png", "rb") as f:
|
|
126
|
+
file_metadata = client.storage.upload_file(f.read(), "avatar.png")
|
|
127
|
+
print(f"Uploaded Image URL: {file_metadata.url}")
|
|
128
|
+
|
|
129
|
+
# 3. Retrieve resume metrics
|
|
130
|
+
stats = client.statistics.get("resume_id_here")
|
|
131
|
+
print(f"Views: {stats.views}, Downloads: {stats.downloads}")
|
|
132
|
+
|
|
133
|
+
# 4. Log a new job application
|
|
134
|
+
from reactive_resume.models import ApplicationCreate
|
|
135
|
+
app = client.applications.create(ApplicationCreate(
|
|
136
|
+
company="Google",
|
|
137
|
+
position="Senior Backend Engineer",
|
|
138
|
+
stage="Interviewing"
|
|
139
|
+
))
|
|
140
|
+
print(f"Logged Application ID: {app.id}")
|
|
141
|
+
```
|
|
142
|
+
|
|
114
143
|
---
|
|
115
144
|
|
|
145
|
+
|
|
116
146
|
## Error Handling
|
|
117
147
|
|
|
118
148
|
All client API calls map HTTP errors to specific exception classes:
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
reactive_resume/__init__.py,sha256=F5Ze9bu2L1pwIrtYLnXAXeV6cL2p72xDy5I8qnJQfPM,581
|
|
2
|
+
reactive_resume/api/__init__.py,sha256=s2r4tjKHikLjXu8295otFMoOnjlJmFmxiFvZv2QR0X0,722
|
|
3
|
+
reactive_resume/api/agent.py,sha256=MVGFyQXHT3Mxuwa6WqZ-qd3BJyqOJmUUkOWfojahs3E,1221
|
|
4
|
+
reactive_resume/api/ai_providers.py,sha256=jEScZih5NcX0KJifgY0I3ojMvjnoPEE1-gXdS0tfBrw,928
|
|
5
|
+
reactive_resume/api/applications.py,sha256=ePoDy_0abZ7Adyr0dW7QiDozbJ5wVVIWUOeYYhzaZx4,3360
|
|
6
|
+
reactive_resume/api/auth.py,sha256=YkuUjWSOEhxmuY2znOmLf9b2i915I4seNblkk1icBvI,2177
|
|
7
|
+
reactive_resume/api/resumes.py,sha256=fiysbrwWxIccYwSzmuI_5KdrPVSkaPLTTKMf0c-Im4c,5701
|
|
8
|
+
reactive_resume/api/statistics.py,sha256=kj62qmtk2dVqsuIZE5CXaz__ARbyaE8bQ4NEcVDAeqQ,923
|
|
9
|
+
reactive_resume/api/storage.py,sha256=99XzgSYLL_LiPc6sQwBhzYFg8pmbjcRYv0iqaZb7j08,1507
|
|
10
|
+
reactive_resume/core/__init__.py,sha256=TXvcDN-AFX5ctGXoaqHck1eoi0jxLLBCh5J-6ySFZe8,343
|
|
11
|
+
reactive_resume/core/async_client.py,sha256=vand_BXlUVUK-pC1gWB8T_XM9devyIcZBIUxAJFE_4I,5343
|
|
12
|
+
reactive_resume/core/client.py,sha256=Iy6rY5E6p7oNC3WTxZeIL4CYqYr4ikTXwhhqcWpk4vs,5209
|
|
13
|
+
reactive_resume/core/exceptions.py,sha256=cFOPfpmowDu4D5YSLkpnH0brUyTAvwydnwRg1-bpGl4,1124
|
|
14
|
+
reactive_resume/models/__init__.py,sha256=qndsXl18lIOC9TvscDa-jrE7MByDEFF2DYSZypriWtg,1115
|
|
15
|
+
reactive_resume/models/agent.py,sha256=Q9Od-Jdjv8cgj0qtxqA6pmP9NVwetGh3D2yYsLla9TM,301
|
|
16
|
+
reactive_resume/models/application.py,sha256=B2_iHIVaiXr0c0-q48C3R4kNCSeiq0w4mHosd8wEfe0,922
|
|
17
|
+
reactive_resume/models/resume.py,sha256=BoBkk77v_eEBIrHUCqBiYQrQEsm3VXUtIc1bQpn8hrY,4620
|
|
18
|
+
reactive_resume/models/statistics.py,sha256=1vIDT3NkYIX2ANisb1h1pDD9yu9VNeu4I2e4pby62VQ,365
|
|
19
|
+
reactive_resume/models/storage.py,sha256=k7PNmImB6ualqVXGw-UUv9z7bXRWz1fdHW_I5cKvJxM,372
|
|
20
|
+
reactive_resume/models/user.py,sha256=uR8NS0R4Dca63cEh40TjJlrgtDuPmO6TKE6VEvCKTUU,939
|
|
21
|
+
rxresume_python-0.3.0.dist-info/licenses/LICENSE,sha256=Mlna-n1TpPV1TDC0tRQe0QsOMi2-5jTgvnypocbGghw,1073
|
|
22
|
+
rxresume_python-0.3.0.dist-info/METADATA,sha256=-a45jKVBotz2YgE0tUfFO5-YBXqZhPAnmExIppFov5o,6090
|
|
23
|
+
rxresume_python-0.3.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
24
|
+
rxresume_python-0.3.0.dist-info/top_level.txt,sha256=XqM8_KWS_Y5kNXEG18kAShCVtNwErO1NfCeCZ1u-INo,16
|
|
25
|
+
rxresume_python-0.3.0.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
reactive_resume/__init__.py,sha256=F5Ze9bu2L1pwIrtYLnXAXeV6cL2p72xDy5I8qnJQfPM,581
|
|
2
|
-
reactive_resume/api/__init__.py,sha256=t4sq_czaOLuPxyMhnXFoFTAWsr3qidF5i3RTlESRn8M,221
|
|
3
|
-
reactive_resume/api/auth.py,sha256=YkuUjWSOEhxmuY2znOmLf9b2i915I4seNblkk1icBvI,2177
|
|
4
|
-
reactive_resume/api/resumes.py,sha256=fiysbrwWxIccYwSzmuI_5KdrPVSkaPLTTKMf0c-Im4c,5701
|
|
5
|
-
reactive_resume/core/__init__.py,sha256=TXvcDN-AFX5ctGXoaqHck1eoi0jxLLBCh5J-6ySFZe8,343
|
|
6
|
-
reactive_resume/core/async_client.py,sha256=n779xddhVoWhzta3_SdDom0hRPBH5sbH20xR02B5j7Y,4866
|
|
7
|
-
reactive_resume/core/client.py,sha256=XfPqleKefk7A0VxXjSydWIWuwwuPMFdEfzJUrmaf_Ps,4782
|
|
8
|
-
reactive_resume/core/exceptions.py,sha256=cFOPfpmowDu4D5YSLkpnH0brUyTAvwydnwRg1-bpGl4,1124
|
|
9
|
-
reactive_resume/models/__init__.py,sha256=OFiJN0Aep4gKOKn0vVSg6AzMDL8_hvWi3ZazE5ys0u4,819
|
|
10
|
-
reactive_resume/models/resume.py,sha256=BoBkk77v_eEBIrHUCqBiYQrQEsm3VXUtIc1bQpn8hrY,4620
|
|
11
|
-
reactive_resume/models/user.py,sha256=uR8NS0R4Dca63cEh40TjJlrgtDuPmO6TKE6VEvCKTUU,939
|
|
12
|
-
rxresume_python-0.2.0.dist-info/licenses/LICENSE,sha256=Mlna-n1TpPV1TDC0tRQe0QsOMi2-5jTgvnypocbGghw,1073
|
|
13
|
-
rxresume_python-0.2.0.dist-info/METADATA,sha256=y7gujS_S9vboAuIAqu2BRWYwOb1OJKVw8wT392wyQz8,4873
|
|
14
|
-
rxresume_python-0.2.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
15
|
-
rxresume_python-0.2.0.dist-info/top_level.txt,sha256=XqM8_KWS_Y5kNXEG18kAShCVtNwErO1NfCeCZ1u-INo,16
|
|
16
|
-
rxresume_python-0.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|