{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/1501","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/1501/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1501/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/1501/events","html_url":"https://github.com/xonsh/xonsh/pull/1501","id":168013634,"number":1501,"title":"Implementation of Event Subsystem","user":{"login":"astronouth7303","id":401438,"avatar_url":"https://avatars.githubusercontent.com/u/401438?v=3","gravatar_id":"","url":"https://api.github.com/users/astronouth7303","html_url":"https://github.com/astronouth7303","followers_url":"https://api.github.com/users/astronouth7303/followers","following_url":"https://api.github.com/users/astronouth7303/following{/other_user}","gists_url":"https://api.github.com/users/astronouth7303/gists{/gist_id}","starred_url":"https://api.github.com/users/astronouth7303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronouth7303/subscriptions","organizations_url":"https://api.github.com/users/astronouth7303/orgs","repos_url":"https://api.github.com/users/astronouth7303/repos","events_url":"https://api.github.com/users/astronouth7303/events{/privacy}","received_events_url":"https://api.github.com/users/astronouth7303/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xonsh/xonsh/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":50,"created_at":"2016-07-28T04:53:07Z","updated_at":"2016-08-26T23:47:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xonsh/xonsh/pulls/1501","html_url":"https://github.com/xonsh/xonsh/pull/1501","diff_url":"https://github.com/xonsh/xonsh/pull/1501.diff","patch_url":"https://github.com/xonsh/xonsh/pull/1501.patch"},"body":"Fixes #1489.\r\n\r\nThis is my stab at an event bus, after talking to @scopatz.\r\n\r\nPlease! Comments, questions, etc! I'm open to any ideas, or even scrapping this entire model of events.\r\n\r\nBasic usage, as it stands:\r\n\r\n```python\r\n@events.on_precommand\r\ndef myhandler(cmd):\r\n    print(\"About to run command:\", cmd)\r\n```\r\n\r\nThis covers stand-alone functions, static methods, and maybe class methods? Instance methods certainly do not work.\r\n\r\nI believe the docstrings cover most of the usage, even if they currently ignore rst and numpy."},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/242878010","html_url":"https://github.com/xonsh/xonsh/pull/1501#issuecomment-242878010","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1501","id":242878010,"user":{"login":"astronouth7303","id":401438,"avatar_url":"https://avatars.githubusercontent.com/u/401438?v=3","gravatar_id":"","url":"https://api.github.com/users/astronouth7303","html_url":"https://github.com/astronouth7303","followers_url":"https://api.github.com/users/astronouth7303/followers","following_url":"https://api.github.com/users/astronouth7303/following{/other_user}","gists_url":"https://api.github.com/users/astronouth7303/gists{/gist_id}","starred_url":"https://api.github.com/users/astronouth7303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronouth7303/subscriptions","organizations_url":"https://api.github.com/users/astronouth7303/orgs","repos_url":"https://api.github.com/users/astronouth7303/repos","events_url":"https://api.github.com/users/astronouth7303/events{/privacy}","received_events_url":"https://api.github.com/users/astronouth7303/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T23:47:25Z","updated_at":"2016-08-26T23:47:25Z","body":"Code should be in the polishing phase. I think docstrings are ok, but I haven't really learned numpy format.\r\n\r\nI think the biggest thing that needs to happen in this PR (assuming actually implementing events is a future PR) is the documentation pages. I've kinda started them, but the writing is being difficult."}}
{"actor":{"display_login":"astronouth7303"}}