matrix-python 1.3.0a0__tar.gz → 1.3.3a0__tar.gz

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 (62) hide show
  1. matrix_python-1.3.3a0/.github/dependabot.yml +6 -0
  2. matrix_python-1.3.3a0/.github/workflows/CODEOWNERS +1 -0
  3. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/PKG-INFO +8 -10
  4. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/README.md +7 -9
  5. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/_version.py +3 -3
  6. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/PKG-INFO +8 -10
  7. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/SOURCES.txt +2 -0
  8. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/codeql.yml +0 -0
  9. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/publish.yml +0 -0
  10. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/scorecard.yml +0 -0
  11. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/tests.yml +0 -0
  12. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.gitignore +0 -0
  13. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/CODE_OF_CONDUCT.md +0 -0
  14. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/CONTRIBUTING.md +0 -0
  15. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/LICENSE +0 -0
  16. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/README.md +0 -0
  17. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/checks.py +0 -0
  18. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/config.yaml +0 -0
  19. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/cooldown.py +0 -0
  20. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/error_handling.py +0 -0
  21. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/extension.py +0 -0
  22. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/ping.py +0 -0
  23. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/reaction.py +0 -0
  24. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/scheduler.py +0 -0
  25. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/__init__.py +0 -0
  26. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/bot.py +0 -0
  27. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/checks.py +0 -0
  28. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/command.py +0 -0
  29. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/config.py +0 -0
  30. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/content.py +0 -0
  31. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/context.py +0 -0
  32. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/errors.py +0 -0
  33. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/extension.py +0 -0
  34. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/group.py +0 -0
  35. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/help/__init__.py +0 -0
  36. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/help/help_command.py +0 -0
  37. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/help/pagination.py +0 -0
  38. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/message.py +0 -0
  39. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/registry.py +0 -0
  40. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/room.py +0 -0
  41. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/scheduler.py +0 -0
  42. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/types.py +0 -0
  43. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/dependency_links.txt +0 -0
  44. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/requires.txt +0 -0
  45. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/top_level.txt +0 -0
  46. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/mypy.ini +0 -0
  47. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/pyproject.toml +0 -0
  48. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/setup.cfg +0 -0
  49. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/config_fixture.yaml +0 -0
  50. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/config_fixture_token.yaml +0 -0
  51. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/help/test_default_help_command.py +0 -0
  52. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/help/test_help_command.py +0 -0
  53. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/help/test_pagination.py +0 -0
  54. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_bot.py +0 -0
  55. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_command.py +0 -0
  56. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_config.py +0 -0
  57. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_context.py +0 -0
  58. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_extension.py +0 -0
  59. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_group.py +0 -0
  60. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_message.py +0 -0
  61. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_registry.py +0 -0
  62. {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_room.py +0 -0
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
@@ -0,0 +1 @@
1
+ * @PenguinBoi12
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrix-python
3
- Version: 1.3.0a0
3
+ Version: 1.3.3a0
4
4
  Summary: An easy-to-use Matrix bot framework designed for quick development and minimal setup
5
5
  Author: Simon Roy, Chris Dedman Rollet
6
6
  Maintainer-email: Code Society Lab <admin@codesociety.xyz>
@@ -697,8 +697,6 @@ Requires-Dist: mypy; extra == "dev"
697
697
  Requires-Dist: types-PyYAML; extra == "dev"
698
698
  Requires-Dist: types-Markdown; extra == "dev"
699
699
 
700
- <h1 align="center">Matrix.py</h1>
701
-
702
700
  <div align="center">
703
701
  <em>A simple, developer-friendly library to create powerful <a href="https://matrix.org">Matrix</a> bots.</em>
704
702
  </div>
@@ -708,13 +706,14 @@ Requires-Dist: types-Markdown; extra == "dev"
708
706
  <hr />
709
707
 
710
708
  [![Static Badge](https://img.shields.io/badge/%F0%9F%93%9A-Documentation-%235c5c5c)](https://github.com/Code-Society-Lab/matrixpy/wiki)
711
- [![Join on Discord](https://discordapp.com/api/guilds/823178343943897088/widget.png?style=shield)](https://discord.gg/code-society-823178343943897088)
709
+ [![Join Discord](https://discordapp.com/api/guilds/823178343943897088/widget.png?style=shield)](https://discord.gg/code-society-823178343943897088)
710
+ [![Join Matrix](https://img.shields.io/matrix/codesociety%3Amatrix.org?logo=matrix&label=%20&labelColor=%23202020&color=%23202020)](https://matrix.to/#/%23codesociety:matrix.org )
712
711
  [![Tests](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml/badge.svg)](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml)
713
712
  [![CodeQL Advanced](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml/badge.svg)](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml)
714
713
  [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/Code-Society-Lab/matrixpy/badge)](https://securityscorecards.dev/viewer/?uri=github.com/Code-Society-Lab/matrixpy)
715
714
 
716
715
  Matrix.py is a lightweight and intuitive Python library to build bots on
717
- the [Matrix protocol]([Matrix](https://matrix.org)). It provides a clean,
716
+ the [Matrix protocol](https://matrix.org). It provides a clean,
718
717
  decorator-based API similar to popular event-driven frameworks, allowing
719
718
  developers to focus on behavior rather than boilerplate.
720
719
 
@@ -736,7 +735,7 @@ pip install matrix-python
736
735
 
737
736
  If you plan on contributing to matrix.py, we recommend to install the development libraries:
738
737
  ```
739
- pip install .[env]
738
+ pip install -e .[dev]
740
739
  ```
741
740
 
742
741
  *Note*: It is recommended to use a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/) when installing python packages.
@@ -745,19 +744,18 @@ pip install .[env]
745
744
  ```python
746
745
  from matrix import Bot, Context
747
746
 
748
- bot = Bot(username="@gracehopper:matrix.org", password="grace1234")
747
+ bot = Bot(config="config.yml")
749
748
 
750
749
 
751
750
  @bot.command("ping")
752
751
  async def ping(ctx: Context):
753
- print(f"{ctx.sender} invoked {ctx.body} in room {ctx.room_name}.")
754
752
  await ctx.send("Pong!")
755
753
 
756
754
 
757
755
  bot.start()
758
756
  ```
759
757
 
760
- [Documentation](https://github.com/Code-Society-Lab/matrixpy/wiki) - [Examples]([https://github.com/Code-Society-Lab/matrixpy/wiki](https://github.com/Code-Society-Lab/matrixpy/tree/main/examples))
758
+ [Documentation](https://github.com/Code-Society-Lab/matrixpy/wiki) - [Examples](https://github.com/Code-Society-Lab/matrixpy/tree/main/examples)
761
759
 
762
760
  # Contributing
763
761
  We welcome everyone to contribute!
@@ -765,7 +763,7 @@ We welcome everyone to contribute!
765
763
  Whether it's fixing bugs, suggesting features, or improving the docs - every bit helps.
766
764
  - Submit an issue
767
765
  - Open a pull request
768
- - Or just hop into our [Discord community](https://discord.gg/code-society-823178343943897088) and say hi!
766
+ - Or just hop into our [Matrix](https://matrix.to/#/%23codesociety:matrix.org) or [Discord](https://discord.gg/code-society-823178343943897088) server and say hi!
769
767
 
770
768
  If you intend to contribute, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) first. Additionally, **every contributor** is expected to follow the [code of conduct](./CODE_OF_CONDUCT.md).
771
769
 
@@ -1,5 +1,3 @@
1
- <h1 align="center">Matrix.py</h1>
2
-
3
1
  <div align="center">
4
2
  <em>A simple, developer-friendly library to create powerful <a href="https://matrix.org">Matrix</a> bots.</em>
5
3
  </div>
@@ -9,13 +7,14 @@
9
7
  <hr />
10
8
 
11
9
  [![Static Badge](https://img.shields.io/badge/%F0%9F%93%9A-Documentation-%235c5c5c)](https://github.com/Code-Society-Lab/matrixpy/wiki)
12
- [![Join on Discord](https://discordapp.com/api/guilds/823178343943897088/widget.png?style=shield)](https://discord.gg/code-society-823178343943897088)
10
+ [![Join Discord](https://discordapp.com/api/guilds/823178343943897088/widget.png?style=shield)](https://discord.gg/code-society-823178343943897088)
11
+ [![Join Matrix](https://img.shields.io/matrix/codesociety%3Amatrix.org?logo=matrix&label=%20&labelColor=%23202020&color=%23202020)](https://matrix.to/#/%23codesociety:matrix.org )
13
12
  [![Tests](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml/badge.svg)](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml)
14
13
  [![CodeQL Advanced](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml/badge.svg)](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml)
15
14
  [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/Code-Society-Lab/matrixpy/badge)](https://securityscorecards.dev/viewer/?uri=github.com/Code-Society-Lab/matrixpy)
16
15
 
17
16
  Matrix.py is a lightweight and intuitive Python library to build bots on
18
- the [Matrix protocol]([Matrix](https://matrix.org)). It provides a clean,
17
+ the [Matrix protocol](https://matrix.org). It provides a clean,
19
18
  decorator-based API similar to popular event-driven frameworks, allowing
20
19
  developers to focus on behavior rather than boilerplate.
21
20
 
@@ -37,7 +36,7 @@ pip install matrix-python
37
36
 
38
37
  If you plan on contributing to matrix.py, we recommend to install the development libraries:
39
38
  ```
40
- pip install .[env]
39
+ pip install -e .[dev]
41
40
  ```
42
41
 
43
42
  *Note*: It is recommended to use a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/) when installing python packages.
@@ -46,19 +45,18 @@ pip install .[env]
46
45
  ```python
47
46
  from matrix import Bot, Context
48
47
 
49
- bot = Bot(username="@gracehopper:matrix.org", password="grace1234")
48
+ bot = Bot(config="config.yml")
50
49
 
51
50
 
52
51
  @bot.command("ping")
53
52
  async def ping(ctx: Context):
54
- print(f"{ctx.sender} invoked {ctx.body} in room {ctx.room_name}.")
55
53
  await ctx.send("Pong!")
56
54
 
57
55
 
58
56
  bot.start()
59
57
  ```
60
58
 
61
- [Documentation](https://github.com/Code-Society-Lab/matrixpy/wiki) - [Examples]([https://github.com/Code-Society-Lab/matrixpy/wiki](https://github.com/Code-Society-Lab/matrixpy/tree/main/examples))
59
+ [Documentation](https://github.com/Code-Society-Lab/matrixpy/wiki) - [Examples](https://github.com/Code-Society-Lab/matrixpy/tree/main/examples)
62
60
 
63
61
  # Contributing
64
62
  We welcome everyone to contribute!
@@ -66,7 +64,7 @@ We welcome everyone to contribute!
66
64
  Whether it's fixing bugs, suggesting features, or improving the docs - every bit helps.
67
65
  - Submit an issue
68
66
  - Open a pull request
69
- - Or just hop into our [Discord community](https://discord.gg/code-society-823178343943897088) and say hi!
67
+ - Or just hop into our [Matrix](https://matrix.to/#/%23codesociety:matrix.org) or [Discord](https://discord.gg/code-society-823178343943897088) server and say hi!
70
68
 
71
69
  If you intend to contribute, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) first. Additionally, **every contributor** is expected to follow the [code of conduct](./CODE_OF_CONDUCT.md).
72
70
 
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '1.3.0a0'
32
- __version_tuple__ = version_tuple = (1, 3, 0, 'a0')
31
+ __version__ = version = '1.3.3a0'
32
+ __version_tuple__ = version_tuple = (1, 3, 3, 'a0')
33
33
 
34
- __commit_id__ = commit_id = 'gfee3d765e'
34
+ __commit_id__ = commit_id = 'g7d083d049'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrix-python
3
- Version: 1.3.0a0
3
+ Version: 1.3.3a0
4
4
  Summary: An easy-to-use Matrix bot framework designed for quick development and minimal setup
5
5
  Author: Simon Roy, Chris Dedman Rollet
6
6
  Maintainer-email: Code Society Lab <admin@codesociety.xyz>
@@ -697,8 +697,6 @@ Requires-Dist: mypy; extra == "dev"
697
697
  Requires-Dist: types-PyYAML; extra == "dev"
698
698
  Requires-Dist: types-Markdown; extra == "dev"
699
699
 
700
- <h1 align="center">Matrix.py</h1>
701
-
702
700
  <div align="center">
703
701
  <em>A simple, developer-friendly library to create powerful <a href="https://matrix.org">Matrix</a> bots.</em>
704
702
  </div>
@@ -708,13 +706,14 @@ Requires-Dist: types-Markdown; extra == "dev"
708
706
  <hr />
709
707
 
710
708
  [![Static Badge](https://img.shields.io/badge/%F0%9F%93%9A-Documentation-%235c5c5c)](https://github.com/Code-Society-Lab/matrixpy/wiki)
711
- [![Join on Discord](https://discordapp.com/api/guilds/823178343943897088/widget.png?style=shield)](https://discord.gg/code-society-823178343943897088)
709
+ [![Join Discord](https://discordapp.com/api/guilds/823178343943897088/widget.png?style=shield)](https://discord.gg/code-society-823178343943897088)
710
+ [![Join Matrix](https://img.shields.io/matrix/codesociety%3Amatrix.org?logo=matrix&label=%20&labelColor=%23202020&color=%23202020)](https://matrix.to/#/%23codesociety:matrix.org )
712
711
  [![Tests](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml/badge.svg)](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml)
713
712
  [![CodeQL Advanced](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml/badge.svg)](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml)
714
713
  [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/Code-Society-Lab/matrixpy/badge)](https://securityscorecards.dev/viewer/?uri=github.com/Code-Society-Lab/matrixpy)
715
714
 
716
715
  Matrix.py is a lightweight and intuitive Python library to build bots on
717
- the [Matrix protocol]([Matrix](https://matrix.org)). It provides a clean,
716
+ the [Matrix protocol](https://matrix.org). It provides a clean,
718
717
  decorator-based API similar to popular event-driven frameworks, allowing
719
718
  developers to focus on behavior rather than boilerplate.
720
719
 
@@ -736,7 +735,7 @@ pip install matrix-python
736
735
 
737
736
  If you plan on contributing to matrix.py, we recommend to install the development libraries:
738
737
  ```
739
- pip install .[env]
738
+ pip install -e .[dev]
740
739
  ```
741
740
 
742
741
  *Note*: It is recommended to use a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/) when installing python packages.
@@ -745,19 +744,18 @@ pip install .[env]
745
744
  ```python
746
745
  from matrix import Bot, Context
747
746
 
748
- bot = Bot(username="@gracehopper:matrix.org", password="grace1234")
747
+ bot = Bot(config="config.yml")
749
748
 
750
749
 
751
750
  @bot.command("ping")
752
751
  async def ping(ctx: Context):
753
- print(f"{ctx.sender} invoked {ctx.body} in room {ctx.room_name}.")
754
752
  await ctx.send("Pong!")
755
753
 
756
754
 
757
755
  bot.start()
758
756
  ```
759
757
 
760
- [Documentation](https://github.com/Code-Society-Lab/matrixpy/wiki) - [Examples]([https://github.com/Code-Society-Lab/matrixpy/wiki](https://github.com/Code-Society-Lab/matrixpy/tree/main/examples))
758
+ [Documentation](https://github.com/Code-Society-Lab/matrixpy/wiki) - [Examples](https://github.com/Code-Society-Lab/matrixpy/tree/main/examples)
761
759
 
762
760
  # Contributing
763
761
  We welcome everyone to contribute!
@@ -765,7 +763,7 @@ We welcome everyone to contribute!
765
763
  Whether it's fixing bugs, suggesting features, or improving the docs - every bit helps.
766
764
  - Submit an issue
767
765
  - Open a pull request
768
- - Or just hop into our [Discord community](https://discord.gg/code-society-823178343943897088) and say hi!
766
+ - Or just hop into our [Matrix](https://matrix.to/#/%23codesociety:matrix.org) or [Discord](https://discord.gg/code-society-823178343943897088) server and say hi!
769
767
 
770
768
  If you intend to contribute, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) first. Additionally, **every contributor** is expected to follow the [code of conduct](./CODE_OF_CONDUCT.md).
771
769
 
@@ -5,6 +5,8 @@ LICENSE
5
5
  README.md
6
6
  mypy.ini
7
7
  pyproject.toml
8
+ .github/dependabot.yml
9
+ .github/workflows/CODEOWNERS
8
10
  .github/workflows/codeql.yml
9
11
  .github/workflows/publish.yml
10
12
  .github/workflows/scorecard.yml
File without changes