tradedangerous 11.1.3__tar.gz → 11.1.5__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.
Potentially problematic release.
This version of tradedangerous might be problematic. Click here for more details.
- {tradedangerous-11.1.3/tradedangerous.egg-info → tradedangerous-11.1.5}/PKG-INFO +1 -1
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/trade.py +4 -4
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/formatting.py +4 -4
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/eddblink_plug.py +3 -28
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/version.py +1 -1
- {tradedangerous-11.1.3 → tradedangerous-11.1.5/tradedangerous.egg-info}/PKG-INFO +1 -1
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/LICENSE +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/README.md +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/pyproject.toml +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/setup.cfg +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/setup.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_bootstrap_commands.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_bootstrap_plugins.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_cache.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_commands.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_fs.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_peek.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_tools.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_trade.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_trade_run.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tests/test_utils.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/__init__.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/cache.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/cli.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/TEMPLATE.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/__init__.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/buildcache_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/buy_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/commandenv.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/exceptions.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/export_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/import_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/local_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/market_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/nav_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/olddata_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/parsing.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/rares_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/run_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/sell_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/shipvendor_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/station_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/trade_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/update_cmd.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/commands/update_gui.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/corrections.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/csvexport.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/edscupdate.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/edsmupdate.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/fs.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/gui.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/jsonprices.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/mapping.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/mfd/__init__.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/mfd/saitek/__init__.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/mfd/saitek/directoutput.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/mfd/saitek/x52pro.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/checkpricebounds.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/clipboard.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/coord64.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/derp-sentinel.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/diff-system-csvs.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/eddb.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/eddn.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/edsc.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/edsm.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/importeddbstats.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/prices-json-exp.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/misc/progress.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/__init__.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/edapi_plug.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/edcd_plug.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/edmc_batch_plug.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/journal_plug.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/netlog_plug.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/plugins/spansh_plug.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/prices.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/submit-distances.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/templates/Added.csv +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/templates/Category.csv +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/templates/RareItem.csv +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/templates/TradeDangerous.sql +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/tools.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/tradecalc.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/tradedb.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/tradeenv.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/tradeexcept.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/transfers.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous/utils.py +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/SOURCES.txt +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/dependency_links.txt +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/entry_points.txt +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/not-zip-safe +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/requires.txt +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/top_level.txt +0 -0
- {tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradegui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tradedangerous
|
|
3
|
-
Version: 11.1.
|
|
3
|
+
Version: 11.1.5
|
|
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
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
# to empower other programmers to do cool stuff.
|
|
36
36
|
from tradedangerous import cli
|
|
37
37
|
|
|
38
|
+
import sys
|
|
39
|
+
|
|
38
40
|
def main(argv = None):
|
|
39
|
-
|
|
40
|
-
cli.main(sys.argv)
|
|
41
|
+
cli.main(sys.argv)
|
|
41
42
|
|
|
42
43
|
if __name__ == "__main__":
|
|
43
|
-
|
|
44
|
-
cli.main(sys.argv)
|
|
44
|
+
cli.main(sys.argv)
|
|
@@ -199,7 +199,7 @@ if __name__ == '__main__':
|
|
|
199
199
|
print("Simple usage:")
|
|
200
200
|
present()
|
|
201
201
|
|
|
202
|
-
#print()
|
|
203
|
-
#print("Adding age ColumnFormat:")
|
|
204
|
-
#rowFmt.append(after='Name', col=ColumnFormat("Age", '>', 3, pre='|', post='|', key=lambda row: row['age']))
|
|
205
|
-
#present()
|
|
202
|
+
# print()
|
|
203
|
+
# print("Adding age ColumnFormat:")
|
|
204
|
+
# rowFmt.append(after='Name', col=ColumnFormat("Age", '>', 3, pre='|', post='|', key=lambda row: row['age']))
|
|
205
|
+
# present()
|
|
@@ -12,39 +12,18 @@ from ..plugins import PluginException
|
|
|
12
12
|
import certifi
|
|
13
13
|
import csv
|
|
14
14
|
import datetime
|
|
15
|
+
from email.utils import parsedate_to_datetime
|
|
15
16
|
import os
|
|
16
17
|
import requests
|
|
17
18
|
import sqlite3
|
|
18
19
|
import ssl
|
|
19
20
|
import typing
|
|
20
|
-
import locale
|
|
21
|
-
import platform
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
if typing.TYPE_CHECKING:
|
|
25
24
|
from typing import Optional
|
|
26
25
|
from .. tradeenv import TradeEnv
|
|
27
26
|
|
|
28
|
-
# Find the first English UTF-8 locale for use in parsing timestamps.
|
|
29
|
-
LOCALE = None
|
|
30
|
-
if platform.system() == 'Windows':
|
|
31
|
-
for lang in locale.windows_locale.values():
|
|
32
|
-
if "en" in lang:
|
|
33
|
-
LOCALE = lang
|
|
34
|
-
break
|
|
35
|
-
else:
|
|
36
|
-
# for other operating systems
|
|
37
|
-
for lang in locale.locale_alias.values():
|
|
38
|
-
if "en" in lang and "UTF-8" in lang:
|
|
39
|
-
LOCALE = lang
|
|
40
|
-
break
|
|
41
|
-
if not LOCALE:
|
|
42
|
-
raise PluginException(
|
|
43
|
-
"Unable to find compatible locale.\n" +
|
|
44
|
-
"This plugin needs an English, UTF-8 compatible " +
|
|
45
|
-
"locale installed in order to function correctly.\n" +
|
|
46
|
-
"Please refer to your OS for instructions installing one."
|
|
47
|
-
)
|
|
48
27
|
# Constants
|
|
49
28
|
BASE_URL = os.environ.get('TD_SERVER') or "https://elite.tromador.com/files/"
|
|
50
29
|
CONTEXT=ssl.create_default_context(cafile=certifi.where())
|
|
@@ -181,17 +160,15 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
181
160
|
# Use an HTTP Request header to obtain the Last-Modified and Content-Length headers.
|
|
182
161
|
# Also, tell the server to give us the un-compressed length of the file by saying
|
|
183
162
|
# that >this< request only wants text.
|
|
184
|
-
headers = {"User-Agent": "Trade-Dangerous", "Accept-Encoding": "
|
|
163
|
+
headers = {"User-Agent": "Trade-Dangerous", "Accept-Encoding": "identity"}
|
|
185
164
|
try:
|
|
186
165
|
response = requests.head(url, headers=headers, timeout=70)
|
|
187
166
|
except Exception as e: # pylint: disable=broad-exception-caught
|
|
188
167
|
self.tdenv.WARN("Problem with download:\n URL: {}\n Error: {}", url, str(e))
|
|
189
168
|
return False
|
|
190
169
|
|
|
191
|
-
locale.setlocale(locale.LC_ALL, LOCALE)
|
|
192
170
|
last_modified = response.headers.get("last-modified")
|
|
193
|
-
dump_mod_time =
|
|
194
|
-
locale.setlocale(locale.LC_ALL, '')
|
|
171
|
+
dump_mod_time = parsedate_to_datetime(last_modified).timestamp()
|
|
195
172
|
|
|
196
173
|
if Path.exists(localPath):
|
|
197
174
|
local_mod_time = localPath.stat().st_mtime
|
|
@@ -352,8 +329,6 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
352
329
|
self.tdenv.NOTE("Finished processing market data. End time = {}", self.now())
|
|
353
330
|
|
|
354
331
|
def run(self):
|
|
355
|
-
self.tdenv.DEBUG2(f'Using "{LOCALE}" locale for parsing modified timestamps. Please include this information in any error reports.')
|
|
356
|
-
|
|
357
332
|
self.tdenv.ignoreUnknown = True
|
|
358
333
|
|
|
359
334
|
# Create the /eddb folder for downloading the source files if it doesn't exist.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tradedangerous
|
|
3
|
-
Version: 11.1.
|
|
3
|
+
Version: 11.1.5
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tradedangerous-11.1.3 → tradedangerous-11.1.5}/tradedangerous.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|