File tree Expand file tree Collapse file tree 7 files changed +27
-736
lines changed
Expand file tree Collapse file tree 7 files changed +27
-736
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ mautrix-appservice-python
55
66A Python 3 asyncio-based Matrix application service framework.
77
8+ The framework is minimal and only provides basic application service functions,
9+ room state storage and an intent API. The core AS functions are based on Cadair's
10+ python-appservice-framework _ and the intent API design is based on matrix-appservice-bridge.
11+
12+ .. _python-appservice-framework : https://github.com/Cadair/python-appservice-framework/
813.. |PyPI badge | image :: https://img.shields.io/pypi/v/mautrix-appservice.svg
914 :target: https://pypi.python.org/pypi/mautrix-appservice
1015.. |Python versions | image :: https://img.shields.io/pypi/pyversions/mautrix-appservice.svg
Original file line number Diff line number Diff line change 11# -*- coding: future_fstrings -*-
2- # matrix-appservice-python - A Matrix Application Service framework written in Python.
3- # Copyright (C) 2018 Tulir Asokan
4- #
5- # This program is free software: you can redistribute it and/or modify
6- # it under the terms of the GNU General Public License as published by
7- # the Free Software Foundation, either version 3 of the License, or
8- # (at your option) any later version.
9- #
10- # This program is distributed in the hope that it will be useful,
11- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13- # GNU General Public License for more details.
14- #
15- # You should have received a copy of the GNU General Public License
16- # along with this program. If not, see <http://www.gnu.org/licenses/>.
17- #
182# Partly based on github.com/Cadair/python-appservice-framework (MIT license)
193from contextlib import contextmanager
204from typing import Optional , Callable , Awaitable , Union
Original file line number Diff line number Diff line change 11# -*- coding: future_fstrings -*-
2- # mautrix-telegram - A Matrix-Telegram puppeting bridge
3- # Copyright (C) 2018 Tulir Asokan
4- #
5- # This program is free software: you can redistribute it and/or modify
6- # it under the terms of the GNU General Public License as published by
7- # the Free Software Foundation, either version 3 of the License, or
8- # (at your option) any later version.
9- #
10- # This program is distributed in the hope that it will be useful,
11- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13- # GNU General Public License for more details.
14- #
15- # You should have received a copy of the GNU General Public License
16- # along with this program. If not, see <http://www.gnu.org/licenses/>.
172from typing import Optional
183
194
Original file line number Diff line number Diff line change 11# -*- coding: future_fstrings -*-
2- # mautrix-telegram - A Matrix-Telegram puppeting bridge
3- # Copyright (C) 2018 Tulir Asokan
4- #
5- # This program is free software: you can redistribute it and/or modify
6- # it under the terms of the GNU General Public License as published by
7- # the Free Software Foundation, either version 3 of the License, or
8- # (at your option) any later version.
9- #
10- # This program is distributed in the hope that it will be useful,
11- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13- # GNU General Public License for more details.
14- #
15- # You should have received a copy of the GNU General Public License
16- # along with this program. If not, see <http://www.gnu.org/licenses/>.
172from urllib .parse import quote
183from time import time
194from json .decoder import JSONDecodeError
Original file line number Diff line number Diff line change 11# -*- coding: future_fstrings -*-
2- # matrix-appservice-python - A Matrix Application Service framework written in Python.
3- # Copyright (C) 2018 Tulir Asokan
4- #
5- # This program is free software: you can redistribute it and/or modify
6- # it under the terms of the GNU General Public License as published by
7- # the Free Software Foundation, either version 3 of the License, or
8- # (at your option) any later version.
9- #
10- # This program is distributed in the hope that it will be useful,
11- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13- # GNU General Public License for more details.
14- #
15- # You should have received a copy of the GNU General Public License
16- # along with this program. If not, see <http://www.gnu.org/licenses/>.
172from typing import Optional
183import json
194import time
Original file line number Diff line number Diff line change 2424
2525 classifiers = [
2626 "Development Status :: 4 - Beta" ,
27- "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) " ,
27+ "License :: OSI Approved :: MIT License" ,
2828 "Topic :: Communications :: Chat" ,
2929 "Programming Language :: Python" ,
3030 "Programming Language :: Python :: 3" ,
You can’t perform that action at this time.
0 commit comments