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.
- matrix_python-1.3.3a0/.github/dependabot.yml +6 -0
- matrix_python-1.3.3a0/.github/workflows/CODEOWNERS +1 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/PKG-INFO +8 -10
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/README.md +7 -9
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/_version.py +3 -3
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/PKG-INFO +8 -10
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/SOURCES.txt +2 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/codeql.yml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/publish.yml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/scorecard.yml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.github/workflows/tests.yml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/.gitignore +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/CODE_OF_CONDUCT.md +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/CONTRIBUTING.md +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/LICENSE +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/README.md +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/checks.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/config.yaml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/cooldown.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/error_handling.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/extension.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/ping.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/reaction.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/examples/scheduler.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/__init__.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/bot.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/checks.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/command.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/config.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/content.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/context.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/errors.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/extension.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/group.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/help/__init__.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/help/help_command.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/help/pagination.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/message.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/registry.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/room.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/scheduler.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix/types.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/dependency_links.txt +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/requires.txt +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/matrix_python.egg-info/top_level.txt +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/mypy.ini +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/pyproject.toml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/setup.cfg +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/config_fixture.yaml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/config_fixture_token.yaml +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/help/test_default_help_command.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/help/test_help_command.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/help/test_pagination.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_bot.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_command.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_config.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_context.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_extension.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_group.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_message.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_registry.py +0 -0
- {matrix_python-1.3.0a0 → matrix_python-1.3.3a0}/tests/test_room.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @PenguinBoi12
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: matrix-python
|
|
3
|
-
Version: 1.3.
|
|
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
|
[](https://github.com/Code-Society-Lab/matrixpy/wiki)
|
|
711
|
-
[](https://discord.gg/code-society-823178343943897088)
|
|
710
|
+
[](https://matrix.to/#/%23codesociety:matrix.org )
|
|
712
711
|
[](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml)
|
|
713
712
|
[](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml)
|
|
714
713
|
[](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](
|
|
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 .[
|
|
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(
|
|
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](
|
|
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
|
|
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
|
[](https://github.com/Code-Society-Lab/matrixpy/wiki)
|
|
12
|
-
[](https://discord.gg/code-society-823178343943897088)
|
|
11
|
+
[](https://matrix.to/#/%23codesociety:matrix.org )
|
|
13
12
|
[](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml)
|
|
14
13
|
[](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml)
|
|
15
14
|
[](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](
|
|
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 .[
|
|
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(
|
|
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](
|
|
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
|
|
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.
|
|
32
|
-
__version_tuple__ = version_tuple = (1, 3,
|
|
31
|
+
__version__ = version = '1.3.3a0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 3, 3, 'a0')
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
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.
|
|
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
|
[](https://github.com/Code-Society-Lab/matrixpy/wiki)
|
|
711
|
-
[](https://discord.gg/code-society-823178343943897088)
|
|
710
|
+
[](https://matrix.to/#/%23codesociety:matrix.org )
|
|
712
711
|
[](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/tests.yml)
|
|
713
712
|
[](https://github.com/Code-Society-Lab/matrixpy/actions/workflows/codeql.yml)
|
|
714
713
|
[](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](
|
|
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 .[
|
|
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(
|
|
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](
|
|
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
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|