moat-link-server 0.1.0__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.
- moat_link_server-0.1.0/LICENSE.txt +14 -0
- moat_link_server-0.1.0/PKG-INFO +56 -0
- moat_link_server-0.1.0/README.rst +6 -0
- moat_link_server-0.1.0/moat/link/server/__init__.py +16 -0
- moat_link_server-0.1.0/moat/link/server/_cfg.yaml +24 -0
- moat_link_server-0.1.0/moat/link/server/_server.py +1732 -0
- moat_link_server-0.1.0/moat_link_server.egg-info/PKG-INFO +56 -0
- moat_link_server-0.1.0/moat_link_server.egg-info/SOURCES.txt +11 -0
- moat_link_server-0.1.0/moat_link_server.egg-info/dependency_links.txt +1 -0
- moat_link_server-0.1.0/moat_link_server.egg-info/requires.txt +40 -0
- moat_link_server-0.1.0/moat_link_server.egg-info/top_level.txt +1 -0
- moat_link_server-0.1.0/pyproject.toml +131 -0
- moat_link_server-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
The code in this repository, and all MoaT submodules it refers to,
|
|
2
|
+
is part of the MoaT project.
|
|
3
|
+
|
|
4
|
+
Unless a submodule's LICENSE.txt states otherwise, all included files are
|
|
5
|
+
licensed under the LGPL V3, as published by the FSF at
|
|
6
|
+
https://www.gnu.org/licenses/lgpl-3.0.html .
|
|
7
|
+
|
|
8
|
+
In addition to the LGPL's terms, the author(s) respectfully ask all users of
|
|
9
|
+
this code to contribute any bug fixes or enhancements. Also, please link back to
|
|
10
|
+
https://M-o-a-T.org.
|
|
11
|
+
|
|
12
|
+
Thank you.
|
|
13
|
+
|
|
14
|
+
Copyright © 2021 ff.: the MoaT contributor(s), as per the git changelog(s).
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: moat-link-server
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Message exchange between MoaT instances
|
|
5
|
+
Author-email: Matthias Urlichs <matthias@urlichs.de>
|
|
6
|
+
Project-URL: homepage, https://m-o-a-t.org
|
|
7
|
+
Project-URL: repository, https://github.com/M-o-a-T/moat
|
|
8
|
+
Keywords: MoaT
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Framework :: AsyncIO
|
|
12
|
+
Classifier: Framework :: Trio
|
|
13
|
+
Classifier: Framework :: AnyIO
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Requires-Python: >=3.8
|
|
16
|
+
Description-Content-Type: text/x-rst
|
|
17
|
+
License-File: LICENSE.txt
|
|
18
|
+
Requires-Dist: anyio~=4.2
|
|
19
|
+
Requires-Dist: asyncclick
|
|
20
|
+
Requires-Dist: attrs
|
|
21
|
+
Requires-Dist: msgpack
|
|
22
|
+
Requires-Dist: outcome
|
|
23
|
+
Requires-Dist: ruyaml
|
|
24
|
+
Requires-Dist: simpleeval
|
|
25
|
+
Requires-Dist: moat-util~=0.56.4
|
|
26
|
+
Requires-Dist: moat-lib-cmd~=0.3.3
|
|
27
|
+
Requires-Dist: moat-link~=0.1.0
|
|
28
|
+
Provides-Extra: event
|
|
29
|
+
Requires-Dist: attr; extra == "event"
|
|
30
|
+
Requires-Dist: outcome; extra == "event"
|
|
31
|
+
Provides-Extra: main
|
|
32
|
+
Requires-Dist: asyncclick; extra == "main"
|
|
33
|
+
Requires-Dist: getpass; extra == "main"
|
|
34
|
+
Provides-Extra: msg
|
|
35
|
+
Requires-Dist: msgpack; extra == "msg"
|
|
36
|
+
Provides-Extra: path
|
|
37
|
+
Requires-Dist: simpleeval; extra == "path"
|
|
38
|
+
Provides-Extra: queue
|
|
39
|
+
Requires-Dist: outcome; extra == "queue"
|
|
40
|
+
Provides-Extra: systemd
|
|
41
|
+
Requires-Dist: systemd.daemon; extra == "systemd"
|
|
42
|
+
Provides-Extra: yaml
|
|
43
|
+
Requires-Dist: ruyaml; extra == "yaml"
|
|
44
|
+
Provides-Extra: time
|
|
45
|
+
Requires-Dist: calendar; extra == "time"
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: flake8; extra == "dev"
|
|
48
|
+
Requires-Dist: isort; extra == "dev"
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
|
|
51
|
+
====================
|
|
52
|
+
The MoaT-Link Server
|
|
53
|
+
====================
|
|
54
|
+
|
|
55
|
+
MoaT-Link requires a data server for history logging, retrieval of
|
|
56
|
+
non-retained messages, background message translation, and more.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# pylint: disable=W0703,C0103
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
from importlib.metadata import version
|
|
8
|
+
|
|
9
|
+
_version = version("moat.link.server")
|
|
10
|
+
_version_tuple = tuple(int(x) for x in _version.split("."))
|
|
11
|
+
|
|
12
|
+
except Exception: # pragma: no cover
|
|
13
|
+
_version = "0.0.1"
|
|
14
|
+
_version_tuple = (0, 0, 1)
|
|
15
|
+
|
|
16
|
+
from ._server import Server as Server
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
save:
|
|
2
|
+
dir: "/var/lib/moat/link/data"
|
|
3
|
+
name: "%Y-%m/%d-%H-%M.save"
|
|
4
|
+
interval: 1000
|
|
5
|
+
|
|
6
|
+
timeout:
|
|
7
|
+
monitor: 0.5
|
|
8
|
+
refresh: 100
|
|
9
|
+
startup: 30
|
|
10
|
+
standalone: true
|
|
11
|
+
|
|
12
|
+
# the AsyncActor config for syncing servers
|
|
13
|
+
ping:
|
|
14
|
+
cycle: 50
|
|
15
|
+
gap: 5
|
|
16
|
+
|
|
17
|
+
# the server probing its client
|
|
18
|
+
ping_timeout: 3
|
|
19
|
+
|
|
20
|
+
ports:
|
|
21
|
+
main:
|
|
22
|
+
host: 127.0.0.1
|
|
23
|
+
port: 27587
|
|
24
|
+
|