Python SDK for the Laddro Career API
Project description
laddro-career
Python SDK for the Laddro Career API.
Install
pip install laddro-career
Usage
from laddro_career import Laddro, TailorRequest
laddro = Laddro("laddro_live_...")
# List resumes
result = await laddro.resumes.list()
for resume in result.items:
print(resume.title)
# Tailor a resume
pdf = await laddro.tailor.run(TailorRequest(
position_name="Senior Frontend Engineer",
job_url="https://jobs.example.com/senior-frontend",
))
# Stream progress
async for event in await laddro.tailor.stream(TailorRequest(
position_name="Senior Frontend Engineer",
job_description="We are looking for...",
)):
if event.event == "progress":
print(event.data)
# Generate cover letter
pdf = await laddro.cover_letters.generate(GenerateCoverLetterRequest(
position_name="Product Manager",
job_url="https://jobs.example.com/pm",
))
# Export as PDF
from laddro_career import ExportRequest
pdf = await laddro.export.pdf(ExportRequest(
resume_id="abc-123",
template_id="GRAPHITE",
))
# Browse templates (no auth)
laddro = Laddro()
templates = await laddro.templates.list()
# Configure BYOK
from laddro_career import UpdateAISettingsRequest
await laddro.settings.update_model(UpdateAISettingsRequest(
provider="Anthropic",
model="claude-sonnet-4-20250514",
api_key="sk-ant-...",
))
File uploads
from pathlib import Path
pdf = await laddro.resumes.parse(
Path("./resume.pdf"),
template_id="GRAPHITE",
)
tailored = await laddro.tailor.upload(
Path("./resume.pdf"),
position_name="Backend Engineer",
job_url="https://jobs.example.com/backend",
)
Error handling
from laddro_career import LaddroAPIError, LaddroAuthError, LaddroUsageLimitError
try:
await laddro.tailor.run(request)
except LaddroUsageLimitError:
print("Buy more credits at docs.laddro.com")
except LaddroAuthError:
print("Invalid API key")
except LaddroAPIError as e:
print(f"Error {e.status}: {e}")
Links
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
laddro_career-0.2.0.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file laddro_career-0.2.0.tar.gz.
File metadata
- Download URL: laddro_career-0.2.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3325065fdf6cc4e2947b3572857f5b4f3d172b536aa314738f2552db1eef67d8
|
|
| MD5 |
b5856235d5676af1b94d88830fb510a3
|
|
| BLAKE2b-256 |
ec734c40cc6ed8e2a34e71e3838fedb7cfac95a24e41e5b043a38e168ca09a1c
|
File details
Details for the file laddro_career-0.2.0-py3-none-any.whl.
File metadata
- Download URL: laddro_career-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43e83867d58f8ce6f9ddf65d33af08ebf4e456531218d53782e0c62d806c7deb
|
|
| MD5 |
e4310ae381a791f0bf5712f0e0fc45b3
|
|
| BLAKE2b-256 |
1c2e2686aaacb2d3d9ae3d7deec96d2d0a1b4b12b3ebab7793a0a0055f975668
|