{"id":29666491,"url":"https://github.com/0xpiranhacodes/iabot","last_synced_at":"2026-02-07T18:03:08.137Z","repository":{"id":49238822,"uuid":"252985051","full_name":"0xPiranhaCodes/iaBot","owner":"0xPiranhaCodes","description":"A mini framework for building bots using python and can be served using different ways.","archived":false,"fork":false,"pushed_at":"2023-05-02T19:11:58.000Z","size":29,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T18:31:19.279Z","etag":null,"topics":["bot","bot-framework","pkg","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/iaBot/","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/0xPiranhaCodes.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":"2020-04-04T11:59:43.000Z","updated_at":"2023-04-07T13:21:37.000Z","dependencies_parsed_at":"2025-02-14T11:16:25.840Z","dependency_job_id":null,"html_url":"https://github.com/0xPiranhaCodes/iaBot","commit_stats":null,"previous_names":["0xpiranhacodes/iabot","satheesh1997/iabot"],"tags_count":6,"template":false,"template_full_name":"0xPiranhaCodes/python3-boilerplate","purl":"pkg:github/0xPiranhaCodes/iaBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPiranhaCodes%2FiaBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPiranhaCodes%2FiaBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPiranhaCodes%2FiaBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPiranhaCodes%2FiaBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xPiranhaCodes","download_url":"https://codeload.github.com/0xPiranhaCodes/iaBot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPiranhaCodes%2FiaBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266516373,"owners_count":23941408,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["bot","bot-framework","pkg","python"],"created_at":"2025-07-22T15:09:12.492Z","updated_at":"2026-02-07T18:03:08.076Z","avatar_url":"https://github.com/0xPiranhaCodes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iaBot\r\n\r\niaBot is a Python library for creating simple bots and serving it with the different ways available.\r\n\r\n\r\n[![PyPI version](https://badge.fury.io/py/iaBot.svg)](https://badge.fury.io/py/iaBot) ![Build](https://github.com/satheesh1997/iaBot/workflows/Build%20\u0026%20Publish/badge.svg)\r\n\r\n\r\n\r\n\r\n## Installation\r\n\r\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install iaBot.\r\n\r\n```bash\r\npip install iaBot\r\n```\r\n\r\n## A simple bot\r\n\r\n```python\r\nfrom iabot import CreateBot\r\nfrom iabot.handlers import SystemInformationHandler\r\nfrom iabot.servers import HttpServer\r\n\r\nhandlers = [\r\n   SystemInformationHandler\r\n]\r\nbot = CreateBot(\r\n   handlers=handlers\r\n)\r\nbot_server = HttpServer(bot)\r\nbot_server.run()\r\n```\r\n\r\nThis creates a simple bot that will be listening to HttpRequests on the port 8000. Using any tool available send a post request to http://\u003cyour_domain.com\u003e:8000/ with the following data.\r\n```json\r\n{\r\n  \"handler\": \"system\",\r\n  \"action\": \"time\"\r\n}\r\n\r\n```\r\nOn successfull request you will get time in the response as json.\r\n\r\n### Handlers\r\nThese are used to group a set of similar actions. You can create your own handlers by inheriting the base handler.\r\n```python\r\nfrom iabot.handlers import BaseHandler\r\n\r\nclass StockHandler(BaseHandler):\r\n    handle = 'stock'\r\n\r\n    def get_stocks(self, *args, **kwargs):\r\n      .....\r\n      ....\r\n\r\n```\r\n\r\nOnce you create a handler with the actions you can register it to a bot by adding the handler to the list of handlers.\r\n\r\n### Actions\r\nThese are functions that a bot can execute to do the job when asked for. In the above StockHandler, get_stocks is an action. The response of all the actions should be a dictionary.\r\n\r\nWhen a request reaches the server it will execute the particular action inside the handler. You can also send some additional data to your actions by passing it as a dict using data key in the request data. Remember a handler should always return a dict.\r\n\r\n```json\r\n{\r\n  \"handler\": \"stock\",\r\n  \"action\": \"get_stocks\",\r\n  \"data\": {\r\n     \"date\": \"04-5-2010\"\r\n   }\r\n}\r\n\r\n```\r\n\r\nWill be updating more and adding more type of servers to serve the bot.\r\n\r\n## Contributing\r\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\r\n\r\nPlease make sure to update tests as appropriate.\r\n\r\n\r\n## -\r\n![Python Powered](https://www.python.org/static/community_logos/python-powered-h-70x91.png)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpiranhacodes%2Fiabot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xpiranhacodes%2Fiabot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpiranhacodes%2Fiabot/lists"}