{"id":27389154,"url":"https://github.com/an-empty-string/asyncirc","last_synced_at":"2025-04-13T19:12:42.141Z","repository":{"id":70873689,"uuid":"41716842","full_name":"an-empty-string/asyncirc","owner":"an-empty-string","description":"An IRC client library for Python","archived":false,"fork":false,"pushed_at":"2015-09-01T04:26:17.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-01T03:57:55.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/an-empty-string.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-01T04:26:04.000Z","updated_at":"2023-08-01T03:57:55.368Z","dependencies_parsed_at":"2023-02-22T03:15:18.459Z","dependency_job_id":null,"html_url":"https://github.com/an-empty-string/asyncirc","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fasyncirc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fasyncirc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fasyncirc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/an-empty-string%2Fasyncirc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/an-empty-string","download_url":"https://codeload.github.com/an-empty-string/asyncirc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766745,"owners_count":21158301,"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","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":[],"created_at":"2025-04-13T19:12:41.262Z","updated_at":"2025-04-13T19:12:42.128Z","avatar_url":"https://github.com/an-empty-string.png","language":"Python","readme":"# asyncirc [![Build Status](https://travis-ci.org/watchtower/asyncirc.svg?branch=master)](https://travis-ci.org/watchtower/asyncirc) [![Code Climate](https://codeclimate.com/github/watchtower/asyncirc/badges/gpa.svg)](https://codeclimate.com/github/watchtower/asyncirc)\n\n**Asyncirc** is an asyncio-based IRC framework for Python.\n\n## Installation\n\n```\npip install asyncio-irc\n```\n\nAnd you're done!\n\n## Connecting\n\n```python\nfrom asyncirc import irc\n\nbot = irc.connect(\"chat.freenode.net\", 6697, use_ssl=True)\nbot.register(\"nickname\", \"ident\", \"realname\", password=\"pass\") # password optional\n```\n\n## Subscribing to events\n\n```python\n@bot.on(\"message\")\ndef incoming_message(parsed, user, target, text):\n    # parsed is an RFC1459Message object\n    # user is a User object with nick, user, and host attributes\n    # target is a string representing nick/channel the message was sent to\n    # text is the text of the message\n    bot.say(target, \"{}: you said {}\".format(user.nick, text))\n```\n\n## Using plugins\n\n```python\nimport asyncirc.plugins.tracking # channel/user state tracking\nimport asyncirc.plugins.addressed # events that fire when the bot is addressed\nimport asyncirc.plugins.nickserv # events that fire on nickserv authentication responses\n```\n\n## Writing code without a reference to the IRCProtocol object\n\nAsyncirc uses the excellent [Blinker](https://pythonhosted.org/blinker/) library.\nThat means that you can just run `from blinker import signal` and hook into\nasyncirc's events without needing a reference to the IRCProtocol object. This is\nespecially useful in writing plugins; take a look at plugin code for examples.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan-empty-string%2Fasyncirc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan-empty-string%2Fasyncirc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan-empty-string%2Fasyncirc/lists"}