Skip to content

Commit c9f2bf5

Browse files
committed
Add initial code
1 parent 9be9830 commit c9f2bf5

100 files changed

Lines changed: 18165 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

AUTHORS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===
2+
### Quik Python project [QUIK  Python](https://github.com/Alex-Shur/quik_python)
3+
LEX — https://github.com/Alex-Shur
4+
5+
===
6+
### Authohr of QUIKSharp project [QUIKSharp](https://github.com/finsight/QUIKSharp)
7+
* Oleg Andrushko — [@nubick](https://github.com/nubick)
8+
* Victor Baybekov — [@buybackoff](https://github.com/buybackoff)
9+
* [@Pr0phet1c](https://github.com/Pr0phet1c)
10+
* [@SkyN](https://github.com/SkyN)
11+
* [@sm00vik](https://github.com/sm00vik)
12+
* [@spvik](https://github.com/spvik)
13+
* [@stanislav-111](https://github.com/stanislav-111)
14+

Examples/QuikPythonDemo/.gitignore

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
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 added to the global gitignore or merged into this project gitignore. For a PyCharm
158+
# project, it is recommended to leave this flag as it is.
159+
# PyCharm (https://www.jetbrains.com/pycharm/)
160+
.idea/
161+
162+
# VS Code
163+
.vscode/
164+
165+
# UV
166+
.uv/
167+
168+
# OS
169+
.DS_Store
170+
Thumbs.db
171+
172+
# Local development
173+
.env.local
174+
.env.development
175+
.env.test

Examples/QuikPythonDemo/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Основные команды
2+
3+
### Установка и настройка
4+
```bash
5+
# Установить UV (если не установлен)
6+
curl -LsSf https://astral.sh/uv/install.sh | sh
7+
8+
# Инициализация проекта
9+
uv sync
10+
11+
# Установка с dev зависимостями
12+
uv sync --dev
13+
```
14+
15+
### Запуск приложения
16+
```bash
17+
# Через console script
18+
uv run quik-python-demo
19+
20+
# Через модуль
21+
uv run python -m quik_python_demo.main
22+
23+
# Прямой запуск функции
24+
uv run python -c "import quik_python_demo; quik_python_demo.main()"
25+
```
26+
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "quik-python-demo"
7+
version = "1.0.0"
8+
description = "Python порт демо-приложения QuikSharp с использованием PyQt6"
9+
readme = "README.md"
10+
license = "Apache-2.0"
11+
authors = [
12+
{ name = "QuikPython Team" },
13+
]
14+
maintainers = [
15+
{ name = "QuikPython Team" },
16+
]
17+
keywords = [
18+
"quik",
19+
"trading",
20+
"python",
21+
"qt6",
22+
"pyqt6",
23+
"financial",
24+
"demo"
25+
]
26+
classifiers = [
27+
"Development Status :: 4 - Beta",
28+
"Intended Audience :: Developers",
29+
"Intended Audience :: Financial and Insurance Industry",
30+
"License :: OSI Approved :: Apache Software License",
31+
"Operating System :: OS Independent",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Topic :: Office/Business :: Financial :: Investment",
39+
"Topic :: Software Development :: Libraries :: Python Modules",
40+
"Topic :: Software Development :: User Interfaces",
41+
]
42+
requires-python = ">=3.11"
43+
dependencies = [
44+
"PyQt6>=6.5.0",
45+
"quik-python",
46+
"typing-extensions>=4.0.0; python_version<'3.10'",
47+
]
48+
49+
50+
[project.optional-dependencies]
51+
dev = [
52+
"pytest>=7.0.0",
53+
"pytest-qt>=4.0.0",
54+
"black>=22.0.0",
55+
"isort>=5.10.0",
56+
"flake8>=4.0.0",
57+
"mypy>=0.950",
58+
]
59+
60+
[project.urls]
61+
Homepage = "https://github.com/quikpython/quik-python-demo"
62+
Documentation = "https://github.com/quikpython/quik-python-demo/blob/main/README.md"
63+
Repository = "https://github.com/quikpython/quik-python-demo.git"
64+
Issues = "https://github.com/quikpython/quik-python-demo/issues"
65+
66+
[project.scripts]
67+
quik-python-demo = "quik_python_demo.main:main"
68+
69+
[tool.hatch.build.targets.wheel]
70+
packages = ["quik_python_demo"]
71+
72+
[tool.black]
73+
line-length = 88
74+
target-version = ['py38']
75+
include = '\.pyi?$'
76+
extend-exclude = '''
77+
/(
78+
# directories
79+
\.eggs
80+
| \.git
81+
| \.hg
82+
| \.mypy_cache
83+
| \.tox
84+
| \.venv
85+
| build
86+
| dist
87+
)/
88+
'''
89+
90+
[tool.isort]
91+
profile = "black"
92+
multi_line_output = 3
93+
line_length = 88
94+
known_first_party = ["quik_python_demo"]
95+
96+
[tool.mypy]
97+
python_version = "3.8"
98+
warn_return_any = true
99+
warn_unused_configs = true
100+
disallow_untyped_defs = true
101+
disallow_incomplete_defs = true
102+
check_untyped_defs = true
103+
disallow_untyped_decorators = true
104+
no_implicit_optional = true
105+
warn_redundant_casts = true
106+
warn_unused_ignores = true
107+
warn_no_return = true
108+
warn_unreachable = true
109+
strict_equality = true
110+
111+
[[tool.mypy.overrides]]
112+
module = "quik_python.*"
113+
ignore_missing_imports = true
114+
115+
[tool.pytest.ini_options]
116+
testpaths = ["tests"]
117+
python_files = ["test_*.py", "*_test.py"]
118+
python_classes = ["Test*"]
119+
python_functions = ["test_*"]
120+
addopts = [
121+
"--strict-markers",
122+
"--strict-config",
123+
"--verbose",
124+
]
125+
markers = [
126+
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
127+
"integration: marks tests as integration tests",
128+
]
129+
130+
[tool.uv.sources]
131+
quik-python = { path = "../../", editable = true }
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""
2+
QuikPython Demo - Python порт демо-приложения QuikSharp с использованием PyQt6
3+
4+
Этот пакет содержит портированную версию QuikSharpDemo,
5+
демонстрирующую возможности работы с QUIK через Python.
6+
"""
7+
8+
__version__ = "1.0.0"
9+
__author__ = "QuikPython Team"
10+
__email__ = "info@quikpython.demo"
11+
__license__ = "Apache-2.0"
12+
13+
# Ленивый импорт main функции
14+
def main():
15+
"""Точка входа приложения"""
16+
from .main import main as _main
17+
return _main()
18+
19+
__all__ = ["main", "__version__"]

0 commit comments

Comments
 (0)