butterbot-python 3.1.0.dev1__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 (79) hide show
  1. butterbot/__init__.py +15 -0
  2. butterbot/app/__init__.py +41 -0
  3. butterbot/app/bot_app.py +374 -0
  4. butterbot/app/config.py +156 -0
  5. butterbot/app/source_manager.py +367 -0
  6. butterbot/core/__init__.py +46 -0
  7. butterbot/core/api/__init__.py +9 -0
  8. butterbot/core/api/base_api.py +32 -0
  9. butterbot/core/context/README.md +1 -0
  10. butterbot/core/context/__init__.py +9 -0
  11. butterbot/core/context/api_registry.py +109 -0
  12. butterbot/core/context/app_context.py +51 -0
  13. butterbot/core/context/config_provider.py +14 -0
  14. butterbot/core/data/__init__.py +15 -0
  15. butterbot/core/data/base_data.py +29 -0
  16. butterbot/core/data/base_model.py +197 -0
  17. butterbot/core/event/README.md +1 -0
  18. butterbot/core/event/__init__.py +10 -0
  19. butterbot/core/event/event.py +27 -0
  20. butterbot/core/event/event_bus.py +276 -0
  21. butterbot/core/event/subscriber.py +130 -0
  22. butterbot/core/exceptions.py +90 -0
  23. butterbot/core/filter/__init__.py +11 -0
  24. butterbot/core/filter/base_filter.py +74 -0
  25. butterbot/core/source/README.md +1 -0
  26. butterbot/core/source/__init__.py +9 -0
  27. butterbot/core/source/base_source.py +134 -0
  28. butterbot/core/types/__init__.py +9 -0
  29. butterbot/core/types/base_type.py +74 -0
  30. butterbot/sources/__init__.py +1 -0
  31. butterbot/sources/bilibili/README.md +10 -0
  32. butterbot/sources/bilibili/__init__.py +20 -0
  33. butterbot/sources/bilibili/api/__init__.py +5 -0
  34. butterbot/sources/bilibili/api/bili_api.py +123 -0
  35. butterbot/sources/bilibili/data/__init__.py +52 -0
  36. butterbot/sources/bilibili/data/danmaku_gift_data.py +135 -0
  37. butterbot/sources/bilibili/data/danmaku_guard_data.py +54 -0
  38. butterbot/sources/bilibili/data/danmaku_msg_data.py +71 -0
  39. butterbot/sources/bilibili/data/dto/__init__.py +59 -0
  40. butterbot/sources/bilibili/data/dto/danmaku_gift_dto.py +193 -0
  41. butterbot/sources/bilibili/data/dto/danmaku_guard_buy_dto.py +54 -0
  42. butterbot/sources/bilibili/data/dto/danmaku_msg_dto.py +123 -0
  43. butterbot/sources/bilibili/data/dto/dynamic_dto.py +276 -0
  44. butterbot/sources/bilibili/data/dto/live_room_dto.py +169 -0
  45. butterbot/sources/bilibili/data/dto/video_part_dto.py +18 -0
  46. butterbot/sources/bilibili/data/dynamic_data.py +362 -0
  47. butterbot/sources/bilibili/data/live_room_data.py +162 -0
  48. butterbot/sources/bilibili/data/video_part.py +46 -0
  49. butterbot/sources/bilibili/source/__init__.py +15 -0
  50. butterbot/sources/bilibili/source/base_polling_source.py +130 -0
  51. butterbot/sources/bilibili/source/bili_danmaku_source.py +230 -0
  52. butterbot/sources/bilibili/source/bili_dynamic_source.py +135 -0
  53. butterbot/sources/bilibili/source/bili_live_source.py +137 -0
  54. butterbot/sources/bilibili/types/__init__.py +11 -0
  55. butterbot/sources/bilibili/types/bili_type.py +32 -0
  56. butterbot/sources/napcat/README.md +10 -0
  57. butterbot/sources/napcat/__init__.py +20 -0
  58. butterbot/sources/napcat/api/__init__.py +3 -0
  59. butterbot/sources/napcat/api/napcat_api.py +316 -0
  60. butterbot/sources/napcat/data/__init__.py +179 -0
  61. butterbot/sources/napcat/data/event_data.py +441 -0
  62. butterbot/sources/napcat/data/segment_data.py +432 -0
  63. butterbot/sources/napcat/events.py +91 -0
  64. butterbot/sources/napcat/filters/__init__.py +19 -0
  65. butterbot/sources/napcat/filters/filters.py +202 -0
  66. butterbot/sources/napcat/source/__init__.py +5 -0
  67. butterbot/sources/napcat/source/napcat_source.py +58 -0
  68. butterbot/sources/napcat/types/__init__.py +5 -0
  69. butterbot/sources/napcat/types/napcat_type.py +61 -0
  70. butterbot/utils/README.md +15 -0
  71. butterbot/utils/__init__.py +11 -0
  72. butterbot/utils/data_pair.py +27 -0
  73. butterbot/utils/logging_config.py +521 -0
  74. butterbot/utils/terminal.py +308 -0
  75. butterbot/utils/websocket.py +1270 -0
  76. butterbot_python-3.1.0.dev1.dist-info/METADATA +769 -0
  77. butterbot_python-3.1.0.dev1.dist-info/RECORD +79 -0
  78. butterbot_python-3.1.0.dev1.dist-info/WHEEL +4 -0
  79. butterbot_python-3.1.0.dev1.dist-info/licenses/LICENSE +674 -0
