aprsd 3.3.3__py2.py3-none-any.whl → 3.3.4__py2.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.
aprsd/main.py CHANGED
@@ -122,10 +122,25 @@ def check_version(ctx):
122
122
  def sample_config(ctx):
123
123
  """Generate a sample Config file from aprsd and all installed plugins."""
124
124
 
125
+ def _get_selected_entry_points():
126
+ import sys
127
+ if sys.version_info < (3, 10):
128
+ all = imp.entry_points()
129
+ selected = []
130
+ if "oslo.config.opts" in all:
131
+ for x in all["oslo.config.opts"]:
132
+ if x.group == "oslo.config.opts":
133
+ selected.append(x)
134
+ else:
135
+ selected = imp.entry_points(group="oslo.config.opts")
136
+
137
+ return selected
138
+
125
139
  def get_namespaces():
126
140
  args = []
127
141
 
128
- selected = imp.entry_points(group="oslo.config.opts")
142
+ # selected = imp.entry_points(group="oslo.config.opts")
143
+ selected = _get_selected_entry_points()
129
144
  for entry in selected:
130
145
  if "aprsd" in entry.name:
131
146
  args.append("--namespace")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aprsd
3
- Version: 3.3.3
3
+ Version: 3.3.4
4
4
  Summary: Amateur radio APRS daemon which listens for messages and responds
5
5
  Home-page: http://aprsd.readthedocs.org
6
6
  Author: Craig Lamparter
@@ -2,7 +2,7 @@ aprsd/__init__.py,sha256=GiMknvhvMBWeMsJXiBS8slVBJdwX9h3FjnXqGjm8YZM,631
2
2
  aprsd/cli_helper.py,sha256=AgSSn6oTUdCDv4Ne1Jyg_0bi7GwINBBKotTLk_QE-cY,4568
3
3
  aprsd/client.py,sha256=7NI_xFUoPaAyVHMIogpedZjWhMZaK5ZYEQWsk9aAukQ,10072
4
4
  aprsd/exception.py,sha256=FyeehwYENwsRKyrU2WmgEPmcHsDLjdGRAe35f01Bu5A,502
5
- aprsd/main.py,sha256=ydcJg8xXAJ1sWs84JcZlMaNGW-xzM9yIzSOwcCqtbOc,4535
5
+ aprsd/main.py,sha256=k8XKDRc8JiSoUn5IkY1n0I4tW49ED-83ZQtK2OJjZQk,5039
6
6
  aprsd/messaging.py,sha256=0zE2y0jJBTxTwwgt8_XmSeMZfBTO77ZBY0GyGe8DX_w,134
7
7
  aprsd/plugin.py,sha256=Y6MygWrv_dmx2s-1qQcr_u1mM36wqItWZDI-eUy1vgQ,16435
8
8
  aprsd/plugin_utils.py,sha256=xKQbliwikJxw_E5TGK_BcBPXkHeJ1PqVxSCFcDbf1xg,2507
@@ -56,10 +56,8 @@ aprsd/threads/keep_alive.py,sha256=KqX3weVSsGcKfiaKTCN8ZD0QSxYCxIVnWWXsYvbOvvE,4
56
56
  aprsd/threads/log_monitor.py,sha256=iZgNIkG1YNN3UDXVu1T45oSAuDtjtzbJEglxR_lEiKw,2036
57
57
  aprsd/threads/registry.py,sha256=5DuzNSwhOEwI0Gl5j9e286uqbxzKLSHzInfPy61r7PI,1702
58
58
  aprsd/threads/rx.py,sha256=5P8m27lzDB0qjobQLk8b8XYSxxksjVqXC6XO3Tgml0I,12592
59
- aprsd/threads/store.py,sha256=LyuILI-KtVjPeLsTVj7dS_EpkjWgIQscrQ6kG9av8Jg,713
60
59
  aprsd/threads/tx.py,sha256=Y_t22O_kPuLJH_vN2zsnxdtgWLpWDrZm07wN2fKlX-w,7694
61
60
  aprsd/utils/__init__.py,sha256=Fch1kI87ErUqJP0yoi0ZPGrzc-agAg3dy_zSo_U38Ec,4159
62
- aprsd/utils/converters.py,sha256=1SwbX097MQOM9BGfuUtpbMUe1vmHKFw-IqLjPYmR6P4,492
63
61
  aprsd/utils/counter.py,sha256=oKCH1ID0BOJJ3SyDLhXzpBLAeHOoPnYQW9gaeu8wcF4,1156
64
62
  aprsd/utils/fuzzyclock.py,sha256=qKV8SYZhQGOHG9biF8TeueLb6RMppspx1Zg4IOy1Z10,3265
65
63
  aprsd/utils/json.py,sha256=I5PFv02rZTB15qbdhEKIwwT1j-glQaVboLJS7Xp8J60,1871
@@ -124,10 +122,10 @@ aprsd/web/chat/static/js/upstream/socket.io.min.js,sha256=dYF5MG5zs6ekpbIOXBXelJ
124
122
  aprsd/web/chat/static/json-viewer/jquery.json-viewer.css,sha256=rXfxviikI1RGZM3px6piq9ZL0YZuO5ETcO8-toY-DDY,1080
125
123
  aprsd/web/chat/static/json-viewer/jquery.json-viewer.js,sha256=klSHtWPkZv4zG4darvDEpAQ9hJFDqNbQrM-xDChm8Fo,5020
126
124
  aprsd/web/chat/templates/index.html,sha256=vxa0VV3ZIGfv8x1VwCeamJhdyNQ1QpsU_tNHoIrBTXs,6566
127
- aprsd-3.3.3.dist-info/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
128
- aprsd-3.3.3.dist-info/METADATA,sha256=sZG1iZ9RmZ8mPgv29axDHnyrdw3PrWIsyiJYUz_7N10,24038
129
- aprsd-3.3.3.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
130
- aprsd-3.3.3.dist-info/entry_points.txt,sha256=4fReoJUB-bFqOUK6eeXYYCvTdVLprL7KVH0hWQRP9eM,171
131
- aprsd-3.3.3.dist-info/pbr.json,sha256=QW-UmK79ahf_eTbJJme1hu6rvqcm_4f2AwmkBknqWDg,46
132
- aprsd-3.3.3.dist-info/top_level.txt,sha256=v1O96niUcJOTMh9aQnFRknbScJ6mMOwqurdbxeaeSjs,6
133
- aprsd-3.3.3.dist-info/RECORD,,
125
+ aprsd-3.3.4.dist-info/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
126
+ aprsd-3.3.4.dist-info/METADATA,sha256=CHR05alacBKAumQQUWPJmwiZcHtVaSNHzGFZ6M5U8-A,24038
127
+ aprsd-3.3.4.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
128
+ aprsd-3.3.4.dist-info/entry_points.txt,sha256=4fReoJUB-bFqOUK6eeXYYCvTdVLprL7KVH0hWQRP9eM,171
129
+ aprsd-3.3.4.dist-info/pbr.json,sha256=_LwwZs6tXA94UTnjKrukxyjIGEbz1ZF0J3bO7VQGdy8,46
130
+ aprsd-3.3.4.dist-info/top_level.txt,sha256=v1O96niUcJOTMh9aQnFRknbScJ6mMOwqurdbxeaeSjs,6
131
+ aprsd-3.3.4.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "e9febbb", "is_release": true}
aprsd/threads/store.py DELETED
@@ -1,30 +0,0 @@
1
- import logging
2
- import time
3
- from typing import List
4
-
5
- from oslo_config import cfg
6
-
7
- from aprsd.threads import APRSDThread
8
- from aprsd.utils import objectstore
9
-
10
-
11
- CONF = cfg.CONF
12
- LOG = logging.getLogger("APRSD")
13
-
14
-
15
- class APRSDStoreThread(APRSDThread):
16
- """save object store instances to disk periodically."""
17
-
18
- save_interval = 10
19
-
20
- def __init__(self, obj_list: List[objectstore.ObjectStoreMixin]):
21
- super().__init__("STORE")
22
- self.obj_list = obj_list
23
-
24
- def loop(self):
25
- if self.loop_interval % self.save_interval == 0:
26
- for obj in self.obj_list:
27
- LOG.debug(f"Saving {obj.__class__.__name__}")
28
- obj.save()
29
- time.sleep(1)
30
- return True
aprsd/utils/converters.py DELETED
@@ -1,15 +0,0 @@
1
- from datafiles import converters
2
- from datetime import datetime
3
-
4
-
5
- class MyDateTime(converters.Converter, datetime):
6
-
7
- @classmethod
8
- def to_preserialization_data(cls, python_value, **kwargs):
9
- # Convert `datetime` to a value that can be serialized
10
- return python_value.isoformat()
11
-
12
- @classmethod
13
- def to_python_value(cls, deserialized_data, **kwargs):
14
- # Convert file value back into a `datetime` object
15
- return datetime.fromisoformat(deserialized_data)
@@ -1 +0,0 @@
1
- {"git_version": "fac94e0", "is_release": true}
File without changes
File without changes