dfm-python 0.3.1__tar.gz → 0.3.11__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.
- {dfm_python-0.3.1 → dfm_python-0.3.11}/.git +1 -1
- dfm_python-0.3.11/.venv_build/bin/Activate.ps1 +247 -0
- dfm_python-0.3.11/.venv_build/bin/activate +70 -0
- dfm_python-0.3.11/.venv_build/bin/activate.csh +27 -0
- dfm_python-0.3.11/.venv_build/bin/activate.fish +69 -0
- dfm_python-0.3.11/.venv_build/bin/docutils +8 -0
- dfm_python-0.3.11/.venv_build/bin/keyring +8 -0
- dfm_python-0.3.11/.venv_build/bin/markdown-it +8 -0
- dfm_python-0.3.11/.venv_build/bin/normalizer +8 -0
- dfm_python-0.3.11/.venv_build/bin/pip +8 -0
- dfm_python-0.3.11/.venv_build/bin/pip3 +8 -0
- dfm_python-0.3.11/.venv_build/bin/pip3.12 +8 -0
- dfm_python-0.3.11/.venv_build/bin/pygmentize +8 -0
- dfm_python-0.3.11/.venv_build/bin/pyproject-build +8 -0
- dfm_python-0.3.11/.venv_build/bin/python +1 -0
- dfm_python-0.3.11/.venv_build/bin/python3 +1 -0
- dfm_python-0.3.11/.venv_build/bin/python3.12 +1 -0
- dfm_python-0.3.11/.venv_build/bin/rst2html +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2html4 +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2html5 +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2latex +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2man +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2odt +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2pseudoxml +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2s5 +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2xetex +8 -0
- dfm_python-0.3.11/.venv_build/bin/rst2xml +8 -0
- dfm_python-0.3.11/.venv_build/bin/twine +8 -0
- dfm_python-0.3.11/.venv_build/pyvenv.cfg +5 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/PKG-INFO +7 -7
- {dfm_python-0.3.1 → dfm_python-0.3.11}/README.md +6 -6
- {dfm_python-0.3.1 → dfm_python-0.3.11}/pyproject.toml +1 -1
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/__init__.py +1 -1
- {dfm_python-0.3.1 → dfm_python-0.3.11}/.gitignore +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/.python-version +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/LICENSE +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/MANIFEST.in +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/blocks/default.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/blocks/sample_spec.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/blocks/sample_spec2.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/default.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/experiment/ddfm_example.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/experiment/exp1.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/experiment/exp2.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/experiment/exp3.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_194140_025b98_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_194248_82a2a3_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_194423_013beb_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_194532_190712_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_195001_ef69d1_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_195110_eb12bc_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_195439_12eea1_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_195547_0ecebd_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_200209_8b6463_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_200319_c62fea_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_200722_7d6a26_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_200838_320d08_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_200934_65c460_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/blocks/spec_20251118_201046_8e7482_blocks.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_194140_025b98_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_194248_82a2a3_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_194423_013beb_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_194532_190712_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_195001_ef69d1_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_195110_eb12bc_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_195439_12eea1_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_195547_0ecebd_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_200209_8b6463_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_200319_c62fea_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_200722_7d6a26_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_200838_320d08_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_200934_65c460_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/series/spec_20251118_201046_8e7482_series.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_194140_025b98.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_194248_82a2a3.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_194423_013beb.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_194532_190712.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_195001_ef69d1.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_195110_eb12bc.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_195439_12eea1.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_195547_0ecebd.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_200209_8b6463.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_200319_c62fea.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_200722_7d6a26.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_200838_320d08.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_200934_65c460.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/generated/spec_20251118_201046_8e7482.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/series/default.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/series/sample_spec.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/config/series/sample_spec2.yaml +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/data/mdfred_snapshot_monthly.csv +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/data/mdfred_snapshot_quarterly.csv +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/data/sample_data.csv +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/data/sample_spec.csv +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/full_tutorial_example.ipynb +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/adapters/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/adapters/data_view.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/adapters/database.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/adapters/model_result.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/api/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/api/model_api.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/api/session_api.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/config/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/config/io.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/config/schema.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/diagnostics.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/em.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/estimation.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/helpers.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/results.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/state_space.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/structure.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/core/time.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/dataloader/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/dataloader/loader.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/dataloader/preprocess.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/models/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/models/base.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/models/ddfm.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/models/dfm.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/nowcasting/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/nowcasting/nowcast.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/utils/__init__.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/utils/convert.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/dfm_python/utils/loss.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_api.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_core.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_ddfm.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_dfm_regression.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_integration.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_kalman.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/src/test/test_nowcasting.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/tutorial/basic_tutorial.py +0 -0
- {dfm_python-0.3.1 → dfm_python-0.3.11}/uv.lock +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
gitdir: ../../../../../kaggle_projects/hull-tactical/.git/worktrees/
|
|
1
|
+
gitdir: ../../../../../kaggle_projects/hull-tactical/.git/worktrees/har/modules/dfm-python
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
<#
|
|
2
|
+
.Synopsis
|
|
3
|
+
Activate a Python virtual environment for the current PowerShell session.
|
|
4
|
+
|
|
5
|
+
.Description
|
|
6
|
+
Pushes the python executable for a virtual environment to the front of the
|
|
7
|
+
$Env:PATH environment variable and sets the prompt to signify that you are
|
|
8
|
+
in a Python virtual environment. Makes use of the command line switches as
|
|
9
|
+
well as the `pyvenv.cfg` file values present in the virtual environment.
|
|
10
|
+
|
|
11
|
+
.Parameter VenvDir
|
|
12
|
+
Path to the directory that contains the virtual environment to activate. The
|
|
13
|
+
default value for this is the parent of the directory that the Activate.ps1
|
|
14
|
+
script is located within.
|
|
15
|
+
|
|
16
|
+
.Parameter Prompt
|
|
17
|
+
The prompt prefix to display when this virtual environment is activated. By
|
|
18
|
+
default, this prompt is the name of the virtual environment folder (VenvDir)
|
|
19
|
+
surrounded by parentheses and followed by a single space (ie. '(.venv) ').
|
|
20
|
+
|
|
21
|
+
.Example
|
|
22
|
+
Activate.ps1
|
|
23
|
+
Activates the Python virtual environment that contains the Activate.ps1 script.
|
|
24
|
+
|
|
25
|
+
.Example
|
|
26
|
+
Activate.ps1 -Verbose
|
|
27
|
+
Activates the Python virtual environment that contains the Activate.ps1 script,
|
|
28
|
+
and shows extra information about the activation as it executes.
|
|
29
|
+
|
|
30
|
+
.Example
|
|
31
|
+
Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
|
|
32
|
+
Activates the Python virtual environment located in the specified location.
|
|
33
|
+
|
|
34
|
+
.Example
|
|
35
|
+
Activate.ps1 -Prompt "MyPython"
|
|
36
|
+
Activates the Python virtual environment that contains the Activate.ps1 script,
|
|
37
|
+
and prefixes the current prompt with the specified string (surrounded in
|
|
38
|
+
parentheses) while the virtual environment is active.
|
|
39
|
+
|
|
40
|
+
.Notes
|
|
41
|
+
On Windows, it may be required to enable this Activate.ps1 script by setting the
|
|
42
|
+
execution policy for the user. You can do this by issuing the following PowerShell
|
|
43
|
+
command:
|
|
44
|
+
|
|
45
|
+
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
46
|
+
|
|
47
|
+
For more information on Execution Policies:
|
|
48
|
+
https://go.microsoft.com/fwlink/?LinkID=135170
|
|
49
|
+
|
|
50
|
+
#>
|
|
51
|
+
Param(
|
|
52
|
+
[Parameter(Mandatory = $false)]
|
|
53
|
+
[String]
|
|
54
|
+
$VenvDir,
|
|
55
|
+
[Parameter(Mandatory = $false)]
|
|
56
|
+
[String]
|
|
57
|
+
$Prompt
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
<# Function declarations --------------------------------------------------- #>
|
|
61
|
+
|
|
62
|
+
<#
|
|
63
|
+
.Synopsis
|
|
64
|
+
Remove all shell session elements added by the Activate script, including the
|
|
65
|
+
addition of the virtual environment's Python executable from the beginning of
|
|
66
|
+
the PATH variable.
|
|
67
|
+
|
|
68
|
+
.Parameter NonDestructive
|
|
69
|
+
If present, do not remove this function from the global namespace for the
|
|
70
|
+
session.
|
|
71
|
+
|
|
72
|
+
#>
|
|
73
|
+
function global:deactivate ([switch]$NonDestructive) {
|
|
74
|
+
# Revert to original values
|
|
75
|
+
|
|
76
|
+
# The prior prompt:
|
|
77
|
+
if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
|
|
78
|
+
Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
|
|
79
|
+
Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
# The prior PYTHONHOME:
|
|
83
|
+
if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
|
|
84
|
+
Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
|
|
85
|
+
Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
# The prior PATH:
|
|
89
|
+
if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
|
|
90
|
+
Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
|
|
91
|
+
Remove-Item -Path Env:_OLD_VIRTUAL_PATH
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
# Just remove the VIRTUAL_ENV altogether:
|
|
95
|
+
if (Test-Path -Path Env:VIRTUAL_ENV) {
|
|
96
|
+
Remove-Item -Path env:VIRTUAL_ENV
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
# Just remove VIRTUAL_ENV_PROMPT altogether.
|
|
100
|
+
if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
|
|
101
|
+
Remove-Item -Path env:VIRTUAL_ENV_PROMPT
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
# Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
|
|
105
|
+
if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
|
|
106
|
+
Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
# Leave deactivate function in the global namespace if requested:
|
|
110
|
+
if (-not $NonDestructive) {
|
|
111
|
+
Remove-Item -Path function:deactivate
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
<#
|
|
116
|
+
.Description
|
|
117
|
+
Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
|
|
118
|
+
given folder, and returns them in a map.
|
|
119
|
+
|
|
120
|
+
For each line in the pyvenv.cfg file, if that line can be parsed into exactly
|
|
121
|
+
two strings separated by `=` (with any amount of whitespace surrounding the =)
|
|
122
|
+
then it is considered a `key = value` line. The left hand string is the key,
|
|
123
|
+
the right hand is the value.
|
|
124
|
+
|
|
125
|
+
If the value starts with a `'` or a `"` then the first and last character is
|
|
126
|
+
stripped from the value before being captured.
|
|
127
|
+
|
|
128
|
+
.Parameter ConfigDir
|
|
129
|
+
Path to the directory that contains the `pyvenv.cfg` file.
|
|
130
|
+
#>
|
|
131
|
+
function Get-PyVenvConfig(
|
|
132
|
+
[String]
|
|
133
|
+
$ConfigDir
|
|
134
|
+
) {
|
|
135
|
+
Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
|
|
136
|
+
|
|
137
|
+
# Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
|
|
138
|
+
$pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
|
|
139
|
+
|
|
140
|
+
# An empty map will be returned if no config file is found.
|
|
141
|
+
$pyvenvConfig = @{ }
|
|
142
|
+
|
|
143
|
+
if ($pyvenvConfigPath) {
|
|
144
|
+
|
|
145
|
+
Write-Verbose "File exists, parse `key = value` lines"
|
|
146
|
+
$pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
|
|
147
|
+
|
|
148
|
+
$pyvenvConfigContent | ForEach-Object {
|
|
149
|
+
$keyval = $PSItem -split "\s*=\s*", 2
|
|
150
|
+
if ($keyval[0] -and $keyval[1]) {
|
|
151
|
+
$val = $keyval[1]
|
|
152
|
+
|
|
153
|
+
# Remove extraneous quotations around a string value.
|
|
154
|
+
if ("'""".Contains($val.Substring(0, 1))) {
|
|
155
|
+
$val = $val.Substring(1, $val.Length - 2)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
$pyvenvConfig[$keyval[0]] = $val
|
|
159
|
+
Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return $pyvenvConfig
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
<# Begin Activate script --------------------------------------------------- #>
|
|
168
|
+
|
|
169
|
+
# Determine the containing directory of this script
|
|
170
|
+
$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|
171
|
+
$VenvExecDir = Get-Item -Path $VenvExecPath
|
|
172
|
+
|
|
173
|
+
Write-Verbose "Activation script is located in path: '$VenvExecPath'"
|
|
174
|
+
Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
|
|
175
|
+
Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
|
|
176
|
+
|
|
177
|
+
# Set values required in priority: CmdLine, ConfigFile, Default
|
|
178
|
+
# First, get the location of the virtual environment, it might not be
|
|
179
|
+
# VenvExecDir if specified on the command line.
|
|
180
|
+
if ($VenvDir) {
|
|
181
|
+
Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
|
|
185
|
+
$VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
|
|
186
|
+
Write-Verbose "VenvDir=$VenvDir"
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
# Next, read the `pyvenv.cfg` file to determine any required value such
|
|
190
|
+
# as `prompt`.
|
|
191
|
+
$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
|
|
192
|
+
|
|
193
|
+
# Next, set the prompt from the command line, or the config file, or
|
|
194
|
+
# just use the name of the virtual environment folder.
|
|
195
|
+
if ($Prompt) {
|
|
196
|
+
Write-Verbose "Prompt specified as argument, using '$Prompt'"
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
|
|
200
|
+
if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
|
|
201
|
+
Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
|
|
202
|
+
$Prompt = $pyvenvCfg['prompt'];
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
|
|
206
|
+
Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
|
|
207
|
+
$Prompt = Split-Path -Path $venvDir -Leaf
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
Write-Verbose "Prompt = '$Prompt'"
|
|
212
|
+
Write-Verbose "VenvDir='$VenvDir'"
|
|
213
|
+
|
|
214
|
+
# Deactivate any currently active virtual environment, but leave the
|
|
215
|
+
# deactivate function in place.
|
|
216
|
+
deactivate -nondestructive
|
|
217
|
+
|
|
218
|
+
# Now set the environment variable VIRTUAL_ENV, used by many tools to determine
|
|
219
|
+
# that there is an activated venv.
|
|
220
|
+
$env:VIRTUAL_ENV = $VenvDir
|
|
221
|
+
|
|
222
|
+
if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
|
223
|
+
|
|
224
|
+
Write-Verbose "Setting prompt to '$Prompt'"
|
|
225
|
+
|
|
226
|
+
# Set the prompt to include the env name
|
|
227
|
+
# Make sure _OLD_VIRTUAL_PROMPT is global
|
|
228
|
+
function global:_OLD_VIRTUAL_PROMPT { "" }
|
|
229
|
+
Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
|
|
230
|
+
New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
|
|
231
|
+
|
|
232
|
+
function global:prompt {
|
|
233
|
+
Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
|
|
234
|
+
_OLD_VIRTUAL_PROMPT
|
|
235
|
+
}
|
|
236
|
+
$env:VIRTUAL_ENV_PROMPT = $Prompt
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
# Clear PYTHONHOME
|
|
240
|
+
if (Test-Path -Path Env:PYTHONHOME) {
|
|
241
|
+
Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
|
|
242
|
+
Remove-Item -Path Env:PYTHONHOME
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
# Add the venv to the PATH
|
|
246
|
+
Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
|
|
247
|
+
$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This file must be used with "source bin/activate" *from bash*
|
|
2
|
+
# You cannot run it directly
|
|
3
|
+
|
|
4
|
+
deactivate () {
|
|
5
|
+
# reset old environment variables
|
|
6
|
+
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
|
|
7
|
+
PATH="${_OLD_VIRTUAL_PATH:-}"
|
|
8
|
+
export PATH
|
|
9
|
+
unset _OLD_VIRTUAL_PATH
|
|
10
|
+
fi
|
|
11
|
+
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
|
|
12
|
+
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
|
|
13
|
+
export PYTHONHOME
|
|
14
|
+
unset _OLD_VIRTUAL_PYTHONHOME
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# Call hash to forget past commands. Without forgetting
|
|
18
|
+
# past commands the $PATH changes we made may not be respected
|
|
19
|
+
hash -r 2> /dev/null
|
|
20
|
+
|
|
21
|
+
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
|
|
22
|
+
PS1="${_OLD_VIRTUAL_PS1:-}"
|
|
23
|
+
export PS1
|
|
24
|
+
unset _OLD_VIRTUAL_PS1
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
unset VIRTUAL_ENV
|
|
28
|
+
unset VIRTUAL_ENV_PROMPT
|
|
29
|
+
if [ ! "${1:-}" = "nondestructive" ] ; then
|
|
30
|
+
# Self destruct!
|
|
31
|
+
unset -f deactivate
|
|
32
|
+
fi
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
# unset irrelevant variables
|
|
36
|
+
deactivate nondestructive
|
|
37
|
+
|
|
38
|
+
# on Windows, a path can contain colons and backslashes and has to be converted:
|
|
39
|
+
if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
|
|
40
|
+
# transform D:\path\to\venv to /d/path/to/venv on MSYS
|
|
41
|
+
# and to /cygdrive/d/path/to/venv on Cygwin
|
|
42
|
+
export VIRTUAL_ENV=$(cygpath /home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build)
|
|
43
|
+
else
|
|
44
|
+
# use the path as-is
|
|
45
|
+
export VIRTUAL_ENV=/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
_OLD_VIRTUAL_PATH="$PATH"
|
|
49
|
+
PATH="$VIRTUAL_ENV/"bin":$PATH"
|
|
50
|
+
export PATH
|
|
51
|
+
|
|
52
|
+
# unset PYTHONHOME if set
|
|
53
|
+
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
|
|
54
|
+
# could use `if (set -u; : $PYTHONHOME) ;` in bash
|
|
55
|
+
if [ -n "${PYTHONHOME:-}" ] ; then
|
|
56
|
+
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
|
|
57
|
+
unset PYTHONHOME
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
|
|
61
|
+
_OLD_VIRTUAL_PS1="${PS1:-}"
|
|
62
|
+
PS1='(.venv_build) '"${PS1:-}"
|
|
63
|
+
export PS1
|
|
64
|
+
VIRTUAL_ENV_PROMPT='(.venv_build) '
|
|
65
|
+
export VIRTUAL_ENV_PROMPT
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
# Call hash to forget past commands. Without forgetting
|
|
69
|
+
# past commands the $PATH changes we made may not be respected
|
|
70
|
+
hash -r 2> /dev/null
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file must be used with "source bin/activate.csh" *from csh*.
|
|
2
|
+
# You cannot run it directly.
|
|
3
|
+
|
|
4
|
+
# Created by Davide Di Blasi <davidedb@gmail.com>.
|
|
5
|
+
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>
|
|
6
|
+
|
|
7
|
+
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'
|
|
8
|
+
|
|
9
|
+
# Unset irrelevant variables.
|
|
10
|
+
deactivate nondestructive
|
|
11
|
+
|
|
12
|
+
setenv VIRTUAL_ENV /home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build
|
|
13
|
+
|
|
14
|
+
set _OLD_VIRTUAL_PATH="$PATH"
|
|
15
|
+
setenv PATH "$VIRTUAL_ENV/"bin":$PATH"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
set _OLD_VIRTUAL_PROMPT="$prompt"
|
|
19
|
+
|
|
20
|
+
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
|
|
21
|
+
set prompt = '(.venv_build) '"$prompt"
|
|
22
|
+
setenv VIRTUAL_ENV_PROMPT '(.venv_build) '
|
|
23
|
+
endif
|
|
24
|
+
|
|
25
|
+
alias pydoc python -m pydoc
|
|
26
|
+
|
|
27
|
+
rehash
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# This file must be used with "source <venv>/bin/activate.fish" *from fish*
|
|
2
|
+
# (https://fishshell.com/). You cannot run it directly.
|
|
3
|
+
|
|
4
|
+
function deactivate -d "Exit virtual environment and return to normal shell environment"
|
|
5
|
+
# reset old environment variables
|
|
6
|
+
if test -n "$_OLD_VIRTUAL_PATH"
|
|
7
|
+
set -gx PATH $_OLD_VIRTUAL_PATH
|
|
8
|
+
set -e _OLD_VIRTUAL_PATH
|
|
9
|
+
end
|
|
10
|
+
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
|
|
11
|
+
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
|
|
12
|
+
set -e _OLD_VIRTUAL_PYTHONHOME
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
|
|
16
|
+
set -e _OLD_FISH_PROMPT_OVERRIDE
|
|
17
|
+
# prevents error when using nested fish instances (Issue #93858)
|
|
18
|
+
if functions -q _old_fish_prompt
|
|
19
|
+
functions -e fish_prompt
|
|
20
|
+
functions -c _old_fish_prompt fish_prompt
|
|
21
|
+
functions -e _old_fish_prompt
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
set -e VIRTUAL_ENV
|
|
26
|
+
set -e VIRTUAL_ENV_PROMPT
|
|
27
|
+
if test "$argv[1]" != "nondestructive"
|
|
28
|
+
# Self-destruct!
|
|
29
|
+
functions -e deactivate
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Unset irrelevant variables.
|
|
34
|
+
deactivate nondestructive
|
|
35
|
+
|
|
36
|
+
set -gx VIRTUAL_ENV /home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build
|
|
37
|
+
|
|
38
|
+
set -gx _OLD_VIRTUAL_PATH $PATH
|
|
39
|
+
set -gx PATH "$VIRTUAL_ENV/"bin $PATH
|
|
40
|
+
|
|
41
|
+
# Unset PYTHONHOME if set.
|
|
42
|
+
if set -q PYTHONHOME
|
|
43
|
+
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
|
|
44
|
+
set -e PYTHONHOME
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
|
48
|
+
# fish uses a function instead of an env var to generate the prompt.
|
|
49
|
+
|
|
50
|
+
# Save the current fish_prompt function as the function _old_fish_prompt.
|
|
51
|
+
functions -c fish_prompt _old_fish_prompt
|
|
52
|
+
|
|
53
|
+
# With the original prompt function renamed, we can override with our own.
|
|
54
|
+
function fish_prompt
|
|
55
|
+
# Save the return status of the last command.
|
|
56
|
+
set -l old_status $status
|
|
57
|
+
|
|
58
|
+
# Output the venv prompt; color taken from the blue of the Python logo.
|
|
59
|
+
printf "%s%s%s" (set_color 4B8BBE) '(.venv_build) ' (set_color normal)
|
|
60
|
+
|
|
61
|
+
# Restore the return status of the previous command.
|
|
62
|
+
echo "exit $old_status" | .
|
|
63
|
+
# Output the original/"old" prompt.
|
|
64
|
+
_old_fish_prompt
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
|
68
|
+
set -gx VIRTUAL_ENV_PROMPT '(.venv_build) '
|
|
69
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.__main__ import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from keyring.cli import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from markdown_it.cli.parse import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from charset_normalizer.cli import cli_detect
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(cli_detect())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from pip._internal.cli.main import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from pip._internal.cli.main import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from pip._internal.cli.main import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from pygments.cmdline import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from build.__main__ import entrypoint
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(entrypoint())
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
python3.12
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
python3.12
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/usr/bin/python3.12
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2html
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2html())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2html4
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2html4())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2html5
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2html5())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2latex
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2latex())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2man
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2man())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2odt
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2odt())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2pseudoxml
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2pseudoxml())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2s5
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2s5())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2xetex
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2xetex())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from docutils.core import rst2xml
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(rst2xml())
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build/bin/python3.12
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
import re
|
|
4
|
+
import sys
|
|
5
|
+
from twine.__main__ import main
|
|
6
|
+
if __name__ == '__main__':
|
|
7
|
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
|
8
|
+
sys.exit(main())
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
home = /usr/bin
|
|
2
|
+
include-system-site-packages = false
|
|
3
|
+
version = 3.12.3
|
|
4
|
+
executable = /usr/bin/python3.12
|
|
5
|
+
command = /home/minkeymouse/kaggle_projects/hull-tactical/dfm-python/.venv/bin/python3 -m venv /home/minkeymouse/.cursor/worktrees/hull-tactical__SSH__10.8.0.1_/har/dfm-python/.venv_build
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dfm-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.11
|
|
4
4
|
Summary: Dynamic Factor Model (DFM) estimation and nowcasting in Python
|
|
5
5
|
Project-URL: Homepage, https://github.com/yourusername/dfm-python
|
|
6
6
|
Project-URL: Documentation, https://github.com/yourusername/dfm-python#readme
|
|
@@ -735,12 +735,12 @@ SQLite data view storage is planned for future releases. Currently, `BasicDataVi
|
|
|
735
735
|
# X_view, Time_view, config = adapter.load_data_view(view_id)
|
|
736
736
|
```
|
|
737
737
|
|
|
738
|
-
### News Decomposition
|
|
738
|
+
### Advanced News Decomposition
|
|
739
739
|
|
|
740
|
-
For advanced users,
|
|
740
|
+
For advanced users, low-level functions are available in the `nowcasting` module:
|
|
741
741
|
|
|
742
742
|
```python
|
|
743
|
-
from dfm_python.
|
|
743
|
+
from dfm_python.nowcasting import para_const
|
|
744
744
|
|
|
745
745
|
# Before new data release
|
|
746
746
|
result_old = model.fit(X_old, config)
|
|
@@ -752,7 +752,7 @@ X_new = ... # Updated data
|
|
|
752
752
|
Res_old = para_const(X_old, result_old, lag=1)
|
|
753
753
|
# ... (see nowcast.py for full implementation)
|
|
754
754
|
|
|
755
|
-
# Recommended: Use Nowcast class
|
|
755
|
+
# Recommended: Use Nowcast class for most use cases (see Nowcasting API section above)
|
|
756
756
|
```
|
|
757
757
|
|
|
758
758
|
### Custom Block Structure
|
|
@@ -1208,7 +1208,7 @@ DATA_VIEW_SOURCE=file # or database
|
|
|
1208
1208
|
|
|
1209
1209
|
## Project Status
|
|
1210
1210
|
|
|
1211
|
-
**Version**: 0.3.
|
|
1211
|
+
**Version**: 0.3.1
|
|
1212
1212
|
**Status**: Stable and production-ready
|
|
1213
1213
|
**Python**: 3.10+
|
|
1214
1214
|
**PyPI**: https://pypi.org/project/dfm-python/
|
|
@@ -1297,7 +1297,7 @@ If you use `dfm-python` in your research, please cite:
|
|
|
1297
1297
|
author = {DFM Python Contributors},
|
|
1298
1298
|
year = {2025},
|
|
1299
1299
|
url = {https://pypi.org/project/dfm-python/},
|
|
1300
|
-
version = {0.
|
|
1300
|
+
version = {0.3.1}
|
|
1301
1301
|
}
|
|
1302
1302
|
```
|
|
1303
1303
|
|
|
@@ -689,12 +689,12 @@ SQLite data view storage is planned for future releases. Currently, `BasicDataVi
|
|
|
689
689
|
# X_view, Time_view, config = adapter.load_data_view(view_id)
|
|
690
690
|
```
|
|
691
691
|
|
|
692
|
-
### News Decomposition
|
|
692
|
+
### Advanced News Decomposition
|
|
693
693
|
|
|
694
|
-
For advanced users,
|
|
694
|
+
For advanced users, low-level functions are available in the `nowcasting` module:
|
|
695
695
|
|
|
696
696
|
```python
|
|
697
|
-
from dfm_python.
|
|
697
|
+
from dfm_python.nowcasting import para_const
|
|
698
698
|
|
|
699
699
|
# Before new data release
|
|
700
700
|
result_old = model.fit(X_old, config)
|
|
@@ -706,7 +706,7 @@ X_new = ... # Updated data
|
|
|
706
706
|
Res_old = para_const(X_old, result_old, lag=1)
|
|
707
707
|
# ... (see nowcast.py for full implementation)
|
|
708
708
|
|
|
709
|
-
# Recommended: Use Nowcast class
|
|
709
|
+
# Recommended: Use Nowcast class for most use cases (see Nowcasting API section above)
|
|
710
710
|
```
|
|
711
711
|
|
|
712
712
|
### Custom Block Structure
|
|
@@ -1162,7 +1162,7 @@ DATA_VIEW_SOURCE=file # or database
|
|
|
1162
1162
|
|
|
1163
1163
|
## Project Status
|
|
1164
1164
|
|
|
1165
|
-
**Version**: 0.3.
|
|
1165
|
+
**Version**: 0.3.1
|
|
1166
1166
|
**Status**: Stable and production-ready
|
|
1167
1167
|
**Python**: 3.10+
|
|
1168
1168
|
**PyPI**: https://pypi.org/project/dfm-python/
|
|
@@ -1251,7 +1251,7 @@ If you use `dfm-python` in your research, please cite:
|
|
|
1251
1251
|
author = {DFM Python Contributors},
|
|
1252
1252
|
year = {2025},
|
|
1253
1253
|
url = {https://pypi.org/project/dfm-python/},
|
|
1254
|
-
version = {0.
|
|
1254
|
+
version = {0.3.1}
|
|
1255
1255
|
}
|
|
1256
1256
|
```
|
|
1257
1257
|
|
|
@@ -58,7 +58,7 @@ Example (Low-level API - For advanced usage):
|
|
|
58
58
|
For detailed documentation, see the README.md file and the tutorial notebooks/scripts.
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
|
-
__version__ = "0.3.
|
|
61
|
+
__version__ = "0.3.11"
|
|
62
62
|
|
|
63
63
|
# ============================================================================
|
|
64
64
|
# PUBLIC API DEFINITION
|
|
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
|
|
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
|
|
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
|