fincore-py 0.1.0.dev4__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.
Files changed (57) hide show
  1. fincore_py-0.1.0.dev4/.github/workflows/ci.yml +47 -0
  2. fincore_py-0.1.0.dev4/.github/workflows/docs.yml +68 -0
  3. fincore_py-0.1.0.dev4/.github/workflows/publish.yml +129 -0
  4. fincore_py-0.1.0.dev4/.gitignore +16 -0
  5. fincore_py-0.1.0.dev4/Cargo.toml +19 -0
  6. fincore_py-0.1.0.dev4/LICENSE +21 -0
  7. fincore_py-0.1.0.dev4/MANIFEST.in +5 -0
  8. fincore_py-0.1.0.dev4/PKG-INFO +612 -0
  9. fincore_py-0.1.0.dev4/README.md +564 -0
  10. fincore_py-0.1.0.dev4/docs/_static/brand.css +101 -0
  11. fincore_py-0.1.0.dev4/docs/_static/fincore-wordmark.svg +14 -0
  12. fincore_py-0.1.0.dev4/docs/analytics_calculations.rst +460 -0
  13. fincore_py-0.1.0.dev4/docs/api.rst +54 -0
  14. fincore_py-0.1.0.dev4/docs/brand.rst +61 -0
  15. fincore_py-0.1.0.dev4/docs/concepts.rst +146 -0
  16. fincore_py-0.1.0.dev4/docs/conf.py +38 -0
  17. fincore_py-0.1.0.dev4/docs/finance_concepts.rst +130 -0
  18. fincore_py-0.1.0.dev4/docs/getting_started.rst +89 -0
  19. fincore_py-0.1.0.dev4/docs/index.rst +29 -0
  20. fincore_py-0.1.0.dev4/docs/schemas.rst +144 -0
  21. fincore_py-0.1.0.dev4/docs/streaming.rst +72 -0
  22. fincore_py-0.1.0.dev4/pyproject.toml +55 -0
  23. fincore_py-0.1.0.dev4/python/fincore/__init__.py +10 -0
  24. fincore_py-0.1.0.dev4/python/fincore/_version.py +24 -0
  25. fincore_py-0.1.0.dev4/python/fincore/analytics/__init__.py +13 -0
  26. fincore_py-0.1.0.dev4/python/fincore/analytics/engine.py +135 -0
  27. fincore_py-0.1.0.dev4/python/fincore/analytics/models.py +69 -0
  28. fincore_py-0.1.0.dev4/python/fincore/analytics/normalize.py +82 -0
  29. fincore_py-0.1.0.dev4/python/fincore/data/__init__.py +42 -0
  30. fincore_py-0.1.0.dev4/python/fincore/data/client.py +394 -0
  31. fincore_py-0.1.0.dev4/python/fincore/data/events.py +62 -0
  32. fincore_py-0.1.0.dev4/python/fincore/data/kafka.py +80 -0
  33. fincore_py-0.1.0.dev4/python/fincore/data/sources.py +26 -0
  34. fincore_py-0.1.0.dev4/python/fincore/data/utils.py +368 -0
  35. fincore_py-0.1.0.dev4/python/fincore_py.egg-info/PKG-INFO +612 -0
  36. fincore_py-0.1.0.dev4/python/fincore_py.egg-info/SOURCES.txt +55 -0
  37. fincore_py-0.1.0.dev4/python/fincore_py.egg-info/dependency_links.txt +1 -0
  38. fincore_py-0.1.0.dev4/python/fincore_py.egg-info/not-zip-safe +1 -0
  39. fincore_py-0.1.0.dev4/python/fincore_py.egg-info/requires.txt +12 -0
  40. fincore_py-0.1.0.dev4/python/fincore_py.egg-info/top_level.txt +1 -0
  41. fincore_py-0.1.0.dev4/requirements-docs.txt +2 -0
  42. fincore_py-0.1.0.dev4/requirements-kafka.txt +6 -0
  43. fincore_py-0.1.0.dev4/requirements.txt +15 -0
  44. fincore_py-0.1.0.dev4/setup.cfg +4 -0
  45. fincore_py-0.1.0.dev4/setup.py +18 -0
  46. fincore_py-0.1.0.dev4/src/analytics.rs +288 -0
  47. fincore_py-0.1.0.dev4/src/errors.rs +40 -0
  48. fincore_py-0.1.0.dev4/src/lib.rs +113 -0
  49. fincore_py-0.1.0.dev4/src/models.rs +122 -0
  50. fincore_py-0.1.0.dev4/src/pyconvert.rs +94 -0
  51. fincore_py-0.1.0.dev4/src/sources.rs +496 -0
  52. fincore_py-0.1.0.dev4/tests/conftest.py +178 -0
  53. fincore_py-0.1.0.dev4/tests/test_analytics.py +116 -0
  54. fincore_py-0.1.0.dev4/tests/test_data_client.py +77 -0
  55. fincore_py-0.1.0.dev4/tests/test_events.py +51 -0
  56. fincore_py-0.1.0.dev4/tests/test_utils.py +63 -0
  57. fincore_py-0.1.0.dev4/tox.ini +15 -0
