tradedangerous 12.7.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.
Files changed (87) hide show
  1. py.typed +1 -0
  2. trade.py +49 -0
  3. tradedangerous/__init__.py +43 -0
  4. tradedangerous/cache.py +1381 -0
  5. tradedangerous/cli.py +136 -0
  6. tradedangerous/commands/TEMPLATE.py +74 -0
  7. tradedangerous/commands/__init__.py +244 -0
  8. tradedangerous/commands/buildcache_cmd.py +102 -0
  9. tradedangerous/commands/buy_cmd.py +427 -0
  10. tradedangerous/commands/commandenv.py +372 -0
  11. tradedangerous/commands/exceptions.py +94 -0
  12. tradedangerous/commands/export_cmd.py +150 -0
  13. tradedangerous/commands/import_cmd.py +222 -0
  14. tradedangerous/commands/local_cmd.py +243 -0
  15. tradedangerous/commands/market_cmd.py +207 -0
  16. tradedangerous/commands/nav_cmd.py +252 -0
  17. tradedangerous/commands/olddata_cmd.py +270 -0
  18. tradedangerous/commands/parsing.py +221 -0
  19. tradedangerous/commands/rares_cmd.py +298 -0
  20. tradedangerous/commands/run_cmd.py +1521 -0
  21. tradedangerous/commands/sell_cmd.py +262 -0
  22. tradedangerous/commands/shipvendor_cmd.py +60 -0
  23. tradedangerous/commands/station_cmd.py +68 -0
  24. tradedangerous/commands/trade_cmd.py +181 -0
  25. tradedangerous/commands/update_cmd.py +67 -0
  26. tradedangerous/corrections.py +55 -0
  27. tradedangerous/csvexport.py +234 -0
  28. tradedangerous/db/__init__.py +27 -0
  29. tradedangerous/db/adapter.py +192 -0
  30. tradedangerous/db/config.py +107 -0
  31. tradedangerous/db/engine.py +259 -0
  32. tradedangerous/db/lifecycle.py +332 -0
  33. tradedangerous/db/locks.py +208 -0
  34. tradedangerous/db/orm_models.py +500 -0
  35. tradedangerous/db/paths.py +113 -0
  36. tradedangerous/db/utils.py +661 -0
  37. tradedangerous/edscupdate.py +565 -0
  38. tradedangerous/edsmupdate.py +474 -0
  39. tradedangerous/formatting.py +210 -0
  40. tradedangerous/fs.py +156 -0
  41. tradedangerous/gui.py +1146 -0
  42. tradedangerous/mapping.py +133 -0
  43. tradedangerous/mfd/__init__.py +103 -0
  44. tradedangerous/mfd/saitek/__init__.py +3 -0
  45. tradedangerous/mfd/saitek/directoutput.py +678 -0
  46. tradedangerous/mfd/saitek/x52pro.py +195 -0
  47. tradedangerous/misc/checkpricebounds.py +287 -0
  48. tradedangerous/misc/clipboard.py +49 -0
  49. tradedangerous/misc/coord64.py +83 -0
  50. tradedangerous/misc/csvdialect.py +57 -0
  51. tradedangerous/misc/derp-sentinel.py +35 -0
  52. tradedangerous/misc/diff-system-csvs.py +159 -0
  53. tradedangerous/misc/eddb.py +81 -0
  54. tradedangerous/misc/eddn.py +349 -0
  55. tradedangerous/misc/edsc.py +437 -0
  56. tradedangerous/misc/edsm.py +121 -0
  57. tradedangerous/misc/importeddbstats.py +54 -0
  58. tradedangerous/misc/prices-json-exp.py +179 -0
  59. tradedangerous/misc/progress.py +194 -0
  60. tradedangerous/plugins/__init__.py +249 -0
  61. tradedangerous/plugins/edcd_plug.py +371 -0
  62. tradedangerous/plugins/eddblink_plug.py +861 -0
  63. tradedangerous/plugins/edmc_batch_plug.py +133 -0
  64. tradedangerous/plugins/spansh_plug.py +2647 -0
  65. tradedangerous/prices.py +211 -0
  66. tradedangerous/submit-distances.py +422 -0
  67. tradedangerous/templates/Added.csv +37 -0
  68. tradedangerous/templates/Category.csv +17 -0
  69. tradedangerous/templates/RareItem.csv +143 -0
  70. tradedangerous/templates/TradeDangerous.sql +338 -0
  71. tradedangerous/tools.py +40 -0
  72. tradedangerous/tradecalc.py +1302 -0
  73. tradedangerous/tradedb.py +2320 -0
  74. tradedangerous/tradeenv.py +313 -0
  75. tradedangerous/tradeenv.pyi +109 -0
  76. tradedangerous/tradeexcept.py +131 -0
  77. tradedangerous/tradeorm.py +183 -0
  78. tradedangerous/transfers.py +192 -0
  79. tradedangerous/utils.py +243 -0
  80. tradedangerous/version.py +16 -0
  81. tradedangerous-12.7.6.dist-info/METADATA +106 -0
  82. tradedangerous-12.7.6.dist-info/RECORD +87 -0
  83. tradedangerous-12.7.6.dist-info/WHEEL +5 -0
  84. tradedangerous-12.7.6.dist-info/entry_points.txt +3 -0
  85. tradedangerous-12.7.6.dist-info/licenses/LICENSE +373 -0
  86. tradedangerous-12.7.6.dist-info/top_level.txt +2 -0
  87. tradegui.py +24 -0
