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.
- py.typed +1 -0
- trade.py +49 -0
- tradedangerous/__init__.py +43 -0
- tradedangerous/cache.py +1381 -0
- tradedangerous/cli.py +136 -0
- tradedangerous/commands/TEMPLATE.py +74 -0
- tradedangerous/commands/__init__.py +244 -0
- tradedangerous/commands/buildcache_cmd.py +102 -0
- tradedangerous/commands/buy_cmd.py +427 -0
- tradedangerous/commands/commandenv.py +372 -0
- tradedangerous/commands/exceptions.py +94 -0
- tradedangerous/commands/export_cmd.py +150 -0
- tradedangerous/commands/import_cmd.py +222 -0
- tradedangerous/commands/local_cmd.py +243 -0
- tradedangerous/commands/market_cmd.py +207 -0
- tradedangerous/commands/nav_cmd.py +252 -0
- tradedangerous/commands/olddata_cmd.py +270 -0
- tradedangerous/commands/parsing.py +221 -0
- tradedangerous/commands/rares_cmd.py +298 -0
- tradedangerous/commands/run_cmd.py +1521 -0
- tradedangerous/commands/sell_cmd.py +262 -0
- tradedangerous/commands/shipvendor_cmd.py +60 -0
- tradedangerous/commands/station_cmd.py +68 -0
- tradedangerous/commands/trade_cmd.py +181 -0
- tradedangerous/commands/update_cmd.py +67 -0
- tradedangerous/corrections.py +55 -0
- tradedangerous/csvexport.py +234 -0
- tradedangerous/db/__init__.py +27 -0
- tradedangerous/db/adapter.py +192 -0
- tradedangerous/db/config.py +107 -0
- tradedangerous/db/engine.py +259 -0
- tradedangerous/db/lifecycle.py +332 -0
- tradedangerous/db/locks.py +208 -0
- tradedangerous/db/orm_models.py +500 -0
- tradedangerous/db/paths.py +113 -0
- tradedangerous/db/utils.py +661 -0
- tradedangerous/edscupdate.py +565 -0
- tradedangerous/edsmupdate.py +474 -0
- tradedangerous/formatting.py +210 -0
- tradedangerous/fs.py +156 -0
- tradedangerous/gui.py +1146 -0
- tradedangerous/mapping.py +133 -0
- tradedangerous/mfd/__init__.py +103 -0
- tradedangerous/mfd/saitek/__init__.py +3 -0
- tradedangerous/mfd/saitek/directoutput.py +678 -0
- tradedangerous/mfd/saitek/x52pro.py +195 -0
- tradedangerous/misc/checkpricebounds.py +287 -0
- tradedangerous/misc/clipboard.py +49 -0
- tradedangerous/misc/coord64.py +83 -0
- tradedangerous/misc/csvdialect.py +57 -0
- tradedangerous/misc/derp-sentinel.py +35 -0
- tradedangerous/misc/diff-system-csvs.py +159 -0
- tradedangerous/misc/eddb.py +81 -0
- tradedangerous/misc/eddn.py +349 -0
- tradedangerous/misc/edsc.py +437 -0
- tradedangerous/misc/edsm.py +121 -0
- tradedangerous/misc/importeddbstats.py +54 -0
- tradedangerous/misc/prices-json-exp.py +179 -0
- tradedangerous/misc/progress.py +194 -0
- tradedangerous/plugins/__init__.py +249 -0
- tradedangerous/plugins/edcd_plug.py +371 -0
- tradedangerous/plugins/eddblink_plug.py +861 -0
- tradedangerous/plugins/edmc_batch_plug.py +133 -0
- tradedangerous/plugins/spansh_plug.py +2647 -0
- tradedangerous/prices.py +211 -0
- tradedangerous/submit-distances.py +422 -0
- tradedangerous/templates/Added.csv +37 -0
- tradedangerous/templates/Category.csv +17 -0
- tradedangerous/templates/RareItem.csv +143 -0
- tradedangerous/templates/TradeDangerous.sql +338 -0
- tradedangerous/tools.py +40 -0
- tradedangerous/tradecalc.py +1302 -0
- tradedangerous/tradedb.py +2320 -0
- tradedangerous/tradeenv.py +313 -0
- tradedangerous/tradeenv.pyi +109 -0
- tradedangerous/tradeexcept.py +131 -0
- tradedangerous/tradeorm.py +183 -0
- tradedangerous/transfers.py +192 -0
- tradedangerous/utils.py +243 -0
- tradedangerous/version.py +16 -0
- tradedangerous-12.7.6.dist-info/METADATA +106 -0
- tradedangerous-12.7.6.dist-info/RECORD +87 -0
- tradedangerous-12.7.6.dist-info/WHEEL +5 -0
- tradedangerous-12.7.6.dist-info/entry_points.txt +3 -0
- tradedangerous-12.7.6.dist-info/licenses/LICENSE +373 -0
- tradedangerous-12.7.6.dist-info/top_level.txt +2 -0
- tradegui.py +24 -0
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
|
+
]
|