{"id":37386830,"url":"https://github.com/codd-tech/bap-sdk-python","last_synced_at":"2026-01-16T05:22:11.408Z","repository":{"id":63053189,"uuid":"564852476","full_name":"codd-tech/bap-sdk-python","owner":"codd-tech","description":"Bot Advertising Platform SDK","archived":false,"fork":false,"pushed_at":"2024-05-12T10:16:45.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-12T11:26:57.222Z","etag":null,"topics":["advertising","cpa","pypi","python","sdk"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codd-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-11-11T16:48:32.000Z","updated_at":"2024-05-12T11:27:00.347Z","dependencies_parsed_at":"2024-05-12T11:26:58.272Z","dependency_job_id":null,"html_url":"https://github.com/codd-tech/bap-sdk-python","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/codd-tech/bap-sdk-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codd-tech%2Fbap-sdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codd-tech%2Fbap-sdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codd-tech%2Fbap-sdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codd-tech%2Fbap-sdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codd-tech","download_url":"https://codeload.github.com/codd-tech/bap-sdk-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codd-tech%2Fbap-sdk-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["advertising","cpa","pypi","python","sdk"],"created_at":"2026-01-16T05:22:11.311Z","updated_at":"2026-01-16T05:22:11.391Z","avatar_url":"https://github.com/codd-tech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bot Advertising Platform SDK\n\n[![PyPi Package Version](https://img.shields.io/pypi/v/bapsdk.svg?style=flat-square)](https://pypi.python.org/pypi/bapsdk)\n[![Supported python versions](https://img.shields.io/pypi/pyversions/bapsdk.svg?style=flat-square)](https://pypi.python.org/pypi/bapsdk)\n\nThis repository holds SDK related to\n[Bot Advertising Platform](https://publisher.socialjet.pro/).\n\n## Requirements\n\n- Python \u003e=3.7\n\n## Installation\n\nInstall the latest version with\n\n```bash\n$ pip install bapsdk\n```\n\nThe BAP SDK uses the UDP protocol for data transfer to ensure minimal SDK overhead for the user.\n\n### Usage\n\nSee [examples](./examples)\n\n- [Basic usage](examples/basic.py)\n- [Usage with aiogram](examples/aiogram_bot.py)\n\n#### Interrupting control flow\n\nAt times, BAP may introduce telegram updates within its advertisement flow. To maintain the logical consistency of your bot, it is necessary to ignore such updates.\n\nThe `BAP.handle_update` method returns a boolean value indicating whether you should proceed with handling the request or skip it as an internal BAP request.\n\nWhen the method returns `false`, it signifies that the current request should not be processed by your bot.\n\nFor manual advertisement mode (Should be turned on in settings) call following in the desired ad placements.\n\n```python\nbap.send_advertisement(update)\n```\n\n### API Key\n\n**API key is not your Telegram bot token.**\n\nAPI key must be obtained from [socialjet.pro](https://publisher.socialjet.pro/)\n\n## About\n\n### Submitting bugs and feature requests\n\nBugs and feature request are tracked on [GitHub](https://github.com/codd-tech/bap-sdk-python)\n\n### License\n\nBot Advertising Platform SDK is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodd-tech%2Fbap-sdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodd-tech%2Fbap-sdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodd-tech%2Fbap-sdk-python/lists"}