accelerated-quant 0.0.1__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.
- accelerated_quant-0.0.1/.gitignore +10 -0
- accelerated_quant-0.0.1/.python-version +1 -0
- accelerated_quant-0.0.1/PKG-INFO +14 -0
- accelerated_quant-0.0.1/README.md +2 -0
- accelerated_quant-0.0.1/pyproject.toml +16 -0
- accelerated_quant-0.0.1/src/accelerated_quant/__init__.py +15 -0
- accelerated_quant-0.0.1/src/accelerated_quant/py.typed +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: accelerated-quant
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: GPU and AI accelerated quant finance engine for the Accelerated Options and Accelerated Portfolios books
|
|
5
|
+
Author: Will Hill
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Classifier: Development Status :: 1 - Planning
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Requires-Dist: numpy>=1.26
|
|
10
|
+
Requires-Dist: pandas>=2.2
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# Accelerated Quant
|
|
14
|
+
Initial Package Creation
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "accelerated-quant"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "GPU and AI accelerated quant finance engine for the Accelerated Options and Accelerated Portfolios books"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
authors = [{ name = "Will Hill" }]
|
|
9
|
+
dependencies = ["numpy>=1.26", "pandas>=2.2"]
|
|
10
|
+
classifiers = ["Development Status :: 1 - Planning"]
|
|
11
|
+
|
|
12
|
+
[build-system]
|
|
13
|
+
requires = ["hatchling"]
|
|
14
|
+
build-backend = "hatchling.build"
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""accelerated_quant: import as aq."""
|
|
2
|
+
__version__ = "0.0.1"
|
|
3
|
+
|
|
4
|
+
_DEVICE = "cpu"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def device(name: str | None = None) -> str:
|
|
8
|
+
"""Select or report the array backend: "cpu" (NumPy) or "cuda" (CuPy)."""
|
|
9
|
+
global _DEVICE
|
|
10
|
+
if name is not None:
|
|
11
|
+
if name not in ("cpu", "cuda"):
|
|
12
|
+
raise ValueError("device must be 'cpu' or 'cuda'")
|
|
13
|
+
_DEVICE = name
|
|
14
|
+
return _DEVICE
|
|
15
|
+
|
|
File without changes
|