qq-botpy-sdk 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. botpy/__init__.py +8 -0
  2. botpy/api.py +1798 -0
  3. botpy/audio.py +45 -0
  4. botpy/channel.py +38 -0
  5. botpy/client.py +1035 -0
  6. botpy/connection.py +336 -0
  7. botpy/errors.py +121 -0
  8. botpy/ext/__init__.py +5 -0
  9. botpy/ext/channel_jump/__init__.py +71 -0
  10. botpy/ext/cog_apscheduler/__init__.py +13 -0
  11. botpy/ext/cog_yaml/__init__.py +16 -0
  12. botpy/ext/command_util.py +30 -0
  13. botpy/ext/convert_color/__init__.py +39 -0
  14. botpy/flags.py +370 -0
  15. botpy/forum.py +172 -0
  16. botpy/gateway.py +418 -0
  17. botpy/guild.py +36 -0
  18. botpy/http.py +301 -0
  19. botpy/interaction.py +70 -0
  20. botpy/logging.py +238 -0
  21. botpy/manage.py +60 -0
  22. botpy/message.py +288 -0
  23. botpy/middleware/__init__.py +61 -0
  24. botpy/middleware/base.py +114 -0
  25. botpy/middleware/builtin.py +155 -0
  26. botpy/middleware/commands.py +195 -0
  27. botpy/middleware/control.py +251 -0
  28. botpy/middleware/conversation.py +379 -0
  29. botpy/middleware/policy.py +215 -0
  30. botpy/middleware/typing.py +84 -0
  31. botpy/protocol/__init__.py +159 -0
  32. botpy/protocol/audio.py +92 -0
  33. botpy/protocol/auth.py +220 -0
  34. botpy/protocol/errors.py +113 -0
  35. botpy/protocol/events.py +165 -0
  36. botpy/protocol/formatting.py +40 -0
  37. botpy/protocol/http.py +210 -0
  38. botpy/protocol/image.py +72 -0
  39. botpy/protocol/media.py +354 -0
  40. botpy/protocol/media_utils.py +90 -0
  41. botpy/protocol/message.py +43 -0
  42. botpy/protocol/models.py +69 -0
  43. botpy/protocol/reconnect.py +120 -0
  44. botpy/protocol/reply.py +106 -0
  45. botpy/protocol/session.py +218 -0
  46. botpy/protocol/streaming.py +203 -0
  47. botpy/protocol/target.py +50 -0
  48. botpy/protocol/text.py +14 -0
  49. botpy/protocol/transport/__init__.py +24 -0
  50. botpy/protocol/transport/base.py +17 -0
  51. botpy/protocol/transport/webhook.py +283 -0
  52. botpy/protocol/transport/webhook_verify.py +48 -0
  53. botpy/protocol/upload_cache.py +162 -0
  54. botpy/reaction.py +43 -0
  55. botpy/robot.py +99 -0
  56. botpy/storage/__init__.py +14 -0
  57. botpy/storage/adapters.py +198 -0
  58. botpy/storage/kv.py +279 -0
  59. botpy/types/__init__.py +5 -0
  60. botpy/types/announce.py +24 -0
  61. botpy/types/audio.py +32 -0
  62. botpy/types/channel.py +67 -0
  63. botpy/types/emoji.py +15 -0
  64. botpy/types/forum.py +75 -0
  65. botpy/types/gateway.py +81 -0
  66. botpy/types/guild.py +44 -0
  67. botpy/types/inline.py +35 -0
  68. botpy/types/interaction.py +42 -0
  69. botpy/types/message.py +139 -0
  70. botpy/types/permission.py +22 -0
  71. botpy/types/pins_message.py +8 -0
  72. botpy/types/reaction.py +26 -0
  73. botpy/types/rich_text.py +128 -0
  74. botpy/types/robot.py +7 -0
  75. botpy/types/schedule.py +28 -0
  76. botpy/types/session.py +19 -0
  77. botpy/types/user.py +22 -0
  78. botpy/user.py +31 -0
  79. qq_botpy_sdk-2.0.0.dist-info/METADATA +404 -0
  80. qq_botpy_sdk-2.0.0.dist-info/RECORD +82 -0
  81. qq_botpy_sdk-2.0.0.dist-info/WHEEL +4 -0
  82. qq_botpy_sdk-2.0.0.dist-info/licenses/LICENSE +21 -0
botpy/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ from .logging import LoguruHandler, configure_loguru, get_logger
3
+ from .client import *
4
+ from .flags import *
5
+ from .middleware import *
6
+ from .storage import *
7
+
8
+ logger = get_logger()