core-markets 0.0.0__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.
- core_markets-0.0.0/LICENSE +21 -0
- core_markets-0.0.0/PKG-INFO +197 -0
- core_markets-0.0.0/README.rst +162 -0
- core_markets-0.0.0/core_markets/__init__.py +17 -0
- core_markets-0.0.0/core_markets/py.typed +0 -0
- core_markets-0.0.0/core_markets.egg-info/PKG-INFO +197 -0
- core_markets-0.0.0/core_markets.egg-info/SOURCES.txt +11 -0
- core_markets-0.0.0/core_markets.egg-info/dependency_links.txt +1 -0
- core_markets-0.0.0/core_markets.egg-info/requires.txt +4 -0
- core_markets-0.0.0/core_markets.egg-info/top_level.txt +1 -0
- core_markets-0.0.0/pyproject.toml +67 -0
- core_markets-0.0.0/setup.cfg +4 -0
- core_markets-0.0.0/setup.py +6 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alejandro Cora González.
|
|
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,197 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: core-markets
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Market utilities (hours, calendars, indicators) and clients for market data providers and trading platforms.
|
|
5
|
+
Author-email: Alejandro Cora González <alek.cora.glez@gmail.com>
|
|
6
|
+
Maintainer: Alejandro Cora González
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://gitlab.com/bytecode-solutions/core/core-markets
|
|
9
|
+
Project-URL: Repository, https://gitlab.com/bytecode-solutions/core/core-markets
|
|
10
|
+
Project-URL: Documentation, https://core-markets.readthedocs.io/en/latest/
|
|
11
|
+
Project-URL: Issues, https://gitlab.com/bytecode-solutions/core/core-markets/-/issues
|
|
12
|
+
Project-URL: Changelog, https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/CHANGELOG.md
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
27
|
+
Classifier: Typing :: Typed
|
|
28
|
+
Requires-Python: >=3.9
|
|
29
|
+
Description-Content-Type: text/x-rst
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: core-dev-tools>=2.1.2; extra == "dev"
|
|
33
|
+
Requires-Dist: core-tests>=2.3.0; extra == "dev"
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
|
|
36
|
+
core-markets
|
|
37
|
+
===============================================================================
|
|
38
|
+
|
|
39
|
+
Market utilities and clients for market data providers and trading platforms,
|
|
40
|
+
as the base for other projects or libraries...
|
|
41
|
+
|
|
42
|
+
===============================================================================
|
|
43
|
+
|
|
44
|
+
.. image:: https://static.pepy.tech/personalized-badge/core-markets?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads
|
|
45
|
+
:target: https://pepy.tech/projects/core-markets
|
|
46
|
+
:alt: PyPI Downloads
|
|
47
|
+
|
|
48
|
+
.. image:: https://img.shields.io/pypi/pyversions/core-markets.svg
|
|
49
|
+
:target: https://pypi.org/project/core-markets/
|
|
50
|
+
:alt: Python Versions
|
|
51
|
+
|
|
52
|
+
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
|
|
53
|
+
:target: https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/LICENSE
|
|
54
|
+
:alt: License
|
|
55
|
+
|
|
56
|
+
.. image:: https://gitlab.com/bytecode-solutions/core/core-markets/badges/release/pipeline.svg
|
|
57
|
+
:target: https://gitlab.com/bytecode-solutions/core/core-markets/-/pipelines
|
|
58
|
+
:alt: Pipeline Status
|
|
59
|
+
|
|
60
|
+
.. image:: https://readthedocs.org/projects/core-markets/badge/?version=latest
|
|
61
|
+
:target: https://readthedocs.org/projects/core-markets/
|
|
62
|
+
:alt: Docs Status
|
|
63
|
+
|
|
64
|
+
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
|
|
65
|
+
:target: https://github.com/PyCQA/bandit
|
|
66
|
+
:alt: Security
|
|
67
|
+
|
|
68
|
+
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
===============================================================================
|
|
73
|
+
|
|
74
|
+
Install from PyPI using pip:
|
|
75
|
+
|
|
76
|
+
.. code-block:: bash
|
|
77
|
+
|
|
78
|
+
pip install core-markets
|
|
79
|
+
uv pip install core-markets # Or using UV...
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
Features
|
|
83
|
+
===============================================================================
|
|
84
|
+
|
|
85
|
+
.. note::
|
|
86
|
+
|
|
87
|
+
This project is at an early stage: the package is scaffolded and
|
|
88
|
+
has no public modules yet. The areas below are planned, not available.
|
|
89
|
+
|
|
90
|
+
**Market utilities** (planned)
|
|
91
|
+
- Market hours and holidays
|
|
92
|
+
- Technical indicators
|
|
93
|
+
|
|
94
|
+
**Provider clients** (planned)
|
|
95
|
+
- Clients for market data providers and trading platforms.
|
|
96
|
+
Each one is installed as an extra (for example ``core-markets[finnhub]``),
|
|
97
|
+
so its dependencies are only pulled in when needed.
|
|
98
|
+
|
|
99
|
+
``core-markets`` has no runtime dependencies on purpose: the pure utilities
|
|
100
|
+
install without dragging in an HTTP client or any other transitive package.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
Quick Start
|
|
104
|
+
===============================================================================
|
|
105
|
+
|
|
106
|
+
Installation
|
|
107
|
+
-------------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
Install the package:
|
|
110
|
+
|
|
111
|
+
.. code-block:: bash
|
|
112
|
+
|
|
113
|
+
pip install core-markets
|
|
114
|
+
uv pip install core-markets # Or using UV...
|
|
115
|
+
pip install -e ".[dev]" # For development...
|
|
116
|
+
|
|
117
|
+
Setting Up Environment
|
|
118
|
+
-------------------------------------------------------------------------------
|
|
119
|
+
|
|
120
|
+
1. Install required libraries:
|
|
121
|
+
|
|
122
|
+
.. code-block:: bash
|
|
123
|
+
|
|
124
|
+
pip install --upgrade pip
|
|
125
|
+
pip install virtualenv
|
|
126
|
+
|
|
127
|
+
2. Create Python virtual environment:
|
|
128
|
+
|
|
129
|
+
.. code-block:: bash
|
|
130
|
+
|
|
131
|
+
virtualenv --python=python3.12 .venv
|
|
132
|
+
|
|
133
|
+
3. Activate the virtual environment:
|
|
134
|
+
|
|
135
|
+
.. code-block:: bash
|
|
136
|
+
|
|
137
|
+
source .venv/bin/activate
|
|
138
|
+
|
|
139
|
+
Install packages
|
|
140
|
+
-------------------------------------------------------------------------------
|
|
141
|
+
|
|
142
|
+
.. code-block:: bash
|
|
143
|
+
|
|
144
|
+
pip install .
|
|
145
|
+
pip install -e ".[dev]"
|
|
146
|
+
|
|
147
|
+
Check tests and coverage
|
|
148
|
+
-------------------------------------------------------------------------------
|
|
149
|
+
|
|
150
|
+
.. code-block:: shell
|
|
151
|
+
|
|
152
|
+
python manager.py run-tests # unit tests (default)
|
|
153
|
+
python manager.py run-tests -t integration # integration tests
|
|
154
|
+
python manager.py run-tests -t functional -p "*.py" # functional tests
|
|
155
|
+
python manager.py run-coverage # all tests with coverage
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
Contributing
|
|
159
|
+
===============================================================================
|
|
160
|
+
|
|
161
|
+
Contributions are welcome! Please:
|
|
162
|
+
|
|
163
|
+
1. Fork the repository
|
|
164
|
+
2. Create a feature branch
|
|
165
|
+
3. Write tests for new functionality
|
|
166
|
+
4. Ensure all tests pass: ``python manager.py run-tests``
|
|
167
|
+
5. Run linting: ``pylint core_markets``
|
|
168
|
+
6. Run security checks: ``bandit -r core_markets``
|
|
169
|
+
7. Submit a pull request
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
License
|
|
173
|
+
===============================================================================
|
|
174
|
+
|
|
175
|
+
This project is licensed under the MIT License. See the LICENSE file for details.
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
Links
|
|
179
|
+
===============================================================================
|
|
180
|
+
|
|
181
|
+
* **Documentation:** https://core-markets.readthedocs.io/en/latest/
|
|
182
|
+
* **Repository:** https://gitlab.com/bytecode-solutions/core/core-markets
|
|
183
|
+
* **Issues:** https://gitlab.com/bytecode-solutions/core/core-markets/-/issues
|
|
184
|
+
* **Changelog:** https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/CHANGELOG.md
|
|
185
|
+
* **PyPI:** https://pypi.org/project/core-markets/
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
Support
|
|
189
|
+
===============================================================================
|
|
190
|
+
|
|
191
|
+
For questions or support, please open an issue on GitLab or contact the maintainers.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
Authors
|
|
195
|
+
===============================================================================
|
|
196
|
+
|
|
197
|
+
* **Alejandro Cora González** - *Initial work* - alek.cora.glez@gmail.com
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
core-markets
|
|
2
|
+
===============================================================================
|
|
3
|
+
|
|
4
|
+
Market utilities and clients for market data providers and trading platforms,
|
|
5
|
+
as the base for other projects or libraries...
|
|
6
|
+
|
|
7
|
+
===============================================================================
|
|
8
|
+
|
|
9
|
+
.. image:: https://static.pepy.tech/personalized-badge/core-markets?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads
|
|
10
|
+
:target: https://pepy.tech/projects/core-markets
|
|
11
|
+
:alt: PyPI Downloads
|
|
12
|
+
|
|
13
|
+
.. image:: https://img.shields.io/pypi/pyversions/core-markets.svg
|
|
14
|
+
:target: https://pypi.org/project/core-markets/
|
|
15
|
+
:alt: Python Versions
|
|
16
|
+
|
|
17
|
+
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
|
|
18
|
+
:target: https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/LICENSE
|
|
19
|
+
:alt: License
|
|
20
|
+
|
|
21
|
+
.. image:: https://gitlab.com/bytecode-solutions/core/core-markets/badges/release/pipeline.svg
|
|
22
|
+
:target: https://gitlab.com/bytecode-solutions/core/core-markets/-/pipelines
|
|
23
|
+
:alt: Pipeline Status
|
|
24
|
+
|
|
25
|
+
.. image:: https://readthedocs.org/projects/core-markets/badge/?version=latest
|
|
26
|
+
:target: https://readthedocs.org/projects/core-markets/
|
|
27
|
+
:alt: Docs Status
|
|
28
|
+
|
|
29
|
+
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
|
|
30
|
+
:target: https://github.com/PyCQA/bandit
|
|
31
|
+
:alt: Security
|
|
32
|
+
|
|
33
|
+
|
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
Installation
|
|
37
|
+
===============================================================================
|
|
38
|
+
|
|
39
|
+
Install from PyPI using pip:
|
|
40
|
+
|
|
41
|
+
.. code-block:: bash
|
|
42
|
+
|
|
43
|
+
pip install core-markets
|
|
44
|
+
uv pip install core-markets # Or using UV...
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
Features
|
|
48
|
+
===============================================================================
|
|
49
|
+
|
|
50
|
+
.. note::
|
|
51
|
+
|
|
52
|
+
This project is at an early stage: the package is scaffolded and
|
|
53
|
+
has no public modules yet. The areas below are planned, not available.
|
|
54
|
+
|
|
55
|
+
**Market utilities** (planned)
|
|
56
|
+
- Market hours and holidays
|
|
57
|
+
- Technical indicators
|
|
58
|
+
|
|
59
|
+
**Provider clients** (planned)
|
|
60
|
+
- Clients for market data providers and trading platforms.
|
|
61
|
+
Each one is installed as an extra (for example ``core-markets[finnhub]``),
|
|
62
|
+
so its dependencies are only pulled in when needed.
|
|
63
|
+
|
|
64
|
+
``core-markets`` has no runtime dependencies on purpose: the pure utilities
|
|
65
|
+
install without dragging in an HTTP client or any other transitive package.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
Quick Start
|
|
69
|
+
===============================================================================
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
-------------------------------------------------------------------------------
|
|
73
|
+
|
|
74
|
+
Install the package:
|
|
75
|
+
|
|
76
|
+
.. code-block:: bash
|
|
77
|
+
|
|
78
|
+
pip install core-markets
|
|
79
|
+
uv pip install core-markets # Or using UV...
|
|
80
|
+
pip install -e ".[dev]" # For development...
|
|
81
|
+
|
|
82
|
+
Setting Up Environment
|
|
83
|
+
-------------------------------------------------------------------------------
|
|
84
|
+
|
|
85
|
+
1. Install required libraries:
|
|
86
|
+
|
|
87
|
+
.. code-block:: bash
|
|
88
|
+
|
|
89
|
+
pip install --upgrade pip
|
|
90
|
+
pip install virtualenv
|
|
91
|
+
|
|
92
|
+
2. Create Python virtual environment:
|
|
93
|
+
|
|
94
|
+
.. code-block:: bash
|
|
95
|
+
|
|
96
|
+
virtualenv --python=python3.12 .venv
|
|
97
|
+
|
|
98
|
+
3. Activate the virtual environment:
|
|
99
|
+
|
|
100
|
+
.. code-block:: bash
|
|
101
|
+
|
|
102
|
+
source .venv/bin/activate
|
|
103
|
+
|
|
104
|
+
Install packages
|
|
105
|
+
-------------------------------------------------------------------------------
|
|
106
|
+
|
|
107
|
+
.. code-block:: bash
|
|
108
|
+
|
|
109
|
+
pip install .
|
|
110
|
+
pip install -e ".[dev]"
|
|
111
|
+
|
|
112
|
+
Check tests and coverage
|
|
113
|
+
-------------------------------------------------------------------------------
|
|
114
|
+
|
|
115
|
+
.. code-block:: shell
|
|
116
|
+
|
|
117
|
+
python manager.py run-tests # unit tests (default)
|
|
118
|
+
python manager.py run-tests -t integration # integration tests
|
|
119
|
+
python manager.py run-tests -t functional -p "*.py" # functional tests
|
|
120
|
+
python manager.py run-coverage # all tests with coverage
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Contributing
|
|
124
|
+
===============================================================================
|
|
125
|
+
|
|
126
|
+
Contributions are welcome! Please:
|
|
127
|
+
|
|
128
|
+
1. Fork the repository
|
|
129
|
+
2. Create a feature branch
|
|
130
|
+
3. Write tests for new functionality
|
|
131
|
+
4. Ensure all tests pass: ``python manager.py run-tests``
|
|
132
|
+
5. Run linting: ``pylint core_markets``
|
|
133
|
+
6. Run security checks: ``bandit -r core_markets``
|
|
134
|
+
7. Submit a pull request
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
License
|
|
138
|
+
===============================================================================
|
|
139
|
+
|
|
140
|
+
This project is licensed under the MIT License. See the LICENSE file for details.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Links
|
|
144
|
+
===============================================================================
|
|
145
|
+
|
|
146
|
+
* **Documentation:** https://core-markets.readthedocs.io/en/latest/
|
|
147
|
+
* **Repository:** https://gitlab.com/bytecode-solutions/core/core-markets
|
|
148
|
+
* **Issues:** https://gitlab.com/bytecode-solutions/core/core-markets/-/issues
|
|
149
|
+
* **Changelog:** https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/CHANGELOG.md
|
|
150
|
+
* **PyPI:** https://pypi.org/project/core-markets/
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
Support
|
|
154
|
+
===============================================================================
|
|
155
|
+
|
|
156
|
+
For questions or support, please open an issue on GitLab or contact the maintainers.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
Authors
|
|
160
|
+
===============================================================================
|
|
161
|
+
|
|
162
|
+
* **Alejandro Cora González** - *Initial work* - alek.cora.glez@gmail.com
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Core markets package providing market utilities and
|
|
3
|
+
clients for market data providers and trading platforms.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
__version__ = version("core-markets")
|
|
10
|
+
|
|
11
|
+
except PackageNotFoundError:
|
|
12
|
+
__version__ = "unknown"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"__version__",
|
|
17
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: core-markets
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Market utilities (hours, calendars, indicators) and clients for market data providers and trading platforms.
|
|
5
|
+
Author-email: Alejandro Cora González <alek.cora.glez@gmail.com>
|
|
6
|
+
Maintainer: Alejandro Cora González
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://gitlab.com/bytecode-solutions/core/core-markets
|
|
9
|
+
Project-URL: Repository, https://gitlab.com/bytecode-solutions/core/core-markets
|
|
10
|
+
Project-URL: Documentation, https://core-markets.readthedocs.io/en/latest/
|
|
11
|
+
Project-URL: Issues, https://gitlab.com/bytecode-solutions/core/core-markets/-/issues
|
|
12
|
+
Project-URL: Changelog, https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/CHANGELOG.md
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
27
|
+
Classifier: Typing :: Typed
|
|
28
|
+
Requires-Python: >=3.9
|
|
29
|
+
Description-Content-Type: text/x-rst
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: core-dev-tools>=2.1.2; extra == "dev"
|
|
33
|
+
Requires-Dist: core-tests>=2.3.0; extra == "dev"
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
|
|
36
|
+
core-markets
|
|
37
|
+
===============================================================================
|
|
38
|
+
|
|
39
|
+
Market utilities and clients for market data providers and trading platforms,
|
|
40
|
+
as the base for other projects or libraries...
|
|
41
|
+
|
|
42
|
+
===============================================================================
|
|
43
|
+
|
|
44
|
+
.. image:: https://static.pepy.tech/personalized-badge/core-markets?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads
|
|
45
|
+
:target: https://pepy.tech/projects/core-markets
|
|
46
|
+
:alt: PyPI Downloads
|
|
47
|
+
|
|
48
|
+
.. image:: https://img.shields.io/pypi/pyversions/core-markets.svg
|
|
49
|
+
:target: https://pypi.org/project/core-markets/
|
|
50
|
+
:alt: Python Versions
|
|
51
|
+
|
|
52
|
+
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
|
|
53
|
+
:target: https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/LICENSE
|
|
54
|
+
:alt: License
|
|
55
|
+
|
|
56
|
+
.. image:: https://gitlab.com/bytecode-solutions/core/core-markets/badges/release/pipeline.svg
|
|
57
|
+
:target: https://gitlab.com/bytecode-solutions/core/core-markets/-/pipelines
|
|
58
|
+
:alt: Pipeline Status
|
|
59
|
+
|
|
60
|
+
.. image:: https://readthedocs.org/projects/core-markets/badge/?version=latest
|
|
61
|
+
:target: https://readthedocs.org/projects/core-markets/
|
|
62
|
+
:alt: Docs Status
|
|
63
|
+
|
|
64
|
+
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
|
|
65
|
+
:target: https://github.com/PyCQA/bandit
|
|
66
|
+
:alt: Security
|
|
67
|
+
|
|
68
|
+
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
===============================================================================
|
|
73
|
+
|
|
74
|
+
Install from PyPI using pip:
|
|
75
|
+
|
|
76
|
+
.. code-block:: bash
|
|
77
|
+
|
|
78
|
+
pip install core-markets
|
|
79
|
+
uv pip install core-markets # Or using UV...
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
Features
|
|
83
|
+
===============================================================================
|
|
84
|
+
|
|
85
|
+
.. note::
|
|
86
|
+
|
|
87
|
+
This project is at an early stage: the package is scaffolded and
|
|
88
|
+
has no public modules yet. The areas below are planned, not available.
|
|
89
|
+
|
|
90
|
+
**Market utilities** (planned)
|
|
91
|
+
- Market hours and holidays
|
|
92
|
+
- Technical indicators
|
|
93
|
+
|
|
94
|
+
**Provider clients** (planned)
|
|
95
|
+
- Clients for market data providers and trading platforms.
|
|
96
|
+
Each one is installed as an extra (for example ``core-markets[finnhub]``),
|
|
97
|
+
so its dependencies are only pulled in when needed.
|
|
98
|
+
|
|
99
|
+
``core-markets`` has no runtime dependencies on purpose: the pure utilities
|
|
100
|
+
install without dragging in an HTTP client or any other transitive package.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
Quick Start
|
|
104
|
+
===============================================================================
|
|
105
|
+
|
|
106
|
+
Installation
|
|
107
|
+
-------------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
Install the package:
|
|
110
|
+
|
|
111
|
+
.. code-block:: bash
|
|
112
|
+
|
|
113
|
+
pip install core-markets
|
|
114
|
+
uv pip install core-markets # Or using UV...
|
|
115
|
+
pip install -e ".[dev]" # For development...
|
|
116
|
+
|
|
117
|
+
Setting Up Environment
|
|
118
|
+
-------------------------------------------------------------------------------
|
|
119
|
+
|
|
120
|
+
1. Install required libraries:
|
|
121
|
+
|
|
122
|
+
.. code-block:: bash
|
|
123
|
+
|
|
124
|
+
pip install --upgrade pip
|
|
125
|
+
pip install virtualenv
|
|
126
|
+
|
|
127
|
+
2. Create Python virtual environment:
|
|
128
|
+
|
|
129
|
+
.. code-block:: bash
|
|
130
|
+
|
|
131
|
+
virtualenv --python=python3.12 .venv
|
|
132
|
+
|
|
133
|
+
3. Activate the virtual environment:
|
|
134
|
+
|
|
135
|
+
.. code-block:: bash
|
|
136
|
+
|
|
137
|
+
source .venv/bin/activate
|
|
138
|
+
|
|
139
|
+
Install packages
|
|
140
|
+
-------------------------------------------------------------------------------
|
|
141
|
+
|
|
142
|
+
.. code-block:: bash
|
|
143
|
+
|
|
144
|
+
pip install .
|
|
145
|
+
pip install -e ".[dev]"
|
|
146
|
+
|
|
147
|
+
Check tests and coverage
|
|
148
|
+
-------------------------------------------------------------------------------
|
|
149
|
+
|
|
150
|
+
.. code-block:: shell
|
|
151
|
+
|
|
152
|
+
python manager.py run-tests # unit tests (default)
|
|
153
|
+
python manager.py run-tests -t integration # integration tests
|
|
154
|
+
python manager.py run-tests -t functional -p "*.py" # functional tests
|
|
155
|
+
python manager.py run-coverage # all tests with coverage
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
Contributing
|
|
159
|
+
===============================================================================
|
|
160
|
+
|
|
161
|
+
Contributions are welcome! Please:
|
|
162
|
+
|
|
163
|
+
1. Fork the repository
|
|
164
|
+
2. Create a feature branch
|
|
165
|
+
3. Write tests for new functionality
|
|
166
|
+
4. Ensure all tests pass: ``python manager.py run-tests``
|
|
167
|
+
5. Run linting: ``pylint core_markets``
|
|
168
|
+
6. Run security checks: ``bandit -r core_markets``
|
|
169
|
+
7. Submit a pull request
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
License
|
|
173
|
+
===============================================================================
|
|
174
|
+
|
|
175
|
+
This project is licensed under the MIT License. See the LICENSE file for details.
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
Links
|
|
179
|
+
===============================================================================
|
|
180
|
+
|
|
181
|
+
* **Documentation:** https://core-markets.readthedocs.io/en/latest/
|
|
182
|
+
* **Repository:** https://gitlab.com/bytecode-solutions/core/core-markets
|
|
183
|
+
* **Issues:** https://gitlab.com/bytecode-solutions/core/core-markets/-/issues
|
|
184
|
+
* **Changelog:** https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/CHANGELOG.md
|
|
185
|
+
* **PyPI:** https://pypi.org/project/core-markets/
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
Support
|
|
189
|
+
===============================================================================
|
|
190
|
+
|
|
191
|
+
For questions or support, please open an issue on GitLab or contact the maintainers.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
Authors
|
|
195
|
+
===============================================================================
|
|
196
|
+
|
|
197
|
+
* **Alejandro Cora González** - *Initial work* - alek.cora.glez@gmail.com
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.rst
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
core_markets/__init__.py
|
|
6
|
+
core_markets/py.typed
|
|
7
|
+
core_markets.egg-info/PKG-INFO
|
|
8
|
+
core_markets.egg-info/SOURCES.txt
|
|
9
|
+
core_markets.egg-info/dependency_links.txt
|
|
10
|
+
core_markets.egg-info/requires.txt
|
|
11
|
+
core_markets.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
core_markets
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Other project metadata fields as specified in:
|
|
2
|
+
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
|
|
3
|
+
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
|
|
4
|
+
|
|
5
|
+
[build-system]
|
|
6
|
+
requires = ["setuptools>=61.0.0", "wheel"]
|
|
7
|
+
build-backend = "setuptools.build_meta"
|
|
8
|
+
|
|
9
|
+
[project]
|
|
10
|
+
name = "core-markets"
|
|
11
|
+
description = """Market utilities (hours, calendars, indicators) and clients for market data providers and trading platforms."""
|
|
12
|
+
version = "0.0.0"
|
|
13
|
+
|
|
14
|
+
authors = [
|
|
15
|
+
{name = "Alejandro Cora González", email = "alek.cora.glez@gmail.com"}
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
maintainers = [
|
|
19
|
+
{name = "Alejandro Cora González"}
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
requires-python = ">=3.9"
|
|
23
|
+
license = "MIT"
|
|
24
|
+
readme = "README.rst"
|
|
25
|
+
|
|
26
|
+
classifiers = [
|
|
27
|
+
# Classifiers -> https://pypi.org/classifiers/
|
|
28
|
+
"Intended Audience :: Developers",
|
|
29
|
+
"Development Status :: 3 - Alpha",
|
|
30
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
31
|
+
"Topic :: Office/Business :: Financial :: Investment",
|
|
32
|
+
"Topic :: Utilities",
|
|
33
|
+
"Programming Language :: Python :: 3",
|
|
34
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
35
|
+
"Programming Language :: Python :: 3.9",
|
|
36
|
+
"Programming Language :: Python :: 3.10",
|
|
37
|
+
"Programming Language :: Python :: 3.11",
|
|
38
|
+
"Programming Language :: Python :: 3.12",
|
|
39
|
+
"Programming Language :: Python :: 3.13",
|
|
40
|
+
"Programming Language :: Python :: 3.14",
|
|
41
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
42
|
+
"Typing :: Typed",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
# No runtime dependencies on purpose: the pure utilities must install
|
|
46
|
+
# without dragging in an HTTP client. Provider clients will declare their
|
|
47
|
+
# own dependencies as extras (e.g. `core-markets[finnhub]`).
|
|
48
|
+
dependencies = []
|
|
49
|
+
|
|
50
|
+
[project.optional-dependencies]
|
|
51
|
+
dev = [
|
|
52
|
+
"core-dev-tools>=2.1.2",
|
|
53
|
+
"core-tests>=2.3.0",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
[project.urls]
|
|
57
|
+
Homepage = "https://gitlab.com/bytecode-solutions/core/core-markets"
|
|
58
|
+
Repository = "https://gitlab.com/bytecode-solutions/core/core-markets"
|
|
59
|
+
Documentation = "https://core-markets.readthedocs.io/en/latest/"
|
|
60
|
+
Issues = "https://gitlab.com/bytecode-solutions/core/core-markets/-/issues"
|
|
61
|
+
Changelog = "https://gitlab.com/bytecode-solutions/core/core-markets/-/blob/master/CHANGELOG.md"
|
|
62
|
+
|
|
63
|
+
[tool.setuptools.package-data]
|
|
64
|
+
"core_markets" = ["py.typed"]
|
|
65
|
+
|
|
66
|
+
[tool.pylint.design]
|
|
67
|
+
disable = ["too-few-public-methods"]
|