Coverage for src/ipyvizzu/__init__.py: 100%
15 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 10:12 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 10:12 +0000
1"""
2Build animated charts in `Jupyter Notebook`
3and similar environments with a simple `Python` syntax.
5`ipyvizzu` package consists of the following main modules:
7* [Chart][ipyvizzu.chart]
8* [Animation][ipyvizzu.animation]
9* [Animation Control][ipyvizzu.animationcontrol]
10* [Method][ipyvizzu.method]
11* [Event][ipyvizzu.event]
12* [Json][ipyvizzu.json]
13* [Template][ipyvizzu.template]
14* [Schema][ipyvizzu.schema]
15* [Data][ipyvizzu.data]
16* [Integrations][ipyvizzu.integrations]
18`ipyvizzu` package imports the following objects in `__init__.py`:
20* [Chart][ipyvizzu.chart.Chart]
21* [Data][ipyvizzu.animation.Data]
22* [Config][ipyvizzu.animation.Config]
23* [Style][ipyvizzu.animation.Style]
24* [Keyframe][ipyvizzu.animation.Keyframe]
25* [Snapshot][ipyvizzu.animation.Snapshot]
26* [Animation][ipyvizzu.animation.Animation]
27* [AbstractAnimation][ipyvizzu.animation.AbstractAnimation]
28* [PlainAnimation][ipyvizzu.animation.PlainAnimation]
29* [AnimationMerger][ipyvizzu.animation.AnimationMerger]
30* [AnimationControl][ipyvizzu.animationcontrol.AnimationControl]
31* [InferType][ipyvizzu.data.infer_type.InferType]
32* [NumpyArrayConverter][ipyvizzu.data.converters.numpy.converter.NumpyArrayConverter]
33* [PandasDataFrameConverter][ipyvizzu.data.converters.pandas.converter.PandasDataFrameConverter]
34* [Animate][ipyvizzu.method.Animate]
35* [Feature][ipyvizzu.method.Feature]
36* [Store][ipyvizzu.method.Store]
37* [EventOn][ipyvizzu.method.EventOn]
38* [EventOff][ipyvizzu.method.EventOff]
39* [Log][ipyvizzu.method.Log]
40* [Method][ipyvizzu.method.Method]
41* [EventHandler][ipyvizzu.event.EventHandler]
42* [RawJavaScript][ipyvizzu.json.RawJavaScript]
43* [RawJavaScriptEncoder][ipyvizzu.json.RawJavaScriptEncoder]
44* [ChartProperty][ipyvizzu.template.ChartProperty]
45* [DisplayTarget][ipyvizzu.template.DisplayTarget]
46* [DisplayTemplate][ipyvizzu.template.DisplayTemplate]
47"""
49import warnings
51from .chart import Chart
52from .animation import (
53 AbstractAnimation,
54 PlainAnimation,
55 Data,
56 Config,
57 Style,
58 Keyframe,
59 Snapshot,
60 Animation,
61 AnimationMerger,
62)
63from .animationcontrol import AnimationControl
64from .data.converters.numpy.converter import NumpyArrayConverter
65from .data.converters.pandas.converter import PandasDataFrameConverter
66from .data.infer_type import InferType
67from .method import Method, Animate, Feature, Store, EventOn, EventOff, Log
68from .json import RawJavaScript, RawJavaScriptEncoder
69from .template import ChartProperty, DisplayTarget, DisplayTemplate
70from .event import EventHandler
72from .__version__ import __version__, __version_info__, PYENV
74__all__ = [
75 "Chart",
76 "Data",
77 "Config",
78 "Style",
79 "Keyframe",
80 "Snapshot",
81 "Animation",
82 "AbstractAnimation",
83 "PlainAnimation",
84 "AnimationMerger",
85 "Animate",
86 "Feature",
87 "Store",
88 "EventOn",
89 "EventOff",
90 "Log",
91 "AnimationControl",
92 "NumpyArrayConverter",
93 "PandasDataFrameConverter",
94 "InferType",
95 "Method",
96 "EventHandler",
97 "RawJavaScript",
98 "RawJavaScriptEncoder",
99 "ChartProperty",
100 "DisplayTarget",
101 "DisplayTemplate",
102]
105# TODO: remove once support for Python 3.6 is dropped
106if PYENV < (3, 7):
107 warnings.warn(
108 "Python 3.6 support will be dropped in future versions.",
109 FutureWarning,
110 stacklevel=2,
111 )