py.typed ADDED
@@ -0,0 +1 @@
1
+ # Marker file for PEP 561
trade.py ADDED
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env python3
2
+ # --------------------------------------------------------------------
3
+ # Copyright (C) Oliver 'kfsone' Smith 2014 <oliver@kfs.org>:
4
+ # Copyright (C) Bernd 'Gazelle' Gollesch 2016, 2017
5
+ # Copyright (C) Jonathan 'eyeonus' Jones 2018-2022
6
+ #
7
+ # You are free to use, redistribute, or even print and eat a copy of
8
+ # this software so long as you include this copyright notice.
9
+ # I guarantee there is at least one bug neither of us knew about.
10
+ # --------------------------------------------------------------------
11
+ # TradeDangerous :: Command Line App :: Main Module
12
+ #
13
+ # This is the main entry point into the native TD CLI.
14
+ #
15
+ # TradeDangerous is a powerful set of tools for traders in Frontier
16
+ # Development's game "Elite: Dangerous". It's main function is
17
+ # calculating the most profitable trades between either individual
18
+ # stations or working out "profit runs".
19
+ #
20
+ # I wrote TD because I realized that the best trade run - in terms
21
+ # of the "average profit per stop" was rarely as simple as going
22
+ # Chango -> Dahan -> Chango.
23
+ #
24
+ # E:D's economy is complex; sometimes you can make the most profit
25
+ # by trading one item A->B and flying a second item B->A.
26
+ # But more often you need to fly multiple stations, especially since
27
+ # as you are making money different trade options are coming into
28
+ # your affordable range.
29
+ #
30
+ # END USERS: If you are a user looking to find out how to use TD,
31
+ # please consult the file "README.md".
32
+ #
33
+ # DEVELOPERS: If you are a programmer who wants TD to do something
34
+ # cool, please see the TradeDB and TradeCalc modules. TD is designed
35
+ # to empower other programmers to do cool stuff.
36
+ import sys
37
+
38
+ from tradedangerous import cli, SimpleAbort
39
+
40
+
41
+ def main(argv = None):
42
+ cli.main(argv or sys.argv)
43
+
44
+
45
+ if __name__ == "__main__":
46
+ try:
47
+ cli.main(sys.argv)
48
+ except SimpleAbort as e:
49
+ print(str(e))
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env python3
2
+ # --------------------------------------------------------------------
3
+ # Copyright (C) Oliver 'kfsone' Smith 2014 <oliver@kfs.org>:
4
+ # Copyright (C) Bernd 'Gazelle' Gollesch 2016, 2017
5
+ # Copyright (C) Jonathan 'eyeonus' Jones 2018, 2019
6
+ #
7
+ # You are free to use, redistribute, or even print and eat a copy of
8
+ # this software so long as you include this copyright notice.
9
+ # I guarantee there is at least one bug neither of us knew about.
10
+ # --------------------------------------------------------------------
11
+
12
+ """
13
+ TradeDangerous is a set of powerful trading tools for Elite Dangerous,
14
+ organized around one of the most powerful trade run optimizers available.
15
+
16
+ The TRO is a heavy hitter that can calculate complex routes with multiple stops
17
+ while taking into account the profits you make along the route
18
+ The price data in TradeDangerous is either manually entered or crowd-sourced
19
+ from a website such as [Tromador's Trading Dangerously](http://elite.ripz.org "Tromador's Trading Dangerously"), often using a plugin such as the included eddblink.
20
+ """
21
+ from .tradecalc import TradeCalc
22
+ from .tradedb import TradeDB
23
+ from .tradeenv import TradeEnv
24
+ from .tradeexcept import SimpleAbort, TradeException
25
+ from .tradeorm import TradeORM
26
+ from .version import __version__
27
+
28
+ from .commands.commandenv import CommandEnv, CommandResults
29
+
30
+ # Export this as top-level symbnols so they can be imported with e.g.
31
+ # import tradedangerous.TradeDB
32
+ # rather than forcing everyone to go thru the exacting modules for these.
33
+ __all__ = [
34
+ '__version__',
35
+ 'CommandEnv',
36
+ 'CommandResults',
37
+ 'SimpleAbort',
38
+ 'TradeCalc',
39
+ 'TradeDB',
40
+ 'TradeEnv',
41
+ 'TradeException',
42
+ 'TradeORM',
43
+ ]