tradedangerous 11.0.5__py3-none-any.whl → 11.0.6__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.

@@ -57,11 +57,11 @@ def run(results, cmdenv, tdb: TradeDB):
57
57
  if not cmdenv.force:
58
58
  if tdb.dbPath.exists():
59
59
  raise CommandLineError(
60
- "SQLite3 database '{tdb.dbFilename}' already exists.\n"
60
+ f"SQLite3 database '{tdb.dbFilename}' already exists.\n"
61
61
  "Either remove the file first or use the '-f' option.")
62
62
 
63
63
  if not tdb.sqlPath.exists():
64
- raise CommandLineError("SQL File does not exist: {tdb.sqlFilename}")
64
+ raise CommandLineError(f"SQL File does not exist: {tdb.sqlFilename}")
65
65
 
66
66
  buildCache(tdb, cmdenv)
67
67
 
@@ -1,8 +1,12 @@
1
- #!/usr/bin/env python3.6
1
+ from tradedangerous import tradedb
2
+ from tradedangerous.tradeexcept import TradeException
2
3
 
3
- import tradedb
4
- from tradeexcept import TradeException
5
4
  import json
5
+ import sys
6
+
7
+
8
+ sys.stderr.write("*** WARNING: jsonprices.py is deprecated; if you rely on it, please post a github issue\n")
9
+
6
10
 
7
11
  class UnknownSystemError(TradeException):
8
12
  def __str__(self):
@@ -12,6 +16,7 @@ class UnknownStationError(TradeException):
12
16
  def __str__(self):
13
17
  return "Unknown Station: " + ' '.join(self.args)
14
18
 
19
+
15
20
  def lookup_system(tdb, tdenv, name, x, y, z):
16
21
  try:
17
22
  system = tdb.systemByName[name.upper()]
@@ -112,6 +117,13 @@ def load_prices_json(
112
117
  blackMarket = '?'
113
118
  except KeyError:
114
119
  blackMarket = '?'
120
+
121
+ try:
122
+ maxPadSize = stnData['mps'].upper()
123
+ if maxPadSize not in ['S', 'M', 'L']:
124
+ maxPadSize = '?'
125
+ except KeyError:
126
+ maxPadSize = '?'
115
127
 
116
128
  system = lookup_system(
117
129
  tdb, tdenv,
@@ -139,6 +151,7 @@ def load_prices_json(
139
151
  stnName,
140
152
  lsFromStar,
141
153
  blackMarket,
154
+ maxPadSize,
142
155
  )
143
156
  if not station:
144
157
  if tdenv.ignoreUnknown:
@@ -129,7 +129,6 @@ class ImportPlugin(plugins.ImportPluginBase):
129
129
  "(Useful for updating Vendor tables if they were skipped during a '-O clean' run.)",
130
130
  'purge': "Remove any empty systems that previously had fleet carriers.",
131
131
  'solo': "Don't download crowd-sourced market data. (Implies '-O skipvend', supercedes '-O all', '-O clean', '-O listings'.)",
132
- "prices": "Backup listings to the TradeDangerous.prices cache file",
133
132
  }
134
133
 
135
134
  def __init__(self, tdb, tdenv):
@@ -499,7 +498,7 @@ class ImportPlugin(plugins.ImportPluginBase):
499
498
  if self.downloadFile(self.liveListingsPath) or self.getOption("force"):
500
499
  self.importListings(self.liveListingsPath)
501
500
 
502
- if self.getOption("prices"):
501
+ if self.getOption("listings"):
503
502
  self.tdenv.NOTE("Regenerating .prices file.")
504
503
  cache.regeneratePricesFile(self.tdb, self.tdenv)
505
504
 
@@ -374,6 +374,11 @@ class ImportPlugin(plugins.ImportPluginBase):
374
374
  f'{total_station_count} st {total_commodity_count} co'
375
375
  )
376
376
 
377
+ with Timing() as timing:
378
+ self.print('Exporting to cache...')
379
+ cache.regeneratePricesFile(self.tdb, self.tdenv)
380
+ self.print(f'Cache export completed in {timedelta(seconds=int(timing.elapsed))!s}')
381
+
377
382
  return False
378
383
 
379
384
  def data_stream(self):
@@ -21,8 +21,8 @@ import sys
21
21
  import tradedb
22
22
  import tradeenv
23
23
 
24
- from misc.edsc import StarSubmission, StarSubmissionResult, SubmissionError
25
- from misc.clipboard import SystemNameClip
24
+ from tradedangerous.misc.edsc import StarSubmission, StarSubmissionResult, SubmissionError
25
+ from tradedangerous.misc.clipboard import SystemNameClip
26
26
 
