scope 0.4.2__tar.gz → 0.4.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scope
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Metrics logging and analysis
5
5
  Home-page: http://github.com/danijar/scope
6
6
  Classifier: Intended Audience :: Science/Research
scope-0.4.3/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # 🔬 Scope
2
+
3
+ Scalable metrics logging and analysis.
4
+
5
+ ## Features
6
+
7
+ - 🚀 **Scalable:** Quickly log and view petabytes of metrics, thousands of keys, and large videos.
8
+ - 🎞️ **Formats:** Log and view scalars, text, images, and videos. Easy to extend with custom formats.
9
+ - 🧑🏻‍🔬 **Productivity:** Metrics viewer with focus on power users and full keyboard support.
10
+ - ☁️ **Cloud support:** Directly write to and read from Cloud storage via pathlib interface.
11
+ - 🍃 **Lightweight:** The writer and reader measure only ~400 lines of Python code.
12
+ - 🧱 **Reliability:** Unit tested and used across diverse research projects.
13
+
14
+ ## Usage
15
+
16
+ ### Installation
17
+
18
+ ```sh
19
+ pip install scope
20
+ ```
21
+
22
+ ### Writing
23
+
24
+ ```python
25
+ import scope
26
+
27
+ writer = scope.Writer(logdir)
28
+ for step in range(3)
29
+ video = np.zeros((100, 640, 360, 3), np.uint8)
30
+ writer.add(step, {'foo': 42, 'bar': video, 'baz': 'Hello World'})
31
+ writer.flush()
32
+ ```
33
+
34
+ ### Viewing
35
+
36
+ ```sh
37
+ python -m scope.viewer --basedir ... --port 8000
38
+ ```
39
+
40
+ ### Reading
41
+
42
+ ```python
43
+ import scope
44
+
45
+ reader = scope.Reader(logdir)
46
+ print(reader.keys()) # ('foo', 'bar', 'baz')
47
+
48
+ print(reader.length('foo')) # 3
49
+ steps, values = reader['foo']
50
+ print(steps) # np.array([0, 1, 2], np.int64)
51
+ print(values) # np.array([42, 42, 42], np.float64)
52
+
53
+ steps, filenames = reader['bar']
54
+ reader.load('bar', filenames[-1]) # np.zeros((100, 640, 360, 3), np.uint8)
55
+ ```
@@ -1,4 +1,4 @@
1
- __version__ = '0.4.2'
1
+ __version__ = '0.4.3'
2
2
 
3
3
  from .reader import Reader
4
4
  from .writer import Writer
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes