-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement console ext #1287
Conversation
Codecov ReportBase: 48.28% // Head: 48.22% // Decreases project coverage by
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## 5.x #1287 +/- ##
==========================================
- Coverage 48.28% 48.22% -0.06%
==========================================
Files 136 137 +1
Lines 13779 13796 +17
==========================================
Hits 6653 6653
- Misses 7126 7143 +17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Co-authored-by: Sophia <41456914+i0bs@users.noreply.github.com>
* feat: implement console ext * style: linter pass * ci: correct from checks. * Update pyproject.toml Co-authored-by: Sophia <41456914+i0bs@users.noreply.github.com> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sophia <41456914+i0bs@users.noreply.github.com>
About
This PR adds a new extension called "console" to the builtin collection. The Console extension allows users to start the bot with the aiomonitor console active, which provides a REPL for the bot.
To access the console, users can connect to the port specified in the constructor (by default, port 501). On Linux, users can do this with nc localhost 501, while on Windows they can use telnet localhost 501. Alternatively, users can also use python -m aiomonitor.cli -p 501 on both platforms.
Checklist
pre-commit
code linter has been run over all edited files to ensure the code is linted.3.8.6
and higher.versionadded
,versionchanged
anddeprecated
to any new or changed user-facing function I committed.Pull-Request specification
I've made this pull request: (check all that apply)
This is: