mapget 0.1.0__cp310-cp310-win_amd64.whl → 0.3.0__cp310-cp310-win_amd64.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.
Potentially problematic release.
This version of mapget might be problematic. Click here for more details.
- mapget/__init__.py +1 -1
- mapget/__main__.py +4 -43
- mapget/libcrypto-1_1-x64.dll +0 -0
- mapget/libssl-1_1-x64.dll +0 -0
- mapget/mapget-http-datasource.lib +0 -0
- mapget/mapget-model.lib +0 -0
- mapget/pymapget.cp310-win_amd64.pyd +0 -0
- {mapget-0.1.0.dist-info → mapget-0.3.0.dist-info}/METADATA +1 -1
- mapget-0.3.0.dist-info/RECORD +12 -0
- {mapget-0.1.0.dist-info → mapget-0.3.0.dist-info}/WHEEL +1 -1
- mapget-0.3.0.dist-info/top_level.txt +2 -0
- mapget/mapget.cp310-win_amd64.pyd +0 -0
- mapget-0.1.0.dist-info/RECORD +0 -13
- mapget-0.1.0.dist-info/top_level.txt +0 -1
- mapget.cp310-win_amd64.pyd +0 -0
mapget/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
from .
|
|
1
|
+
from .pymapget import *
|
mapget/__main__.py
CHANGED
|
@@ -1,46 +1,7 @@
|
|
|
1
|
-
import argparse
|
|
2
1
|
import mapget
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def server(args):
|
|
6
|
-
print(f'Starting server on port {args.port} with datasources {args.datasource}')
|
|
7
|
-
srv = mapget.Service()
|
|
8
|
-
if args.datasource:
|
|
9
|
-
for ds in args.datasource:
|
|
10
|
-
host, port = ds.split(":")
|
|
11
|
-
srv.add_remote_datasource(host, int(port))
|
|
12
|
-
srv.go(port=args.port)
|
|
13
|
-
srv.wait_for_signal()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def client(args):
|
|
17
|
-
print(f'Connecting client to server {args.server} for map {args.map} and layer {args.layer} with tiles {args.tile}')
|
|
18
|
-
raise NotImplementedError()
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def main():
|
|
22
|
-
parser = argparse.ArgumentParser(prog="mapget", description="A client/server application for map data retrieval.")
|
|
23
|
-
|
|
24
|
-
subparsers = parser.add_subparsers()
|
|
25
|
-
|
|
26
|
-
server_parser = subparsers.add_parser('server', help="Starts the server.")
|
|
27
|
-
server_parser.add_argument('-p', '--port', type=int, default=0, help="Port to start the server on. Default is 0.")
|
|
28
|
-
server_parser.add_argument('-d', '--datasource', action='append', help="Datasources for the server in format <host:port>. Can be specified multiple times.")
|
|
29
|
-
server_parser.set_defaults(func=server)
|
|
30
|
-
|
|
31
|
-
client_parser = subparsers.add_parser('client', help="Connects to the server.")
|
|
32
|
-
client_parser.add_argument('-s', '--server', required=True, help="Server to connect to in format <host:port>.")
|
|
33
|
-
client_parser.add_argument('-m', '--map', required=True, help="Map to retrieve.")
|
|
34
|
-
client_parser.add_argument('-l', '--layer', help="Layer of the map to retrieve.")
|
|
35
|
-
client_parser.add_argument('-t', '--tile', type=int, required=True, action='append', help="Tile of the map to retrieve. Can be specified multiple times.")
|
|
36
|
-
client_parser.set_defaults(func=client)
|
|
37
|
-
|
|
38
|
-
args = parser.parse_args()
|
|
39
|
-
if hasattr(args, 'func'):
|
|
40
|
-
args.func(args)
|
|
41
|
-
else:
|
|
42
|
-
parser.print_help()
|
|
43
|
-
|
|
2
|
+
import sys
|
|
3
|
+
import time
|
|
44
4
|
|
|
45
5
|
if __name__ == "__main__":
|
|
46
|
-
|
|
6
|
+
ret_code = mapget.run(sys.argv[1:])
|
|
7
|
+
exit(ret_code)
|
mapget/libcrypto-1_1-x64.dll
CHANGED
|
Binary file
|
mapget/libssl-1_1-x64.dll
CHANGED
|
Binary file
|
|
Binary file
|
mapget/mapget-model.lib
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
mapget/LICENSE.txt,sha256=82HFE2tG6k1v7YD065fi3PSy0tCuV68AM7WXaA4Y2Mc,1557
|
|
2
|
+
mapget/__init__.py,sha256=4BQ2UpmtSoX0x1dlQphfbboyPCDmEOruyuOTVc9niGQ,23
|
|
3
|
+
mapget/__main__.py,sha256=wilDqhPOEYqSkq9elYF7IejY-ILzxf1JFCw-sO80t84,131
|
|
4
|
+
mapget/libcrypto-1_1-x64.dll,sha256=EwcdxyqXzzyE-nVHFMmfO5HzqnhDk5lEAb7Ap4ac21E,3412992
|
|
5
|
+
mapget/libssl-1_1-x64.dll,sha256=a6g3zouv4rrVlRZPFLw-hZBeXH_oigoO-5miup8CX3I,686080
|
|
6
|
+
mapget/mapget-http-datasource.lib,sha256=al-x6aWDj6mpqa0iQwr1vgZathkZY1odYhx3snB2AYM,6993160
|
|
7
|
+
mapget/mapget-model.lib,sha256=cm4TTV9h3SckVA0l6-SD9djw6nW6e3HrcaM9u1Zbk14,5518910
|
|
8
|
+
mapget/pymapget.cp310-win_amd64.pyd,sha256=WmIfiIqIdaEwIpSf6GVhq8WPccG-e0jFAdxprmyuMII,6170624
|
|
9
|
+
mapget-0.3.0.dist-info/METADATA,sha256=Sg-W7-gxClSjJx1pnI9Z_5xoSXXHr4Dfm4yvbr4BTKQ,234
|
|
10
|
+
mapget-0.3.0.dist-info/WHEEL,sha256=5JPYeYl5ZdvdSkrGS4u21mmpPzpFx42qrXOSIgWf4pg,102
|
|
11
|
+
mapget-0.3.0.dist-info/top_level.txt,sha256=W-teDHSWuhlJr1wYlLvI3fWF1H42P9Etok_NjWZ9tsQ,16
|
|
12
|
+
mapget-0.3.0.dist-info/RECORD,,
|
|
Binary file
|
mapget-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
mapget.cp310-win_amd64.pyd,sha256=h_qWmOzszgFkrYS0PYREtDwDPkQUG5QhxPHbiB9K2sQ,1403904
|
|
2
|
-
mapget/LICENSE.txt,sha256=82HFE2tG6k1v7YD065fi3PSy0tCuV68AM7WXaA4Y2Mc,1557
|
|
3
|
-
mapget/__init__.py,sha256=Ui0ksxBpKKOpNCCnuk8sDNjF_TTls5gqQXRRjNr4rfo,21
|
|
4
|
-
mapget/__main__.py,sha256=FfLD_LYRIOMxLHG05eLUdqI0JDzze0V7Pf8Hvr_r_A8,1906
|
|
5
|
-
mapget/libcrypto-1_1-x64.dll,sha256=luO755txrsAa57nCHQY-Fr_7uYoLBEp8r_D9SA9REv4,3417600
|
|
6
|
-
mapget/libssl-1_1-x64.dll,sha256=j8k2jlbbPkT2hmcY6pESOIZQisIcCuI1CrjMTkgOVUo,686080
|
|
7
|
-
mapget/mapget-http-datasource.lib,sha256=k67_xcRYyI23UUOFxuq0pAQmY7NdUwTw4HKgxQBInGg,4500112
|
|
8
|
-
mapget/mapget-model.lib,sha256=49vqyWrOkfYxC2i_VUm5LMlz7WCfR3oyjikPbEV0-gs,4537696
|
|
9
|
-
mapget/mapget.cp310-win_amd64.pyd,sha256=h_qWmOzszgFkrYS0PYREtDwDPkQUG5QhxPHbiB9K2sQ,1403904
|
|
10
|
-
mapget-0.1.0.dist-info/METADATA,sha256=xqk3CmB1AbfxSoIcmF079XrMMKXZQg1BJssoNpMSq8E,234
|
|
11
|
-
mapget-0.1.0.dist-info/WHEEL,sha256=jrOhEbqKwvzRFSJcbYXlJCyVkgVdHg4_7__YHrdTUfw,102
|
|
12
|
-
mapget-0.1.0.dist-info/top_level.txt,sha256=b8nHQSACTRmu2oGH4FSZTfJwrZA3vbGLBo_okY1L6RM,7
|
|
13
|
-
mapget-0.1.0.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
mapget
|
mapget.cp310-win_amd64.pyd
DELETED
|
Binary file
|