{"id":30593374,"url":"https://github.com/techwithty/phantombuster","last_synced_at":"2025-08-29T18:13:43.185Z","repository":{"id":310013175,"uuid":"1038383267","full_name":"TechWithTy/phantombuster","owner":"TechWithTy","description":"A production-ready, asynchronous Python SDK for the PhantomBuster API (v1 \u0026 v2). Features include comprehensive endpoint coverage, Pydantic models, robust error handling, and a singleton client.","archived":false,"fork":false,"pushed_at":"2025-08-15T05:13:36.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T07:08:05.795Z","etag":null,"topics":["api-client","asyncio","automation","ci-cd","httpx","phantombuster","production-ready","pydantic","python-sdk","web-scraping"],"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}},"created_at":"2025-08-15T05:13:26.000Z","updated_at":"2025-08-15T05:13:39.000Z","dependencies_parsed_at":"2025-08-15T07:08:24.273Z","dependency_job_id":null,"html_url":"https://github.com/TechWithTy/phantombuster","commit_stats":null,"previous_names":["techwithty/phantombuster"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TechWithTy/phantombuster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fphantombuster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fphantombuster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fphantombuster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fphantombuster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechWithTy","download_url":"https://codeload.github.com/TechWithTy/phantombuster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fphantombuster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272735316,"owners_count":24984283,"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-08-29T02:00:10.610Z","response_time":87,"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":["api-client","asyncio","automation","ci-cd","httpx","phantombuster","production-ready","pydantic","python-sdk","web-scraping"],"created_at":"2025-08-29T18:13:42.495Z","updated_at":"2025-08-29T18:13:43.174Z","avatar_url":"https://github.com/TechWithTy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhantomBuster Python SDK\n\n## Overview\n\nA production-ready, asynchronous Python SDK for the PhantomBuster API. This library provides a convenient and robust way to interact with both v1 and v2 of the PhantomBuster API, with built-in support for retries, rate limiting, and data validation using Pydantic.\n\n## Features\n\n- **Asynchronous:** Built with `asyncio` and `httpx` for high-performance, non-blocking I/O.\n- **Comprehensive Endpoint Coverage:** Implements a wide range of v1 and v2 API endpoints.\n- **Pydantic Models:** Includes Pydantic models for request and response validation.\n- **Singleton Client:** Uses a singleton pattern for efficient client management.\n- **Robust Error Handling:** Provides clear, specific exceptions for different API errors.\n\n## Installation\n\n```bash\npip install -e .  # Assuming you are in the root of the project\n```\n\n## Configuration\n\nCreate a `PhantombusterConfig` object and initialize the client with it:\n\n```python\nfrom phantombuster.client import PhantombusterClient\nfrom phantombuster.config import PhantombusterConfig\n\nconfig = PhantombusterConfig(api_key=\"YOUR_API_KEY\")\nclient = PhantombusterClient.get_instance(config)\n```\n\n## Usage Examples\n\n### Fetching All Agents (v2)\n\n```python\nimport asyncio\n\nasync def main():\n    agents = await client.agents.fetch_all()\n    print(agents)\n\nasyncio.run(main())\n```\n\n### Launching an Agent (v2)\n\n```python\nfrom phantombuster.__global_models__ import LaunchAgentRequest\n\nasync def main():\n    request = LaunchAgentRequest(id=12345)\n    response = await client.agents.launch(request)\n    print(response)\n\nasyncio.run(main())\n```\n\n### Getting User Info (v1)\n\n```python\nasync def main():\n    user_info = await client.v1.get_user()\n    print(user_info)\n\nasyncio.run(main())\n```\n\n## Running Tests\n\nTo run the full test suite:\n\n```bash\npytest backend/app/core/third_party_integrations/phantombuster/_tests/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwithty%2Fphantombuster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechwithty%2Fphantombuster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwithty%2Fphantombuster/lists"}