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.
- {scope-0.4.2 → scope-0.4.3}/PKG-INFO +1 -1
- scope-0.4.3/README.md +55 -0
- {scope-0.4.2 → scope-0.4.3}/scope/__init__.py +1 -1
- {scope-0.4.2 → scope-0.4.3}/requirements.txt +0 -0
- {scope-0.4.2 → scope-0.4.3}/scope/formats.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/scope/reader.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/scope/writer.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/setup.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/tests/test_float.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/tests/test_image.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/tests/test_video.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/__init__.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/__main__.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/config.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/dist/favicon.png +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/dist/index.html +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/dist/logo.png +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/filesystems.py +0 -0
- {scope-0.4.2 → scope-0.4.3}/viewer/server.py +0 -0
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
|
+
```
|
|
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
|