localbenchmark 0.1.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.
@@ -0,0 +1,39 @@
1
+ import logging
2
+ import localbenchmark.localbenchmark as localbenchmark
3
+ import localbenchmark.llm_plots as llm_plots
4
+
5
+ __author__ = 'Erdogan Taskesen'
6
+ __email__ = 'erdogant@gmail.com'
7
+ __version__ = '0.1.0'
8
+
9
+ # Setup package-level logger
10
+ _logger = logging.getLogger('localbenchmark')
11
+ _log_handler = logging.StreamHandler()
12
+ _formatter = logging.Formatter(fmt='[{asctime}] [{name:<12.12}] [{levelname:<8}] {message}', style='{', datefmt='%d-%m-%Y %H:%M:%S')
13
+ _log_handler.setFormatter(_formatter)
14
+ _log_handler.setLevel(logging.DEBUG)
15
+ if not _logger.hasHandlers(): # avoid duplicate handlers if re-imported
16
+ _logger.addHandler(_log_handler)
17
+ _logger.setLevel(logging.DEBUG)
18
+ _logger.propagate = True # allow submodules to inherit this handler
19
+
20
+
21
+
22
+ # module level doc-string
23
+ __doc__ = """
24
+ localbenchmark
25
+ =====================================================================
26
+
27
+ localbenchmark is for...
28
+
29
+ Example
30
+ -------
31
+ >>> from localbenchmark import localbenchmark
32
+ >>> model = localbenchmark()
33
+ >>> localbenchmark.plot()
34
+
35
+ References
36
+ ----------
37
+ https://github.com/erdogant/localbenchmark
38
+
39
+ """
@@ -0,0 +1,11 @@
1
+ # %%
2
+ import localbenchmark
3
+ print(dir(localbenchmark))
4
+ print(localbenchmark.__version__)
5
+
6
+ # %%
7
+ from localbenchmark import localbenchmark
8
+ model = localbenchmark()
9
+ model.plot()
10
+
11
+ # %%