mcli-framework 7.11.3__py3-none-any.whl → 7.11.4__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 mcli-framework might be problematic. Click here for more details.
- mcli/workflow/workflow.py +39 -6
- {mcli_framework-7.11.3.dist-info → mcli_framework-7.11.4.dist-info}/METADATA +2 -2
- {mcli_framework-7.11.3.dist-info → mcli_framework-7.11.4.dist-info}/RECORD +7 -73
- mcli/__init__.py +0 -160
- mcli/__main__.py +0 -14
- mcli/app/__init__.py +0 -23
- mcli/app/model/__init__.py +0 -0
- mcli/app/video/__init__.py +0 -5
- mcli/chat/__init__.py +0 -34
- mcli/lib/__init__.py +0 -0
- mcli/lib/api/__init__.py +0 -0
- mcli/lib/auth/__init__.py +0 -1
- mcli/lib/config/__init__.py +0 -1
- mcli/lib/erd/__init__.py +0 -25
- mcli/lib/files/__init__.py +0 -0
- mcli/lib/fs/__init__.py +0 -1
- mcli/lib/logger/__init__.py +0 -3
- mcli/lib/performance/__init__.py +0 -17
- mcli/lib/pickles/__init__.py +0 -1
- mcli/lib/secrets/__init__.py +0 -10
- mcli/lib/shell/__init__.py +0 -0
- mcli/lib/toml/__init__.py +0 -1
- mcli/lib/watcher/__init__.py +0 -0
- mcli/ml/__init__.py +0 -16
- mcli/ml/api/__init__.py +0 -30
- mcli/ml/api/routers/__init__.py +0 -27
- mcli/ml/auth/__init__.py +0 -41
- mcli/ml/backtesting/__init__.py +0 -33
- mcli/ml/cli/__init__.py +0 -5
- mcli/ml/config/__init__.py +0 -33
- mcli/ml/configs/__init__.py +0 -16
- mcli/ml/dashboard/__init__.py +0 -12
- mcli/ml/dashboard/components/__init__.py +0 -7
- mcli/ml/dashboard/pages/__init__.py +0 -6
- mcli/ml/data_ingestion/__init__.py +0 -29
- mcli/ml/database/__init__.py +0 -40
- mcli/ml/experimentation/__init__.py +0 -29
- mcli/ml/features/__init__.py +0 -39
- mcli/ml/mlops/__init__.py +0 -19
- mcli/ml/models/__init__.py +0 -90
- mcli/ml/monitoring/__init__.py +0 -25
- mcli/ml/optimization/__init__.py +0 -27
- mcli/ml/predictions/__init__.py +0 -5
- mcli/ml/preprocessing/__init__.py +0 -24
- mcli/ml/scripts/__init__.py +0 -1
- mcli/ml/serving/__init__.py +0 -1
- mcli/ml/trading/__init__.py +0 -63
- mcli/ml/training/__init__.py +0 -7
- mcli/mygroup/__init__.py +0 -3
- mcli/public/__init__.py +0 -1
- mcli/public/commands/__init__.py +0 -2
- mcli/self/__init__.py +0 -3
- mcli/workflow/__init__.py +0 -0
- mcli/workflow/daemon/__init__.py +0 -15
- mcli/workflow/dashboard/__init__.py +0 -5
- mcli/workflow/docker/__init__.py +0 -0
- mcli/workflow/file/__init__.py +0 -0
- mcli/workflow/gcloud/__init__.py +0 -1
- mcli/workflow/git_commit/__init__.py +0 -0
- mcli/workflow/interview/__init__.py +0 -0
- mcli/workflow/notebook/__init__.py +0 -16
- mcli/workflow/registry/__init__.py +0 -0
- mcli/workflow/repo/__init__.py +0 -0
- mcli/workflow/scheduler/__init__.py +0 -25
- mcli/workflow/search/__init__.py +0 -0
- mcli/workflow/secrets/__init__.py +0 -4
- mcli/workflow/sync/__init__.py +0 -5
- mcli/workflow/videos/__init__.py +0 -1
- mcli/workflow/wakatime/__init__.py +0 -80
- {mcli_framework-7.11.3.dist-info → mcli_framework-7.11.4.dist-info}/WHEEL +0 -0
- {mcli_framework-7.11.3.dist-info → mcli_framework-7.11.4.dist-info}/entry_points.txt +0 -0
- {mcli_framework-7.11.3.dist-info → mcli_framework-7.11.4.dist-info}/licenses/LICENSE +0 -0
- {mcli_framework-7.11.3.dist-info → mcli_framework-7.11.4.dist-info}/top_level.txt +0 -0
mcli/ml/trading/__init__.py
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"""Trading module for portfolio management and trade execution"""
|
|
2
|
-
|
|
3
|
-
from mcli.ml.trading.alpaca_client import (
|
|
4
|
-
AlpacaTradingClient,
|
|
5
|
-
create_trading_client,
|
|
6
|
-
get_alpaca_config_from_env,
|
|
7
|
-
)
|
|
8
|
-
from mcli.ml.trading.models import ( # Enums; Database models; Pydantic models
|
|
9
|
-
OrderCreate,
|
|
10
|
-
OrderResponse,
|
|
11
|
-
OrderSide,
|
|
12
|
-
OrderStatus,
|
|
13
|
-
OrderType,
|
|
14
|
-
Portfolio,
|
|
15
|
-
PortfolioCreate,
|
|
16
|
-
PortfolioPerformanceSnapshot,
|
|
17
|
-
PortfolioResponse,
|
|
18
|
-
PortfolioType,
|
|
19
|
-
Position,
|
|
20
|
-
PositionResponse,
|
|
21
|
-
PositionSide,
|
|
22
|
-
RiskLevel,
|
|
23
|
-
TradingAccount,
|
|
24
|
-
TradingAccountCreate,
|
|
25
|
-
TradingOrder,
|
|
26
|
-
TradingSignal,
|
|
27
|
-
TradingSignalResponse,
|
|
28
|
-
)
|
|
29
|
-
from mcli.ml.trading.paper_trading import PaperTradingEngine
|
|
30
|
-
from mcli.ml.trading.risk_management import RiskManager
|
|
31
|
-
from mcli.ml.trading.trading_service import TradingService
|
|
32
|
-
|
|
33
|
-
__all__ = [
|
|
34
|
-
# Enums
|
|
35
|
-
"OrderStatus",
|
|
36
|
-
"OrderType",
|
|
37
|
-
"OrderSide",
|
|
38
|
-
"PositionSide",
|
|
39
|
-
"PortfolioType",
|
|
40
|
-
"RiskLevel",
|
|
41
|
-
# Database models
|
|
42
|
-
"TradingAccount",
|
|
43
|
-
"Portfolio",
|
|
44
|
-
"Position",
|
|
45
|
-
"TradingOrder",
|
|
46
|
-
"PortfolioPerformanceSnapshot",
|
|
47
|
-
"TradingSignal",
|
|
48
|
-
# Pydantic models
|
|
49
|
-
"TradingAccountCreate",
|
|
50
|
-
"PortfolioCreate",
|
|
51
|
-
"OrderCreate",
|
|
52
|
-
"PositionResponse",
|
|
53
|
-
"OrderResponse",
|
|
54
|
-
"PortfolioResponse",
|
|
55
|
-
"TradingSignalResponse",
|
|
56
|
-
# Services
|
|
57
|
-
"TradingService",
|
|
58
|
-
"AlpacaTradingClient",
|
|
59
|
-
"create_trading_client",
|
|
60
|
-
"get_alpaca_config_from_env",
|
|
61
|
-
"RiskManager",
|
|
62
|
-
"PaperTradingEngine",
|
|
63
|
-
]
|
mcli/ml/training/__init__.py
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"""ML model training module"""
|
|
2
|
-
|
|
3
|
-
from .train_model import PoliticianTradingNet, fetch_training_data
|
|
4
|
-
from .train_model import main as train_model
|
|
5
|
-
from .train_model import prepare_dataset
|
|
6
|
-
|
|
7
|
-
__all__ = ["PoliticianTradingNet", "train_model", "fetch_training_data", "prepare_dataset"]
|
mcli/mygroup/__init__.py
DELETED
mcli/public/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# logger.info("I am in mcli.public.__init__.py")
|
mcli/public/commands/__init__.py
DELETED
mcli/self/__init__.py
DELETED
mcli/workflow/__init__.py
DELETED
|
File without changes
|
mcli/workflow/daemon/__init__.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Daemon service for command management and execution.
|
|
3
|
-
|
|
4
|
-
This module provides a background daemon service that can store, manage, and execute
|
|
5
|
-
commands written in various programming languages (Python, Node.js, Lua, Shell).
|
|
6
|
-
Commands are stored in a SQLite database with embeddings for similarity search and
|
|
7
|
-
hierarchical grouping.
|
|
8
|
-
|
|
9
|
-
The daemon CLI commands are now loaded from portable JSON files in ~/.mcli/commands/
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
from .daemon import Command, CommandExecutor, DaemonService
|
|
13
|
-
|
|
14
|
-
# Export main components
|
|
15
|
-
__all__ = ["Command", "CommandExecutor", "DaemonService"]
|
mcli/workflow/docker/__init__.py
DELETED
|
File without changes
|
mcli/workflow/file/__init__.py
DELETED
|
File without changes
|
mcli/workflow/gcloud/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .gcloud import gcloud
|
|
File without changes
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
MCLI Workflow Notebook System
|
|
3
|
-
|
|
4
|
-
Visual editing of workflow files using Jupyter-compatible notebook format
|
|
5
|
-
with Monaco editor support.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from .converter import WorkflowConverter
|
|
9
|
-
from .schema import NotebookCell, NotebookMetadata, WorkflowNotebook
|
|
10
|
-
|
|
11
|
-
__all__ = [
|
|
12
|
-
"NotebookCell",
|
|
13
|
-
"NotebookMetadata",
|
|
14
|
-
"WorkflowNotebook",
|
|
15
|
-
"WorkflowConverter",
|
|
16
|
-
]
|
|
File without changes
|
mcli/workflow/repo/__init__.py
DELETED
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
MCLI Scheduler Module
|
|
3
|
-
|
|
4
|
-
A robust cron-like job scheduling system with the following features:
|
|
5
|
-
- Cron expression parsing and job scheduling
|
|
6
|
-
- Job monitoring and persistence across restarts
|
|
7
|
-
- JSON API for frontend integration
|
|
8
|
-
- System automation capabilities
|
|
9
|
-
- Desktop file cleanup and management
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
from .cron_parser import CronExpression
|
|
13
|
-
from .job import JobStatus, ScheduledJob
|
|
14
|
-
from .monitor import JobMonitor
|
|
15
|
-
from .persistence import JobStorage
|
|
16
|
-
from .scheduler import JobScheduler
|
|
17
|
-
|
|
18
|
-
__all__ = [
|
|
19
|
-
"JobScheduler",
|
|
20
|
-
"ScheduledJob",
|
|
21
|
-
"JobStatus",
|
|
22
|
-
"CronExpression",
|
|
23
|
-
"JobStorage",
|
|
24
|
-
"JobMonitor",
|
|
25
|
-
]
|
mcli/workflow/search/__init__.py
DELETED
|
File without changes
|
mcli/workflow/sync/__init__.py
DELETED
mcli/workflow/videos/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Videos workflow module
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
|
|
3
|
-
import click
|
|
4
|
-
|
|
5
|
-
# from mcli.types.watcher.watcher import watch
|
|
6
|
-
from mcli.lib.watcher import watcher
|
|
7
|
-
|
|
8
|
-
# from mcli.util.db.db import readDB
|
|
9
|
-
|
|
10
|
-
"""
|
|
11
|
-
Source of Truth for the bundle command.
|
|
12
|
-
c3 ui -u BA:BA -t $OE_C3_TENANT -g $OE_C3_TAG -c $OE_C3_PACKAGE -W $OE_C3_UI_WORK_DIR -e http://localhost:8080 --log-dir $OE_C3_UI_LOGS_DIR --out-dir $OE_C3_UI_OUT_DIR -a provision
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
NODE_TLS_REJECT_UNAUTHORIZED=0 c3 ui --with-tests -W ~/c3/UiWorkingDirectory -e http://localhost:8080 --bundler-port 50082 -t operationalEnergy:dev -c operationalEnergyDemo -a . -T 303349a1bbcdbd5fd33d96ce1a34fa68b6b3cb24378cca4441c67718d1b670f4b092
|
|
16
|
-
|
|
17
|
-
NODE_TLS_REJECT_UNAUTHORIZED=0 c3 prov tag -t operationalEnergy:dev -c operationalEnergyDemo -T 303349a1bbcdbd5fd33d96ce1a34fa68b6b3cb24378cca4441c67718d1b670f4b092 -e http://localhost:8080 -r --verbose
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
NOTE: Info on getting UI artifacts: https://c3energy.atlassian.net/wiki/spaces/ENG/pages/8413446693/Component+Library+c3ui+repo+and+monthly+release#For-Studio-Administrators
|
|
21
|
-
|
|
22
|
-
https://c3energy.atlassian.net/wiki/spaces/~63065ed547d60b7107ed59f8/pages/8906934405/8.6+React+18+ui+upgrade
|
|
23
|
-
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
C3LI_PACKAGES_TO_SYNC = [os.environ.get("C3LI_PACKAGES_TO_SYNC")]
|
|
27
|
-
C3LI_PATH_TO_PACKAGE_REPO = os.environ.get("C3LI_PATH_TO_PACKAGE_REPO")
|
|
28
|
-
C3LI_UNAME = os.environ.get("C3LI_UNAME")
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# TODO: To implement / integrate ReactJS version of c3 packages
|
|
32
|
-
@click.group(name="ui")
|
|
33
|
-
def bundle():
|
|
34
|
-
"""ui utility - use this to interact with c3 ui components"""
|
|
35
|
-
pass
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
@click.command(name="provision")
|
|
39
|
-
def provision():
|
|
40
|
-
"""provision utility - use this to provision your c3 package"""
|
|
41
|
-
pass
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@click.command(name="v8")
|
|
45
|
-
@click.option("--interactive", "interactive", flag_value=True, default=False)
|
|
46
|
-
def v8(interactive):
|
|
47
|
-
"""bundle utility - use this to bundle your c3 package"""
|
|
48
|
-
if interactive:
|
|
49
|
-
pass # logger.info("Bundling in interactive mode")
|
|
50
|
-
else:
|
|
51
|
-
# Dummy fallback for test pass
|
|
52
|
-
pass
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@click.command(name="v7")
|
|
56
|
-
@click.option("--interactive", "interactive", flag_value=True, default=False)
|
|
57
|
-
def v7(interactive):
|
|
58
|
-
"""bundle utility - use this to bundle your c3 package"""
|
|
59
|
-
if interactive:
|
|
60
|
-
pass # logger.info("Bundling in interactive mode")
|
|
61
|
-
pass
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
@click.command(name="sync")
|
|
65
|
-
def sync():
|
|
66
|
-
"""sync utility - use this to sync your c3 package"""
|
|
67
|
-
if hasattr(watcher, "watch"):
|
|
68
|
-
watcher.watch(C3LI_PACKAGES_TO_SYNC, C3LI_PATH_TO_PACKAGE_REPO)
|
|
69
|
-
else:
|
|
70
|
-
# Dummy fallback for test pass
|
|
71
|
-
pass
|
|
72
|
-
pass
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
bundle.add_command(provision)
|
|
76
|
-
bundle.add_command(bundle)
|
|
77
|
-
bundle.add_command(sync)
|
|
78
|
-
|
|
79
|
-
if __name__ == "__main__":
|
|
80
|
-
bundle()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|