summaryrefslogtreecommitdiffstats
path: root/asciinema/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--asciinema/__init__.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/asciinema/__init__.py b/asciinema/__init__.py
new file mode 100644
index 0000000..7f2b6ef
--- /dev/null
+++ b/asciinema/__init__.py
@@ -0,0 +1,34 @@
+import sys
+
+__author__ = "Marcin Kulik"
+__version__ = "2.2.0"
+
+if sys.version_info < (3, 6):
+ raise ImportError("Python < 3.6 is unsupported.")
+
+# pylint: disable=wrong-import-position
+from typing import Any, Optional
+
+from .recorder import record
+
+
+def record_asciicast( # pylint: disable=too-many-arguments
+ path_: str,
+ command: Any = None,
+ append: bool = False,
+ idle_time_limit: Optional[int] = None,
+ record_stdin: bool = False,
+ title: Optional[str] = None,
+ command_env: Any = None,
+ capture_env: Any = None,
+) -> None:
+ record(
+ path_,
+ command=command,
+ append=append,
+ idle_time_limit=idle_time_limit,
+ record_stdin=record_stdin,
+ title=title,
+ command_env=command_env,
+ capture_env=capture_env,
+ )