tradedangerous 10.14.2__py3-none-any.whl → 10.14.3__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.
Potentially problematic release.
This version of tradedangerous might be problematic. Click here for more details.
- tradedangerous/gui.py +1 -0
- tradedangerous/plugins/spansh_plug.py +15 -5
- tradedangerous/version.py +1 -1
- {tradedangerous-10.14.2.dist-info → tradedangerous-10.14.3.dist-info}/METADATA +1 -1
- {tradedangerous-10.14.2.dist-info → tradedangerous-10.14.3.dist-info}/RECORD +9 -9
- {tradedangerous-10.14.2.dist-info → tradedangerous-10.14.3.dist-info}/LICENSE +0 -0
- {tradedangerous-10.14.2.dist-info → tradedangerous-10.14.3.dist-info}/WHEEL +0 -0
- {tradedangerous-10.14.2.dist-info → tradedangerous-10.14.3.dist-info}/entry_points.txt +0 -0
- {tradedangerous-10.14.2.dist-info → tradedangerous-10.14.3.dist-info}/top_level.txt +0 -0
tradedangerous/gui.py
CHANGED
|
@@ -9,7 +9,7 @@ import requests
|
|
|
9
9
|
import simdjson
|
|
10
10
|
import sqlite3
|
|
11
11
|
|
|
12
|
-
from .. import plugins
|
|
12
|
+
from .. import plugins, cache, fs
|
|
13
13
|
|
|
14
14
|
SOURCE_URL = 'https://downloads.spansh.co.uk/galaxy_stations.json'
|
|
15
15
|
|
|
@@ -55,12 +55,14 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
55
55
|
pluginOptions = {
|
|
56
56
|
'url': f'URL to download galaxy data from (defaults to {SOURCE_URL})',
|
|
57
57
|
'file': 'Local filename to import galaxy data from; use "-" to load from stdin',
|
|
58
|
+
'listener': 'For use by TD-listener, prevents updating cache from generated prices file',
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
def __init__(self, *args, **kwargs):
|
|
61
62
|
super().__init__(*args, **kwargs)
|
|
62
63
|
self.url = self.getOption('url')
|
|
63
64
|
self.file = self.getOption('file')
|
|
65
|
+
self.listener = self.getOption('listener')
|
|
64
66
|
assert not (self.url and self.file), 'Provide either url or file, not both'
|
|
65
67
|
if self.file and (self.file != '-'):
|
|
66
68
|
self.file = (Path(self.tdenv.cwDir) / self.file).resolve()
|
|
@@ -71,12 +73,13 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
71
73
|
return self.tdenv.uprint(*args, **kwargs)
|
|
72
74
|
|
|
73
75
|
def run(self):
|
|
74
|
-
|
|
76
|
+
fs.ensurefolder(self.tdenv.tmpDir)
|
|
77
|
+
filePath = self.tdenv.tmpDir / Path("spansh.prices")
|
|
75
78
|
if self.tdenv.detail < 1:
|
|
76
79
|
self.print('This will take at least several minutes...')
|
|
77
80
|
self.print('You can increase verbosity (-v) to get a sense of progress')
|
|
78
|
-
with open(
|
|
79
|
-
self.print(f'Writing prices to {
|
|
81
|
+
with open(filePath, 'w') as f, Timing() as timing:
|
|
82
|
+
self.print(f'Writing prices to {filePath}')
|
|
80
83
|
f.write('# Generated from spansh galaxy data\n')
|
|
81
84
|
f.write(f'# Source: {self.file or self.url}\n')
|
|
82
85
|
f.write('#\n')
|
|
@@ -143,7 +146,14 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
143
146
|
f'{timedelta(seconds=int(timing.elapsed))!s} Done '
|
|
144
147
|
f'{total_station_count} st {total_commodity_count} co'
|
|
145
148
|
)
|
|
146
|
-
|
|
149
|
+
|
|
150
|
+
if not self.listener:
|
|
151
|
+
with Timing() as timing:
|
|
152
|
+
self.print('Importing to cache...')
|
|
153
|
+
self.tdenv.mergeImport = True
|
|
154
|
+
cache.importDataFromFile(self.tdb, self.tdenv, filePath)
|
|
155
|
+
self.print(f'Cache import completed in {timedelta(seconds=int(timing.elapsed))!s}')
|
|
156
|
+
return False
|
|
147
157
|
|
|
148
158
|
def data_stream(self):
|
|
149
159
|
if self.file == '-':
|
tradedangerous/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tradedangerous
|
|
3
|
-
Version: 10.14.
|
|
3
|
+
Version: 10.14.3
|
|
4
4
|
Summary: Trade-Dangerous is a set of powerful trading tools for Elite Dangerous, organized around one of the most powerful trade run optimizers available.
|
|
5
5
|
Home-page: https://github.com/eyeonus/Trade-Dangerous
|
|
6
6
|
Author: eyeonus
|
|
@@ -7,7 +7,7 @@ tradedangerous/edscupdate.py,sha256=-aglmhmtCKYrUyYKO1SBs4xmEHafTL4CjVeAt8uproU,
|
|
|
7
7
|
tradedangerous/edsmupdate.py,sha256=GesavwY7rI5tuoTTMrM8sjYSN50QaPsDqKR2rrVbRZk,14924
|
|
8
8
|
tradedangerous/formatting.py,sha256=3uqO9zHOTdfgZdFfhhL32gK_jIpliYOPhJocY5C1cfU,6162
|
|
9
9
|
tradedangerous/fs.py,sha256=zVh5dF9dnJB0WLPSGX1KlJ8Sgqff5my3wer7m_4ddwM,2530
|
|
10
|
-
tradedangerous/gui.py,sha256=
|
|
10
|
+
tradedangerous/gui.py,sha256=gHGiFSmprQNNYWewRVqdV22XK1EIt9eODnpgVrL3imA,44101
|
|
11
11
|
tradedangerous/jsonprices.py,sha256=AQ2YFMc18s-KdvXAGZnYDw2bNbfBksWnM-vXRS8IP70,7013
|
|
12
12
|
tradedangerous/mapping.py,sha256=RNjZy5hpokFVFDw_KkOUELmT4fPJC1RZiN9D8ZeAu5o,4034
|
|
13
13
|
tradedangerous/prices.py,sha256=AcETd8b-lKwuyyx6cTud2jyoQLPZaxMuGgQNI9N-SYU,7593
|
|
@@ -21,7 +21,7 @@ tradedangerous/tradeexcept.py,sha256=aZ-Y31MbkjF7lmAzBAbaMsPPE7FEEfuf4gaX2GvriDk
|
|
|
21
21
|
tradedangerous/tradegui.py,sha256=JbGFnsWupgesk6hrcUgKSdD9NNDyo0U9gh6m3DccAwU,782
|
|
22
22
|
tradedangerous/transfers.py,sha256=NmXXk2aF88YkAvYqc9Syt_aO6d2jJjC-OxoRFoOyQH4,9923
|
|
23
23
|
tradedangerous/utils.py,sha256=PUPvAEqUyxYGqqQa0b_yfLAvq8YVUxK6HfdS-CxM-Lo,5186
|
|
24
|
-
tradedangerous/version.py,sha256=
|
|
24
|
+
tradedangerous/version.py,sha256=VBIRuG9loKYCnGzK0E0bfus4x6vzyFHvezJnZoIiXl8,647
|
|
25
25
|
tradedangerous/commands/TEMPLATE.py,sha256=7oXL124aqxGHwnb0h9yRylUiwc6M5QrRrGVrubwI1gg,2124
|
|
26
26
|
tradedangerous/commands/__init__.py,sha256=6B0WuqkFBOll5Hj67yKDAnhmyr5ZAnHc6nzUNEUh384,9640
|
|
27
27
|
tradedangerous/commands/buildcache_cmd.py,sha256=oJvP06fA8svnHrfrpWkHKR16cba8GIhHdMOyZqds18Y,2332
|
|
@@ -66,14 +66,14 @@ tradedangerous/plugins/eddblink_plug.py,sha256=n8AzLh2pJdHdar1SnqSSjCwWPl4f-OKQ8
|
|
|
66
66
|
tradedangerous/plugins/edmc_batch_plug.py,sha256=3Ptr-SZqaZFR8ViIIrp9Ak7rvfU3zl11AZYBhIceN7s,4224
|
|
67
67
|
tradedangerous/plugins/journal_plug.py,sha256=K1oIeI7E3mb04fvYLXyoAh7fOTyM9NBelibTI88MIDQ,23696
|
|
68
68
|
tradedangerous/plugins/netlog_plug.py,sha256=Gw_HSZWpN17D--OIYEM3Vo8y9SvDOv9UwAUfY24kz28,13460
|
|
69
|
-
tradedangerous/plugins/spansh_plug.py,sha256=
|
|
69
|
+
tradedangerous/plugins/spansh_plug.py,sha256=ngG0CFpXJYBcR4e_p5U6h4JJlLEpHem5eJ-8oBENP54,15024
|
|
70
70
|
tradedangerous/templates/Added.csv,sha256=8o54civQCcS9y7_DBo0GX196XWRbbREQqKDYTKibsgQ,649
|
|
71
71
|
tradedangerous/templates/DefaultShipIndex.json,sha256=m5cI3vkKiqRk1VKO1Z_8LZrG9nczV0PUMDfBSt4-1RM,94739
|
|
72
72
|
tradedangerous/templates/RareItem.csv,sha256=F1RhRnTD82PiwrVUO-ai2ErGH2PTqNnQaDw5mcgljXs,10483
|
|
73
73
|
tradedangerous/templates/TradeDangerous.sql,sha256=6sjEogGHy-9zYpjPo0Y2a5tElowmHFyJNwrimOUBfHk,8079
|
|
74
|
-
tradedangerous-10.14.
|
|
75
|
-
tradedangerous-10.14.
|
|
76
|
-
tradedangerous-10.14.
|
|
77
|
-
tradedangerous-10.14.
|
|
78
|
-
tradedangerous-10.14.
|
|
79
|
-
tradedangerous-10.14.
|
|
74
|
+
tradedangerous-10.14.3.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
75
|
+
tradedangerous-10.14.3.dist-info/METADATA,sha256=-Lda3u808UY_L8LOjux9wCHS01kw1JkQgV4QlxjetEE,4421
|
|
76
|
+
tradedangerous-10.14.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
77
|
+
tradedangerous-10.14.3.dist-info/entry_points.txt,sha256=pSwa-q0ob443uiKux7xFKYQl8uen66iDTnjdrQhNLx8,92
|
|
78
|
+
tradedangerous-10.14.3.dist-info/top_level.txt,sha256=bF29i-oEltmNICgElEKxNsg83oahJvxg3a7YrxZi9Rk,15
|
|
79
|
+
tradedangerous-10.14.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|