27
27
 
28
28
  standardStars = [
@@ -33,6 +33,10 @@ standardStars = [
33
33
  "ASELLUS AUSTRALIS",
34
34
  ]
35
35
 
36
+
37
+ sys.stderr.write("*** WARNING: submit-distances.py is deprecated; if you rely on it, please post a github issue\n")
38
+
39
+
36
40
  ############################################################################
37
41
 
38
42
 
tradedangerous/version.py CHANGED
@@ -12,5 +12,5 @@
12
12
  """just keeper of current version"""
13
13
 
14
14
  # TODO: remember to update tests when version changes
15
- __version__ = '11.0.5'
15
+ __version__ = '11.0.6'
16
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tradedangerous
3
- Version: 11.0.5
3
+ Version: 11.0.6
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
@@ -10,10 +10,10 @@ tradedangerous/edsmupdate.py,sha256=jpDUxUkDKxlG_gS3qWy5fg9p3mBPC-akU2pHSlfTPkI,
10
10
  tradedangerous/formatting.py,sha256=-FdlH1yMKPkqhpCtKmbl0chbyZ1VjKZsZ8OLc8v-Knc,6927
11
11
  tradedangerous/fs.py,sha256=_5OJHIRy_M-WFHEZO4g2EIgqDxdrz4s8tcdDmgG7NME,2494
12
12
  tradedangerous/gui.py,sha256=DFsF5zATr-lyJShL6t5kPKvcLLJYkICurzBz0WBa-oQ,43676
13
- tradedangerous/jsonprices.py,sha256=GAaNbfEs1LX_F5f69MiEhHIEwoGZtubGC8EQ9MM4B9A,6878
13
+ tradedangerous/jsonprices.py,sha256=V9Xm3pocQfEHoC38VYWomzbwX0wu9R2zJ2gB99JzYPQ,7212
14
14
  tradedangerous/mapping.py,sha256=eGBQeYPD04Kq_ygZCDRafKMGz9EnxSgXUzQU-u78_2A,4049
15
15
  tradedangerous/prices.py,sha256=JqiDVrtvvPd5pqE3HdwOHOuFgdAbOR-pt0GLD3ZIXM8,7425
16
- tradedangerous/submit-distances.py,sha256=EMpqxXFauo3oaR9OAnHCHCsrqwABK1nZdmg92m62zrk,11560
16
+ tradedangerous/submit-distances.py,sha256=zxHtRpX10soJKLuRcun9uelfXGq2S9jvIWxD--P9zus,11709
17
17
  tradedangerous/tools.py,sha256=pp-4WtA12SVaaQHFJFOMTF7EDFRCU2mQeOhC4xoXmEk,1331
18
18
  tradedangerous/tradecalc.py,sha256=A7peEMiaCjlwFvReSq3E7_Ar0shUoFedQi83ZmOc7uY,42075
19
19
  tradedangerous/tradedb.py,sha256=3nGB55dYs4igP3U3J4Ye1-M6Kt9A4xPAMmnX7JEDW7w,72220
@@ -21,10 +21,10 @@ tradedangerous/tradeenv.py,sha256=SDzRC6ERYZzzb_I6uexmFpFJJrnbzXa-1ogYt_GH26w,10
21
21
  tradedangerous/tradeexcept.py,sha256=aZ-Y31MbkjF7lmAzBAbaMsPPE7FEEfuf4gaX2GvriDk,368
22
22
  tradedangerous/transfers.py,sha256=88gIvXpjd8T6NLxBrBRzmH2IfUmDDtiMcDTrc7qF3OI,7830
23
23
  tradedangerous/utils.py,sha256=PUPvAEqUyxYGqqQa0b_yfLAvq8YVUxK6HfdS-CxM-Lo,5186
24
- tradedangerous/version.py,sha256=Ruo3PXeo9RbLy-XofnontsIw0ImQFoMJhP0mTVqQ3Jg,646
24
+ tradedangerous/version.py,sha256=BSZwwteRJKEewGrOC8xXBQh8tm89aQ-iSDuWzNALBS8,646
25
25
  tradedangerous/commands/TEMPLATE.py,sha256=MOE69xsZPHPIMBQ-LXicfsOlCZdy-2gPX_nlnwYYil8,2026
26
26
  tradedangerous/commands/__init__.py,sha256=3gz2cnXNZNkV1gtZh0dOnCRxBkQHbeIyysRe3bM2WEE,9516
27
- tradedangerous/commands/buildcache_cmd.py,sha256=_8vKu9e3tQy0HEPrnG8Ts0OoQ_kF6gZPQ9EOfTUd73w,2179
27
+ tradedangerous/commands/buildcache_cmd.py,sha256=jhNSqHX_xX43SiSUMFiKtWpB9v4oeZ0sqfNq6DCrjUs,2181
28
28
  tradedangerous/commands/buy_cmd.py,sha256=jfN1KwLVWAssx4MABgPD32BzP7FhhwIr2o62u6kpLc8,13597
29
29
  tradedangerous/commands/commandenv.py,sha256=lzPbxhrgx4PJL_x8pRdYu22rqtL4U6kNQ5ExXTPoAao,9462
30
30
  tradedangerous/commands/exceptions.py,sha256=xJib2n0YRSgrs8WhZX5IeVHM-XakS3YwfjlF8_cNx4E,3476
@@ -62,18 +62,18 @@ tradedangerous/misc/progress.py,sha256=NKvKP1OSCTpItc1CNxDuEH2A1oGJ6aWSyCdPSAjsG
62
62
  tradedangerous/plugins/__init__.py,sha256=TL-OIptlqNENKhoFqkFeBJn_vSw8L0pVaDJgjhaTj7A,7860
63
63
  tradedangerous/plugins/edapi_plug.py,sha256=5nqBYmjUceAt-KTfiBn7IEl443R1SsGLDmfVXgbcyms,42262
64
64
  tradedangerous/plugins/edcd_plug.py,sha256=JuDtuEM_mN9Sz2H09-qYizM-9N3cuNjgvQy7Y-wHwKw,14412
65
- tradedangerous/plugins/eddblink_plug.py,sha256=EWJrVn5twwPVT-vGicmWuL4NAwf69G_0mw9lnjzn1Xw,21606
65
+ tradedangerous/plugins/eddblink_plug.py,sha256=m1fSG9YQZZcJZhGzEk4y_OyAMK-psczZ-WxJ5JwxSbA,21525
66
66
  tradedangerous/plugins/edmc_batch_plug.py,sha256=rrP_lFFxWsba8DPEo0WF2EdCiMoRC7tCT8z62MIvtIo,4173
67
67
  tradedangerous/plugins/journal_plug.py,sha256=5HMyoxQ7z42qj7NiL8rDxSyTN9gKikoQjyWzJLD-SYQ,23746
68
68
  tradedangerous/plugins/netlog_plug.py,sha256=yUl47l9xt3kGj9oSiY_FZaDGdnQj63oa9MBtSeIy1Zo,13469
69
- tradedangerous/plugins/spansh_plug.py,sha256=RoqCapz_nL4tqCJuN-mYDYbo99TlsXXZVwvTBXDhJNc,26801
69
+ tradedangerous/plugins/spansh_plug.py,sha256=FiIS9cN2_8VKDrAj8yvkdy1NIni2kEc0ECqhgrvML4E,27048
70
70
  tradedangerous/templates/Added.csv,sha256=8o54civQCcS9y7_DBo0GX196XWRbbREQqKDYTKibsgQ,649
71
71
  tradedangerous/templates/Category.csv,sha256=8xwUDcBZE25T6x6dZGlRUMTCqeDLt3a9LXU5h6hRHV8,250
72
72
  tradedangerous/templates/RareItem.csv,sha256=F1RhRnTD82PiwrVUO-ai2ErGH2PTqNnQaDw5mcgljXs,10483
73
73
  tradedangerous/templates/TradeDangerous.sql,sha256=VlQK7QGtEi2brGtWaIZDvKmbJ_vLocD4CJ8h_6kKptU,7808
74
- tradedangerous-11.0.5.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
75
- tradedangerous-11.0.5.dist-info/METADATA,sha256=H1ImbOKei8lEN5zMQ-7ocsKAKXYJ_BoDnh8fBbBZkCQ,4435
76
- tradedangerous-11.0.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
77
- tradedangerous-11.0.5.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
78
- tradedangerous-11.0.5.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
79
- tradedangerous-11.0.5.dist-info/RECORD,,
74
+ tradedangerous-11.0.6.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
75
+ tradedangerous-11.0.6.dist-info/METADATA,sha256=nuonbPrRraJnIMjz081PA16DnemsCYnYZHr9RnbRExE,4435
76
+ tradedangerous-11.0.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
77
+ tradedangerous-11.0.6.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
78
+ tradedangerous-11.0.6.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
79
+ tradedangerous-11.0.6.dist-info/RECORD,,