mtcli 3.7.0.dev6__tar.gz → 3.7.0.dev7__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.
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/PKG-INFO +1 -1
- mtcli-3.7.0.dev7/mtcli/cli.py +72 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/pyproject.toml +1 -1
- mtcli-3.7.0.dev6/mtcli/cli.py +0 -34
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/LICENSE +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/README.md +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/commands/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/commands/bars.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/commands/conf.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/conecta.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/conf.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/config_registre.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/data/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/data/base.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/data/csv.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/data/mt5.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/database.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/domain/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/domain/timeframe.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/logger.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/marketdata/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/marketdata/tick_cache.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/marketdata/tick_repository.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/bar_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/bars_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/chart_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/conf_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/consecutive_bars_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/rates_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/signals_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/models/unconsecutive_bar_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/mt5_context.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugin.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugin_loader.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugin_manager.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/exemplo.py-dist +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/cli.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/conf.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/models/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/models/model_media_movel.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/tests/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/tests/test_mm.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/tests/test_model_media_movel.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/cli.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/conf.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/models/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/models/average_range_model.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/tests/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/tests/test_rm.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/cli.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/conf.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/models/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/models/model_average_volume.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/tests/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/tests/test_vm.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/__init__.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/close_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/full_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/high_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/low_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/min_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/open_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/ranges_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/rates_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/vars_view.py +0 -0
- {mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/views/volumes_view.py +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
CLI principal do mtcli.
|
|
3
|
+
|
|
4
|
+
Este módulo define o grupo principal `mt`
|
|
5
|
+
e inicializa o carregamento de plugins.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import click
|
|
9
|
+
|
|
10
|
+
from mtcli.plugin_loader import load_plugins
|
|
11
|
+
from mtcli.logger import setup_logger
|
|
12
|
+
|
|
13
|
+
from .commands.bars import bars
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
logger = setup_logger(__name__)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@click.group(context_settings={"max_content_width": 120})
|
|
20
|
+
@click.version_option(package_name="mtcli")
|
|
21
|
+
def mt():
|
|
22
|
+
"""
|
|
23
|
+
CLI principal do mtcli.
|
|
24
|
+
|
|
25
|
+
Exibe gráficos e informações de mercado
|
|
26
|
+
em formato textual compatível com leitores de tela.
|
|
27
|
+
"""
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# ---------------------------------------------------------
|
|
32
|
+
# Comandos internos
|
|
33
|
+
# ---------------------------------------------------------
|
|
34
|
+
|
|
35
|
+
mt.add_command(bars, name="bars")
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# ---------------------------------------------------------
|
|
39
|
+
# Carregamento de plugins
|
|
40
|
+
# ---------------------------------------------------------
|
|
41
|
+
|
|
42
|
+
loaded_plugins = load_plugins(mt)
|
|
43
|
+
|
|
44
|
+
logger.info("Plugins carregados: %s", loaded_plugins)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# ---------------------------------------------------------
|
|
48
|
+
# Comando utilitário: listar plugins
|
|
49
|
+
# ---------------------------------------------------------
|
|
50
|
+
|
|
51
|
+
@mt.command(name="plugins")
|
|
52
|
+
def list_plugins():
|
|
53
|
+
"""
|
|
54
|
+
Lista os plugins atualmente carregados no mtcli.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
if not loaded_plugins:
|
|
58
|
+
click.echo("Nenhum plugin carregado.")
|
|
59
|
+
return
|
|
60
|
+
|
|
61
|
+
click.echo("Plugins carregados:\n")
|
|
62
|
+
|
|
63
|
+
for name in loaded_plugins:
|
|
64
|
+
click.echo(f" {name}")
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# ---------------------------------------------------------
|
|
68
|
+
# Entry point
|
|
69
|
+
# ---------------------------------------------------------
|
|
70
|
+
|
|
71
|
+
if __name__ == "__main__":
|
|
72
|
+
mt()
|
mtcli-3.7.0.dev6/mtcli/cli.py
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
CLI principal do mtcli.
|
|
3
|
-
|
|
4
|
-
Este módulo define o grupo principal `mt`
|
|
5
|
-
e inicializa o carregamento de plugins.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
import click
|
|
9
|
-
|
|
10
|
-
from mtcli.plugin_loader import load_plugins
|
|
11
|
-
from .commands.bars import bars
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@click.group(context_settings={"max_content_width": 120})
|
|
15
|
-
@click.version_option(package_name="mtcli")
|
|
16
|
-
def mt():
|
|
17
|
-
"""
|
|
18
|
-
CLI principal do mtcli.
|
|
19
|
-
|
|
20
|
-
Exibe gráficos e informações de mercado
|
|
21
|
-
em formato textual compatível com leitores de tela.
|
|
22
|
-
"""
|
|
23
|
-
pass
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
mt.add_command(bars, name="bars")
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
# Carrega plugins automaticamente
|
|
30
|
-
load_plugins(mt)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if __name__ == "__main__":
|
|
34
|
-
mt()
|
|
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
|
{mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/media_movel/tests/test_model_media_movel.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/range_medio/models/average_range_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mtcli-3.7.0.dev6 → mtcli-3.7.0.dev7}/mtcli/plugins/volume_medio/models/model_average_volume.py
RENAMED
|
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
|