@@ -0,0 +1,47 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ test:
15
+ name: Test
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Check out repository
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Install Rust
22
+ uses: dtolnay/rust-toolchain@stable
23
+
24
+ - name: Set up Python
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.14"
28
+
29
+ - name: Install tox
30
+ run: python -m pip install --upgrade pip tox
31
+
32
+ - name: Run tox
33
+ run: tox
34
+ env:
35
+ PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
36
+
37
+ - name: Upload coverage to Codecov
38
+ uses: codecov/codecov-action@v5
39
+ with:
40
+ files: coverage.xml
41
+ fail_ci_if_error: false
42
+
43
+ - name: Check Rust formatting
44
+ run: cargo fmt --check
45
+
46
+ - name: Check Rust crate
47
+ run: cargo check
@@ -0,0 +1,68 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "v*"
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+ pages: write
14
+ id-token: write
15
+
16
+ concurrency:
17
+ group: pages
18
+ cancel-in-progress: false
19
+
20
+ jobs:
21
+ build:
22
+ name: Build Sphinx docs
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Check out repository
26
+ uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0
29
+
30
+ - name: Install Rust
31
+ uses: dtolnay/rust-toolchain@stable
32
+
33
+ - name: Set up Python
34
+ uses: actions/setup-python@v5
35
+ with:
36
+ python-version: "3.14"
37
+
38
+ - name: Install docs dependencies
39
+ run: |
40
+ python -m pip install --upgrade pip
41
+ python -m pip install -e ".[docs]"
42
+ env:
43
+ PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
44
+
45
+ - name: Build docs
46
+ run: sphinx-build -b html docs docs/_build/html
47
+
48
+ - name: Configure GitHub Pages
49
+ uses: actions/configure-pages@v5
50
+ with:
51
+ enablement: true
52
+
53
+ - name: Upload Pages artifact
54
+ uses: actions/upload-pages-artifact@v3
55
+ with:
56
+ path: docs/_build/html
57
+
58
+ deploy:
59
+ name: Deploy to GitHub Pages
60
+ needs: build
61
+ runs-on: ubuntu-latest
62
+ environment:
63
+ name: github-pages
64
+ url: ${{ steps.deployment.outputs.page_url }}
65
+ steps:
66
+ - name: Deploy Pages artifact
67
+ id: deployment
68
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,129 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "v*"
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+
15
+ jobs:
16
+ build-sdist:
17
+ name: Build source distribution
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: Check out repository
21
+ uses: actions/checkout@v4
22
+ with:
23
+ fetch-depth: 0
24
+
25
+ - name: Install Rust
26
+ uses: dtolnay/rust-toolchain@stable
27
+
28
+ - name: Set up Python
29
+ uses: actions/setup-python@v5
30
+ with:
31
+ python-version: "3.14"
32
+
33
+ - name: Use unique development version on main
34
+ if: github.ref == 'refs/heads/main'
35
+ run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0.dev${GITHUB_RUN_NUMBER}" >> "$GITHUB_ENV"
36
+
37
+ - name: Install build dependencies
38
+ run: python -m pip install --upgrade pip build
39
+
40
+ - name: Build sdist
41
+ run: python -m build --sdist
42
+
43
+ - name: Upload sdist artifact
44
+ uses: actions/upload-artifact@v4
45
+ with:
46
+ name: sdist
47
+ path: dist/*
48
+
49
+ build-wheels:
50
+ name: Build wheels on ${{ matrix.os }}
51
+ if: startsWith(github.ref, 'refs/tags/v')
52
+ runs-on: ${{ matrix.os }}
53
+ strategy:
54
+ fail-fast: false
55
+ matrix:
56
+ os: [ubuntu-latest, macos-latest, windows-latest]
57
+ steps:
58
+ - name: Check out repository
59
+ uses: actions/checkout@v4
60
+ with:
61
+ fetch-depth: 0
62
+
63
+ - name: Install Rust
64
+ uses: dtolnay/rust-toolchain@stable
65
+
66
+ - name: Set up Python
67
+ uses: actions/setup-python@v5
68
+ with:
69
+ python-version: "3.14"
70
+
71
+ - name: Use unique development version on main
72
+ if: github.ref == 'refs/heads/main'
73
+ run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0.dev${GITHUB_RUN_NUMBER}" >> "$GITHUB_ENV"
74
+
75
+ - name: Install cibuildwheel
76
+ run: python -m pip install --upgrade pip cibuildwheel
77
+
78
+ - name: Build wheels
79
+ run: python -m cibuildwheel --output-dir dist
80
+ env:
81
+ CIBW_BUILD: "cp314-*"
82
+ CIBW_SKIP: "*-musllinux_*"
83
+ CIBW_ENVIRONMENT: "PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1"
84
+ CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal"
85
+ CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH" PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1'
86
+
87
+ - name: Upload wheel artifacts
88
+ uses: actions/upload-artifact@v4
89
+ with:
90
+ name: wheels-${{ matrix.os }}
91
+ path: dist/*
92
+
93
+ publish-dev-pypi:
94
+ name: Publish development build to PyPI
95
+ needs: [build-sdist]
96
+ if: github.ref == 'refs/heads/main'
97
+ runs-on: ubuntu-latest
98
+ environment:
99
+ name: pypi
100
+ url: https://pypi.org/project/fincore-py/
101
+ steps:
102
+ - name: Download distributions
103
+ uses: actions/download-artifact@v4
104
+ with:
105
+ path: dist
106
+ merge-multiple: true
107
+
108
+ - name: Publish development distribution to PyPI
109
+ uses: pypa/gh-action-pypi-publish@release/v1
110
+ with:
111
+ skip-existing: true
112
+
113
+ publish-pypi:
114
+ name: Publish tagged beta/release to PyPI
115
+ needs: [build-sdist, build-wheels]
116
+ if: startsWith(github.ref, 'refs/tags/v')
117
+ runs-on: ubuntu-latest
118
+ environment:
119
+ name: pypi
120
+ url: https://pypi.org/project/fincore-py/
121
+ steps:
122
+ - name: Download distributions
123
+ uses: actions/download-artifact@v4
124
+ with:
125
+ path: dist
126
+ merge-multiple: true
127
+
128
+ - name: Publish distributions to PyPI
129
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,16 @@
1
+ /.eggs/
2
+ /.pytest_cache/
3
+ /.ruff_cache/
4
+ /.tox/
5
+ /.coverage
6
+ /coverage.xml
7
+ /build/
8
+ /dist/
9
+ /target/
10
+ *.egg-info/
11
+ __pycache__/
12
+ *.py[cod]
13
+ *.so
14
+ python/fincore/_version.py
15
+ *test.ipynb
16
+ *.lock
@@ -0,0 +1,19 @@
1
+ [package]
2
+ name = "fincore"
3
+ version = "0.1.0-alpha.0"
4
+ edition = "2021"
5
+ description = "Rust core for a Python-facing financial market data access library."
6
+ license = "MIT"
7
+
8
+ [lib]
9
+ name = "fincore"
10
+ crate-type = ["cdylib", "rlib"]
11
+
12
+ [dependencies]
13
+ chrono = { version = "0.4", features = ["serde"] }
14
+ pyo3 = { version = "0.23", features = ["abi3-py310", "chrono", "extension-module"] }
15
+ reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
16
+ serde = { version = "1", features = ["derive"] }
17
+ serde_json = "1"
18
+ thiserror = "2"
19
+ urlencoding = "2"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Avinash
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,5 @@
1
+ include Cargo.toml
2
+ include LICENSE
3
+ include README.md
4
+ recursive-include src *.rs
5
+ recursive-include python *.py