@@ -0,0 +1,79 @@
1
+ butterbot/__init__.py,sha256=mxGZb0xKKIkpYVetANQZpyl5_0oqNlRQjnQDKqBJFkw,412
2
+ butterbot/app/__init__.py,sha256=_Vv91XG4a8MOufpR2j4PlfSTZ_CdnV52MOR1FISKIgo,838
3
+ butterbot/app/bot_app.py,sha256=2aELXJWRXr4y_BY7ied11F_8mRtyoX9LSoeShT_sb50,12465
4
+ butterbot/app/config.py,sha256=lnWnoXNFAx3SfkXqkgrc2H8lo-0WHN01NqBrYHqjUIg,4643
5
+ butterbot/app/source_manager.py,sha256=H4IfleCdP6hrw-3LDlxyc8GUuHQkq45avsJ_migsoU4,12355
6
+ butterbot/core/__init__.py,sha256=SifsSnCCOxEiLw1Obfp16YDsuq6Y196hfqozFnQJUVc,1020
7
+ butterbot/core/exceptions.py,sha256=6rETUt8JTRvSHZ_webzwUv3wQG8c8s5-XNu8ruFH-gc,2638
8
+ butterbot/core/api/__init__.py,sha256=pZVDS4EfW2z1RQFncgFLLgT00cDJQgoyMXK8myx5jxo,99
9
+ butterbot/core/api/base_api.py,sha256=L3TgR6pL2Bs1cyLdYE3ovN4-mjon9mTfkOjf_ns0J98,959
10
+ butterbot/core/context/README.md,sha256=_zq3qd4Twxw5BxTIHdhvFGLiv0tZ-TYz3B5PaEBgWpI,18
11
+ butterbot/core/context/__init__.py,sha256=OayXLKxmSAISI9in571-xfsmZRyRw-s2fMqh95c6gvo,192
12
+ butterbot/core/context/api_registry.py,sha256=V3LbqQ7deDzK9cycPzRugfJIataWkSNKjpYX5C-ZQ3o,3606
13
+ butterbot/core/context/app_context.py,sha256=ZOeIM9apDyiTEMm2XlSmkcqpJfhj7nt-Qvs2x8lXjek,1351
14
+ butterbot/core/context/config_provider.py,sha256=LXdtDyjQB40v_c5pbUflV7s-fbkjhWn8PtQo9PaRxl8,413
15
+ butterbot/core/data/__init__.py,sha256=eNR93w_CzvslVLnPlDkLySMo55cDxmNuZt2cQvy8dFI,228
16
+ butterbot/core/data/base_data.py,sha256=8lRZQEuTLcLkOlYX4z-q1yQqpYioeqwUjN_BcMkK9h4,828
17
+ butterbot/core/data/base_model.py,sha256=4641nb_ZxGB9d3YVnYB1xEDqxuCs6lBykyHi1Nu8xQE,6752
18
+ butterbot/core/event/README.md,sha256=_zq3qd4Twxw5BxTIHdhvFGLiv0tZ-TYz3B5PaEBgWpI,18
19
+ butterbot/core/event/__init__.py,sha256=dgy_lytlQwA0niIl9nUmq1AtvWT98HhLSA0nicbn-tU,194
20
+ butterbot/core/event/event.py,sha256=-z5DAfWxNrVrN3xpAIiWainuFczNkvPFEW5AvvYO85Y,643
21
+ butterbot/core/event/event_bus.py,sha256=6uhydIBHwj6ITDvHWKErh3wKbk804dPjnxxH20n6Uz4,9251
22
+ butterbot/core/event/subscriber.py,sha256=Y2OXrBZusHWIYZlHvTtWOqtGOIEUpcRON6M3Yow2S28,4836
23
+ butterbot/core/filter/__init__.py,sha256=JER66pC5aJ0G_pcG7w3_k869GIiRsPaf90NAd1CbibE,140
24
+ butterbot/core/filter/base_filter.py,sha256=dInNHzRIW1sahaUUvBPDrMQWtRskXHfrLL_1vy-cY-Q,2181
25
+ butterbot/core/source/README.md,sha256=_zq3qd4Twxw5BxTIHdhvFGLiv0tZ-TYz3B5PaEBgWpI,18
26
+ butterbot/core/source/__init__.py,sha256=Gra3bpcMcPz9qeOhxgiYq1AeIDhAn0watsIV2RMpVtI,114
27
+ butterbot/core/source/base_source.py,sha256=PvJZEttiVr9h0ahYzST0IHXEfEool-MEAvV3EoD1_Ps,4190
28
+ butterbot/core/types/__init__.py,sha256=y8tZi47tRmd6iS6-R4Xt6pmnPan-v_a26JCMdcFVRlM,104
29
+ butterbot/core/types/base_type.py,sha256=KAQHpa8i6-AasXoVUGmpYMuDG4ZKXTBn2OX_FiZPdkE,2628
30
+ butterbot/sources/__init__.py,sha256=KcUd0TuhhjmdXarzUHQUoaU6xXkdC7pu6TQJPWdeT-k,92
31
+ butterbot/sources/bilibili/README.md,sha256=z-YMXLAXzC6Ngk2TYSZOziJ7iBHOp2nn4VaZcf5nLdY,400
32
+ butterbot/sources/bilibili/__init__.py,sha256=i8ASB_yuzmfITe3zEK6fysBKnBoNIuEl9fOpWZ9KQ3U,387
33
+ butterbot/sources/bilibili/api/__init__.py,sha256=TnB-fh1oX1cOAb1xhT9fXOJ1BZvnF5U0rU6SQlWCnus,68
34
+ butterbot/sources/bilibili/api/bili_api.py,sha256=wrRGa4WibY4TK7MbGHnRZLTv2ze6aneOtBz9wY5_bNM,4539
35
+ butterbot/sources/bilibili/data/__init__.py,sha256=z5o6SvbvjXZoLDbbTFf5EoGqM6YmDqBYFCVbsUDCRIQ,959
36
+ butterbot/sources/bilibili/data/danmaku_gift_data.py,sha256=5mUUeIUbrRtp1iGDcCKY0N_7dZHs7LbIHwluIBnRKLY,4847
37
+ butterbot/sources/bilibili/data/danmaku_guard_data.py,sha256=6LY0f6GZqjmKvVRQgCJ-5RTAHk46MdiK8aMq-RAZcQ8,1473
38
+ butterbot/sources/bilibili/data/danmaku_msg_data.py,sha256=YnUSRFuxtoowGcD7jV6p6TaRflP-rh0hy6dcJp7Afns,1993
39
+ butterbot/sources/bilibili/data/dynamic_data.py,sha256=C2vTXT5WRlhGyvHv7CBBuo2k5bOklk1JoMZNFGYWdIs,10247
40
+ butterbot/sources/bilibili/data/live_room_data.py,sha256=jybQoAeSKMV6bsmXx0DAreUAf8PhzUkqgNEDaYDe_5M,5177
41
+ butterbot/sources/bilibili/data/video_part.py,sha256=1Ycy0Zh0PG9QEJ2xjShZCnL_nnzmkhXNLvxB0x9cBoE,1087
42
+ butterbot/sources/bilibili/data/dto/__init__.py,sha256=A_3ef0hMWQpT6sinUJYV_RP8RVEEIzZNetbjwxl6FBQ,1074
43
+ butterbot/sources/bilibili/data/dto/danmaku_gift_dto.py,sha256=KmtHjPgxVuD6nN7dvqcPJOIanBirzMspCM8XtxOI1Ew,6943
44
+ butterbot/sources/bilibili/data/dto/danmaku_guard_buy_dto.py,sha256=nhD9-PSNxOcGnmyjEqnoYodTxJDuFLMzzzD6aMwbq4Y,1767
45
+ butterbot/sources/bilibili/data/dto/danmaku_msg_dto.py,sha256=MYFoAZw25W6cuflDDqlZw3QzNysY6R5svfFJsj-5of8,4412
46
+ butterbot/sources/bilibili/data/dto/dynamic_dto.py,sha256=dO8qVjxAprFBr7pRjcTPO_w6mOzzdIh4KfaChWO5m0Q,9764
47
+ butterbot/sources/bilibili/data/dto/live_room_dto.py,sha256=wgQKHu64MTrDez0XoRgdZEipVVnuI8I8HSa_Gho7njk,6253
48
+ butterbot/sources/bilibili/data/dto/video_part_dto.py,sha256=iCwf92RBD-mAUDJh7n5YT8T5rvF44Kxgj-tQ-kqfoEA,517
49
+ butterbot/sources/bilibili/source/__init__.py,sha256=NcGHmsoB0_V-2C8RdPKvuLvBNd23pNkA9GsiVsoQM1w,261
50
+ butterbot/sources/bilibili/source/base_polling_source.py,sha256=irwkeMSzglxsDtqaE_vxuExuWJhfMVrL0Hn5WJJKjnc,4924
51
+ butterbot/sources/bilibili/source/bili_danmaku_source.py,sha256=5JiXKcLShtXmKbu318f2bLC_4VaKU9zBwuI496Uyk8s,9513
52
+ butterbot/sources/bilibili/source/bili_dynamic_source.py,sha256=kgSlBiNmcLl38dIqFyAYTJ4nFRQVs3hErJseNA_F7PA,3788
53
+ butterbot/sources/bilibili/source/bili_live_source.py,sha256=4sXGf7-yxXVUp27Gn8L4SYKUCPtZioogQ7mcIdEzkZM,4101
54
+ butterbot/sources/bilibili/types/__init__.py,sha256=HwMUfmU6LLlHfl60gRQjXqcEyxGOxASNa9j_uvQ53d0,144
55
+ butterbot/sources/bilibili/types/bili_type.py,sha256=_lE8DslHSsVAECtbVwUU64-zugtbsa7vXOBk8JpIlZo,919
56
+ butterbot/sources/napcat/README.md,sha256=ky2hZcalgs6_apsk2Cg-dz0v9QrVfrUwzp3iGeNRHLQ,394
57
+ butterbot/sources/napcat/__init__.py,sha256=--vix6MCVmVRzysKhJ8gmXHGPmgq9GYGIAh7Cg2GiRg,279
58
+ butterbot/sources/napcat/events.py,sha256=bVb_kn353AG5l3R05xwQVhaX4d1Hit2nZNxEmQyM-YU,3588
59
+ butterbot/sources/napcat/api/__init__.py,sha256=3GV-WofA7zfHrA7H5EYUNgsYnXWfgbGf7YKx3f1Ef1s,119
60
+ butterbot/sources/napcat/api/napcat_api.py,sha256=DdXYuDx4xuN65JSET0b34yM1iidRlcfDzBBjrP9WZ_k,11263
61
+ butterbot/sources/napcat/data/__init__.py,sha256=Ts1hDy0GoSnE2PSBg6TSEq9AJRXqYcD_idP6V_Cdo8E,3719
62
+ butterbot/sources/napcat/data/event_data.py,sha256=_21vVQJZLQdkaf0auG62Z2hZe83p9zlsFgIYXuyCO8c,11785
63
+ butterbot/sources/napcat/data/segment_data.py,sha256=_zozHuboODPpxaLxf7NJ-ZAdmrtZjPM6YCSGDRp4E34,8854
64
+ butterbot/sources/napcat/filters/__init__.py,sha256=TgbpgJlmXMpBgy1uocGNTzt6VhI35jr14Ndgc9e4mCA,302
65
+ butterbot/sources/napcat/filters/filters.py,sha256=eKoqna2KFbqOei8o7VD3QLKd-NR1n-DpeUzTRJiUVbY,6869
66
+ butterbot/sources/napcat/source/__init__.py,sha256=0n20VGTTEA9kKCGyEALRYykGaPpWk66kgjtlvJmt1mA,75
67
+ butterbot/sources/napcat/source/napcat_source.py,sha256=vKaDFHDFirkZyCKIOshEpPe6sTS-giDclMdfAFRuFos,1706
68
+ butterbot/sources/napcat/types/__init__.py,sha256=Hq913bNeciJYXA9jbtojHRSrt01_OJkVKeGcLT0al7w,69
69
+ butterbot/sources/napcat/types/napcat_type.py,sha256=apj7iMCKVI8dhGCieWe90AF8RAExNsPICx3FAIm7NQQ,2193
70
+ butterbot/utils/README.md,sha256=Ra-OLqmAcqLqOlzqUVr8bIT8AEYwVogM6Rw5Bw13TXY,508
71
+ butterbot/utils/__init__.py,sha256=uuIyO7HnpXgCnGHzlGjpjzjQlvwDBhWFPQgZJIuSBvM,260
72
+ butterbot/utils/data_pair.py,sha256=9E6fGEJ82a16MS-niPKI6BfUAJ0Xt8QBwOVBY3C84K8,691
73
+ butterbot/utils/logging_config.py,sha256=Y9yn4vUA8VgGJpLvLYgO7SBOgQSvjOdQ-mM68Ea7zpQ,17694
74
+ butterbot/utils/terminal.py,sha256=OvaJ_hVUpDySIoE-VTH7j1z9jIMqJ3t99woc_0bIPbw,9226
75
+ butterbot/utils/websocket.py,sha256=kKTyo8fwb0g-pXNMtrG4MRUMbsTCMCKpSzl--keAxUg,41907
76
+ butterbot_python-3.1.0.dev1.dist-info/METADATA,sha256=wGE2Diu5OuELiSaPEcPoGxGkSt2p0G0EZEAnm6mJVVM,42843
77
+ butterbot_python-3.1.0.dev1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
78
+ butterbot_python-3.1.0.dev1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
79
+ butterbot_python-3.1.0.dev1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any