finterion-charts 0.2.0__py3-none-any.whl
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.
- finterion_charts/__init__.py +57 -0
- finterion_charts/_static/embed.html +66 -0
- finterion_charts/builder.py +948 -0
- finterion_charts/capabilities.py +66 -0
- finterion_charts/codec.py +42 -0
- finterion_charts/display.py +177 -0
- finterion_charts/schema.py +340 -0
- finterion_charts/validator.py +105 -0
- finterion_charts-0.2.0.dist-info/METADATA +92 -0
- finterion_charts-0.2.0.dist-info/RECORD +11 -0
- finterion_charts-0.2.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Python binding for Finterion Charts.
|
|
2
|
+
|
|
3
|
+
This package mirrors the JSON `ChartSpec` contract from `@finterion/charts-spec`.
|
|
4
|
+
It does not render charts — it produces JSON that the browser-side engine
|
|
5
|
+
(`@finterion/charts-core`) consumes.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .builder import (
|
|
9
|
+
ChartSpec,
|
|
10
|
+
Display,
|
|
11
|
+
HBar,
|
|
12
|
+
Heatmap,
|
|
13
|
+
Histogram,
|
|
14
|
+
Indicator,
|
|
15
|
+
LineStyle,
|
|
16
|
+
LineStyleName,
|
|
17
|
+
Marker,
|
|
18
|
+
Price,
|
|
19
|
+
Scatter,
|
|
20
|
+
SeriesType,
|
|
21
|
+
SeriesTypeName,
|
|
22
|
+
Theme,
|
|
23
|
+
ThemeName,
|
|
24
|
+
)
|
|
25
|
+
from .capabilities import ChartCapabilities, get_chart_capabilities
|
|
26
|
+
from .codec import decode_spec, encode_spec
|
|
27
|
+
from .schema import CHART_SPEC_SCHEMA, SPEC_VERSION
|
|
28
|
+
from .validator import ValidationResult, validate_schema, validate_spec
|
|
29
|
+
|
|
30
|
+
__all__ = [
|
|
31
|
+
"CHART_SPEC_SCHEMA",
|
|
32
|
+
"ChartCapabilities",
|
|
33
|
+
"ChartSpec",
|
|
34
|
+
"Display",
|
|
35
|
+
"HBar",
|
|
36
|
+
"Heatmap",
|
|
37
|
+
"Histogram",
|
|
38
|
+
"Indicator",
|
|
39
|
+
"LineStyle",
|
|
40
|
+
"LineStyleName",
|
|
41
|
+
"Marker",
|
|
42
|
+
"Price",
|
|
43
|
+
"Scatter",
|
|
44
|
+
"SeriesType",
|
|
45
|
+
"SeriesTypeName",
|
|
46
|
+
"SPEC_VERSION",
|
|
47
|
+
"Theme",
|
|
48
|
+
"ThemeName",
|
|
49
|
+
"ValidationResult",
|
|
50
|
+
"decode_spec",
|
|
51
|
+
"encode_spec",
|
|
52
|
+
"get_chart_capabilities",
|
|
53
|
+
"validate_schema",
|
|
54
|
+
"validate_spec",
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
__version__ = "0.1.0"
|