timecopilot 0.0.2__tar.gz → 0.0.4__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.
- timecopilot-0.0.4/.github/workflows/ci.yaml +32 -0
- timecopilot-0.0.4/.github/workflows/lint.yaml +20 -0
- timecopilot-0.0.4/.github/workflows/release.yaml +37 -0
- timecopilot-0.0.4/.gitignore +162 -0
- timecopilot-0.0.4/.pre-commit-config.yaml +19 -0
- timecopilot-0.0.4/LICENSE +21 -0
- timecopilot-0.0.4/PKG-INFO +102 -0
- timecopilot-0.0.4/README.md +69 -0
- timecopilot-0.0.4/pyproject.toml +89 -0
- timecopilot-0.0.4/slides/open-source-isf/img/ai-agent-def.png +0 -0
- timecopilot-0.0.4/slides/open-source-isf/img/ai-agent.png +0 -0
- timecopilot-0.0.4/slides/open-source-isf/img/multimodal-agents.png +0 -0
- timecopilot-0.0.4/slides/open-source-isf/slides.md +166 -0
- timecopilot-0.0.4/tests/test_eval.py +157 -0
- timecopilot-0.0.4/tests/test_models.py +71 -0
- timecopilot-0.0.4/tests/utils.py +4 -0
- timecopilot-0.0.4/timecopilot/__init__.py +3 -0
- timecopilot-0.0.4/timecopilot/_cli.py +44 -0
- timecopilot-0.0.4/timecopilot/agent.py +453 -0
- timecopilot-0.0.4/timecopilot/models/__init__.py +0 -0
- timecopilot-0.0.4/timecopilot/models/benchmarks/__init__.py +27 -0
- timecopilot-0.0.4/timecopilot/models/benchmarks/stats.py +310 -0
- timecopilot-0.0.4/timecopilot/models/utils/__init__.py +0 -0
- timecopilot-0.0.4/timecopilot/models/utils/forecaster.py +88 -0
- timecopilot-0.0.4/timecopilot/utils/__init__.py +0 -0
- timecopilot-0.0.4/timecopilot/utils/experiment_handler.py +191 -0
- timecopilot-0.0.4/uv.lock +2438 -0
- timecopilot-0.0.2/LICENSE +0 -201
- timecopilot-0.0.2/PKG-INFO +0 -9
- timecopilot-0.0.2/README.md +0 -47
- timecopilot-0.0.2/pyproject.toml +0 -51
- timecopilot-0.0.2/setup.cfg +0 -4
- timecopilot-0.0.2/tests/test_main.py +0 -5
- timecopilot-0.0.2/timecopilot/main.py +0 -2
- timecopilot-0.0.2/timecopilot.egg-info/PKG-INFO +0 -9
- timecopilot-0.0.2/timecopilot.egg-info/SOURCES.txt +0 -11
- timecopilot-0.0.2/timecopilot.egg-info/dependency_links.txt +0 -1
- timecopilot-0.0.2/timecopilot.egg-info/requires.txt +0 -3
- timecopilot-0.0.2/timecopilot.egg-info/top_level.txt +0 -1
- {timecopilot-0.0.2/timecopilot → timecopilot-0.0.4/tests}/__init__.py +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
name: test on ${{ matrix.python-version }}
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
17
|
+
env:
|
|
18
|
+
UV_PYTHON: ${{ matrix.python-version }}
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Clone repo
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up uv
|
|
25
|
+
uses: astral-sh/setup-uv@v6
|
|
26
|
+
with:
|
|
27
|
+
enable-cache: true
|
|
28
|
+
|
|
29
|
+
- name: Run tests
|
|
30
|
+
run: uv run pytest
|
|
31
|
+
|
|
32
|
+
- name: uv run -- python -c "from timecopilot import TimeCopilot"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: lint and style checks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
lint:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Clone repo
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Set up uv
|
|
17
|
+
uses: astral-sh/setup-uv@v6
|
|
18
|
+
|
|
19
|
+
- name: Run pre-commit
|
|
20
|
+
run: uvx pre-commit run --all-files
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- v*
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
pypi:
|
|
10
|
+
name: Publish to PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
environment:
|
|
13
|
+
name: release
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write
|
|
17
|
+
steps:
|
|
18
|
+
- name: Clone repo
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Set up uv
|
|
22
|
+
uses: astral-sh/setup-uv@v6
|
|
23
|
+
|
|
24
|
+
- name: Build package
|
|
25
|
+
run: uv build
|
|
26
|
+
|
|
27
|
+
- name: Perform import test (wheel)
|
|
28
|
+
run: uv run --isolated --no-project -p 3.13 --with dist/*.whl -- python -c "from timecopilot import TimeCopilot"
|
|
29
|
+
|
|
30
|
+
- name: Perform import test (source distribution)
|
|
31
|
+
run: uv run --isolated --no-project -p 3.13 --with dist/*.tar.gz -- python -c "from timecopilot import TimeCopilot"
|
|
32
|
+
|
|
33
|
+
- name: Publish package
|
|
34
|
+
run: uv publish --trusted-publishing always
|
|
35
|
+
|
|
36
|
+
- name: After publishing test
|
|
37
|
+
run: uv run --isolated --no-project -p 3.13 --with timecopilot -- python -c "from timecopilot import TimeCopilot"
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
#.idea/
|
|
161
|
+
|
|
162
|
+
*.DS_Store
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
fail_fast: true
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
4
|
+
rev: v0.2.1
|
|
5
|
+
hooks:
|
|
6
|
+
- id: ruff
|
|
7
|
+
args: [--fix]
|
|
8
|
+
- id: ruff-format
|
|
9
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
10
|
+
rev: v1.8.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: mypy
|
|
13
|
+
args: [--ignore-missing-imports, --check-untyped-defs]
|
|
14
|
+
additional_dependencies: [types-PyYAML]
|
|
15
|
+
- repo: https://github.com/pappasam/toml-sort
|
|
16
|
+
rev: v0.24.2
|
|
17
|
+
hooks:
|
|
18
|
+
- id: toml-sort
|
|
19
|
+
args: ["--all", "--trailing-comma-inline-array"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Azul Garza
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: timecopilot
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: The GenAI Forecasting Agent · LLMs × Foundation Time Series Models
|
|
5
|
+
Author-email: Azul Garza <azul.garza.r@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Intended Audience :: Information Technology
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Internet
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Requires-Dist: fire
|
|
25
|
+
Requires-Dist: gluonts
|
|
26
|
+
Requires-Dist: pydantic-ai[logfire]
|
|
27
|
+
Requires-Dist: python-dotenv
|
|
28
|
+
Requires-Dist: scipy<=1.15.3
|
|
29
|
+
Requires-Dist: statsforecast
|
|
30
|
+
Requires-Dist: tsfeatures
|
|
31
|
+
Requires-Dist: utilsforecast
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
<div align="center">
|
|
35
|
+
<a href="[https://ai.pydantic.dev/](https://github.com/AzulGarza/TimeCopilot)">
|
|
36
|
+
<picture>
|
|
37
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/27fdd7c8-483e-4339-bc54-23323582b39d">
|
|
38
|
+
<img src="https://github.com/user-attachments/assets/7fdba4f2-e279-4fdf-b559-2829b5fe2143" alt="TimeCopilot">
|
|
39
|
+
</picture>
|
|
40
|
+
</a>
|
|
41
|
+
</div>
|
|
42
|
+
<div align="center">
|
|
43
|
+
<em>The GenAI Forecasting Agent · LLMs × Foundation Time Series Models</em>
|
|
44
|
+
</div>
|
|
45
|
+
<div align="center">
|
|
46
|
+
<a href="https://github.com/AzulGarza/TimeCopilot/actions/workflows/ci.yaml"><img src="https://github.com/AzulGarza/TimeCopilot/actions/workflows/ci.yaml/badge.svg?branch=main" alt="CI"></a>
|
|
47
|
+
<a href="https://pypi.python.org/pypi/timecopilot"><img src="https://img.shields.io/pypi/v/timecopilot.svg" alt="PyPI"></a>
|
|
48
|
+
<a href="https://github.com/AzulGarza/timecopilot"><img src="https://img.shields.io/pypi/pyversions/timecopilot.svg" alt="versions"></a>
|
|
49
|
+
<a href="https://github.com/AzulGarza/timecopilot/blob/main/LICENSE"><img src="https://img.shields.io/github/license/azulgarza/timecopilot.svg?v" alt="license"></a>
|
|
50
|
+
<a href="https://discord.gg/7GEdHR6Pfg"><img src="https://img.shields.io/discord/1387291858513821776?label=discord" alt="Join Discord" /></a>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# python-project-template
|
|
57
|
+
> a simple template for organizing any python project.
|
|
58
|
+
|
|
59
|
+
## setup & environment
|
|
60
|
+
|
|
61
|
+
this template is designed to streamline the setup of any python project. follow these steps to get started:
|
|
62
|
+
|
|
63
|
+
### 1. install [`uv`](https://github.com/astral-sh/uv/)
|
|
64
|
+
|
|
65
|
+
use `uv` to manage your virtual environments:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install uv
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 2. create a virtual environment
|
|
72
|
+
|
|
73
|
+
create an environment (or your preferred version):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uv venv
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 3. activate the environment
|
|
80
|
+
|
|
81
|
+
activate the virtual environment:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
source .venv/bin/activate
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 4. install dependencies
|
|
88
|
+
|
|
89
|
+
install all the required dependencies from the `requirements.txt` file:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
uv pip install -e .
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 5. install pre-commits
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pre-commit install
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## ready to code
|
|
102
|
+
you're now all set to start building your project.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="[https://ai.pydantic.dev/](https://github.com/AzulGarza/TimeCopilot)">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/27fdd7c8-483e-4339-bc54-23323582b39d">
|
|
5
|
+
<img src="https://github.com/user-attachments/assets/7fdba4f2-e279-4fdf-b559-2829b5fe2143" alt="TimeCopilot">
|
|
6
|
+
</picture>
|
|
7
|
+
</a>
|
|
8
|
+
</div>
|
|
9
|
+
<div align="center">
|
|
10
|
+
<em>The GenAI Forecasting Agent · LLMs × Foundation Time Series Models</em>
|
|
11
|
+
</div>
|
|
12
|
+
<div align="center">
|
|
13
|
+
<a href="https://github.com/AzulGarza/TimeCopilot/actions/workflows/ci.yaml"><img src="https://github.com/AzulGarza/TimeCopilot/actions/workflows/ci.yaml/badge.svg?branch=main" alt="CI"></a>
|
|
14
|
+
<a href="https://pypi.python.org/pypi/timecopilot"><img src="https://img.shields.io/pypi/v/timecopilot.svg" alt="PyPI"></a>
|
|
15
|
+
<a href="https://github.com/AzulGarza/timecopilot"><img src="https://img.shields.io/pypi/pyversions/timecopilot.svg" alt="versions"></a>
|
|
16
|
+
<a href="https://github.com/AzulGarza/timecopilot/blob/main/LICENSE"><img src="https://img.shields.io/github/license/azulgarza/timecopilot.svg?v" alt="license"></a>
|
|
17
|
+
<a href="https://discord.gg/7GEdHR6Pfg"><img src="https://img.shields.io/discord/1387291858513821776?label=discord" alt="Join Discord" /></a>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# python-project-template
|
|
24
|
+
> a simple template for organizing any python project.
|
|
25
|
+
|
|
26
|
+
## setup & environment
|
|
27
|
+
|
|
28
|
+
this template is designed to streamline the setup of any python project. follow these steps to get started:
|
|
29
|
+
|
|
30
|
+
### 1. install [`uv`](https://github.com/astral-sh/uv/)
|
|
31
|
+
|
|
32
|
+
use `uv` to manage your virtual environments:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install uv
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2. create a virtual environment
|
|
39
|
+
|
|
40
|
+
create an environment (or your preferred version):
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
uv venv
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 3. activate the environment
|
|
47
|
+
|
|
48
|
+
activate the virtual environment:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
source .venv/bin/activate
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 4. install dependencies
|
|
55
|
+
|
|
56
|
+
install all the required dependencies from the `requirements.txt` file:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
uv pip install -e .
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 5. install pre-commits
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pre-commit install
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## ready to code
|
|
69
|
+
you're now all set to start building your project.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "timecopilot"
|
|
7
|
+
version = "0.0.4"
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
description = "The GenAI Forecasting Agent · LLMs × Foundation Time Series Models"
|
|
10
|
+
authors = [
|
|
11
|
+
{ name = "Azul Garza", email = "azul.garza.r@gmail.com" }
|
|
12
|
+
]
|
|
13
|
+
license = "MIT"
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Programming Language :: Python",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Intended Audience :: Developers",
|
|
25
|
+
"Intended Audience :: Information Technology",
|
|
26
|
+
"License :: OSI Approved :: MIT License",
|
|
27
|
+
"Operating System :: OS Independent",
|
|
28
|
+
"Topic :: Internet",
|
|
29
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
30
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
31
|
+
]
|
|
32
|
+
dependencies = [
|
|
33
|
+
"fire",
|
|
34
|
+
"gluonts",
|
|
35
|
+
"pydantic-ai[logfire]",
|
|
36
|
+
"python-dotenv",
|
|
37
|
+
"scipy<=1.15.3",
|
|
38
|
+
"statsforecast",
|
|
39
|
+
"tsfeatures",
|
|
40
|
+
"utilsforecast",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[dependency-groups]
|
|
44
|
+
dev = [
|
|
45
|
+
"pre-commit",
|
|
46
|
+
"pytest",
|
|
47
|
+
"pytest-cov",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[project.scripts]
|
|
51
|
+
timecopilot = "timecopilot._cli:main"
|
|
52
|
+
|
|
53
|
+
[tool.coverage]
|
|
54
|
+
branch = true
|
|
55
|
+
source = ["timecopilot"]
|
|
56
|
+
|
|
57
|
+
[tool.coverage.run]
|
|
58
|
+
omit = [
|
|
59
|
+
"tests/*",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.coverage.report]
|
|
63
|
+
fail_under = 80
|
|
64
|
+
show_missing = true
|
|
65
|
+
|
|
66
|
+
[tool.mypy]
|
|
67
|
+
disable_error_code = ["no-redef"] # for fasthtml
|
|
68
|
+
|
|
69
|
+
[tool.pytest.ini_options]
|
|
70
|
+
testpaths = ["tests"]
|
|
71
|
+
|
|
72
|
+
[tool.ruff]
|
|
73
|
+
fix = true
|
|
74
|
+
line-length = 88
|
|
75
|
+
src = ["timecopilot"]
|
|
76
|
+
|
|
77
|
+
[tool.ruff.format]
|
|
78
|
+
docstring-code-format = true
|
|
79
|
+
docstring-code-line-length = 20
|
|
80
|
+
|
|
81
|
+
[tool.ruff.lint]
|
|
82
|
+
select = ["E", "F", "UP", "B", "SIM", "I"]
|
|
83
|
+
ignore = [
|
|
84
|
+
"F811", # redefined function, this is helpful for fasthtml
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
[tool.ruff.lint.isort]
|
|
88
|
+
known-local-folder = ["timecopilot"]
|
|
89
|
+
no-lines-before = ["local-folder"]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|