{"id":31919504,"url":"https://github.com/techwithty/lob","last_synced_at":"2025-11-08T14:03:38.993Z","repository":{"id":312556636,"uuid":"1047885845","full_name":"TechWithTy/lob","owner":"TechWithTy","description":"Lob API integration: programmatic direct mail, postcards, letters, and address verification for real estate ops.","archived":false,"fork":false,"pushed_at":"2025-08-31T13:06:52.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-31T15:11:19.771Z","etag":null,"topics":["address-verification","api","direct-mail","letters","lob","operations","postcards","python","real-estate"],"latest_commit_sha":null,"homepage":"https://www.cybershoptech.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechWithTy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T13:06:43.000Z","updated_at":"2025-08-31T13:06:55.000Z","dependencies_parsed_at":"2025-08-31T15:11:24.771Z","dependency_job_id":"d44497e1-6207-406e-be60-10a5c1cf63c2","html_url":"https://github.com/TechWithTy/lob","commit_stats":null,"previous_names":["techwithty/lob"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TechWithTy/lob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Flob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Flob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Flob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Flob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechWithTy","download_url":"https://codeload.github.com/TechWithTy/lob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Flob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017053,"owners_count":26085951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["address-verification","api","direct-mail","letters","lob","operations","postcards","python","real-estate"],"created_at":"2025-10-13T21:44:56.107Z","updated_at":"2025-10-13T21:45:02.594Z","avatar_url":"https://github.com/TechWithTy.png","language":"Python","readme":"# Lob Python Integration: Async API Client for Lob\n\n[![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nAn async-first Lob API integration used by this backend. It provides lightweight wrappers around Lob endpoints with optional typed Pydantic models and automatic retries, auth, and idempotency support.\n\n## Key Features\n\n- Fully async via `aiohttp`\n- Basic Auth with API key, optional Lob-Version header\n- Idempotency-Key support for create endpoints\n- Built-in retries with exponential backoff and rate-limit handling\n- Iterative typing using Pydantic models and generic `ListResponse[T]`\n\n## Installation\n\nThis lives inside the monorepo. If you need a standalone install, ensure these deps are present:\n\n```toml\n# pyproject.toml (excerpt)\n[project]\ndependencies = [\n  \"aiohttp\u003e=3.9\",\n  \"backoff\u003e=2.2\",\n  \"pydantic\u003e=2.5\",\n]\n```\n\n## Configuration\n\nSee `backend/app/core/third_party_integrations/lob/config.py` for defaults.\n\n- `LOB_API_KEY` (required)\n- `LOB_BASE_URL` (default: `https://api.lob.com`)\n- `LOB_API_VERSION` (optional)\n- `LOB_TIMEOUT` (seconds)\n- `LOB_MAX_RETRIES`\n\n## Quick Start\n\n```python\nfrom backend.app.core.third_party_integrations.lob import LobClient\nfrom backend.app.core.third_party_integrations.lob.api import postcards\n\nasync def main():\n    async with LobClient() as client:\n        pc = await postcards.create_postcard(\n            client,\n            data={\n                \"to\": {\"name\": \"Jane\", \"address_line1\": \"185 Berry St\", \"address_city\": \"SF\", \"address_state\": \"CA\", \"address_zip\": \"94107\"},\n                \"from\": {\"name\": \"ACME\", \"address_line1\": \"123 Main St\", \"address_city\": \"SF\", \"address_state\": \"CA\", \"address_zip\": \"94105\"},\n                \"front\": \"https://example.com/front.pdf\",\n                \"back\": \"https://example.com/back.pdf\",\n            },\n            idempotency_key=\"unique-key-123\",\n        )\n        print(pc.id)\n```\n\n## Typed Endpoints (initial set)\n\n- Postcards: list/create/retrieve (typed), cancel (raw)\n- Letters: list/create/retrieve (typed), cancel (raw)\n- Self Mailers: list/create/retrieve (typed), cancel (raw)\n- Templates: list/create/retrieve (typed), delete (raw)\n- Template Versions: list/create/retrieve (typed)\n- Webhooks: list/create/retrieve (typed), delete (raw)\n\nAll other endpoints are implemented and currently return raw dicts; they will be typed iteratively.\n\n## Error Handling\n\n`LobClient.request()` raises specific errors on non-2xx responses:\n\n- Auth: 401 -\u003e `LobAuthError`\n- Rate limit: 429 -\u003e `LobRateLimitError` (with `retry_after` when available)\n- Other: `LobAPIError`\n\n## Development\n\n- Core client: `backend/app/core/third_party_integrations/lob/client.py`\n- Endpoints: `backend/app/core/third_party_integrations/lob/api/`\n- Models: `backend/app/core/third_party_integrations/lob/api/_models.py`\n- List wrapper: `backend/app/core/third_party_integrations/lob/api/_responses.py`\n\n---\n\nLegacy notes below (ManyChat SDK – kept for historical scaffolding reference):","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwithty%2Flob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechwithty%2Flob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwithty%2Flob/lists"}