Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phronmophobic/viscous
pprint that respects your space and time
https://github.com/phronmophobic/viscous
clojure data-visualization membrane pprint
Last synced: about 2 months ago
JSON representation
pprint that respects your space and time
- Host: GitHub
- URL: https://github.com/phronmophobic/viscous
- Owner: phronmophobic
- License: epl-1.0
- Created: 2021-04-22T20:49:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-16T20:05:37.000Z (over 1 year ago)
- Last Synced: 2024-10-13T01:32:28.872Z (2 months ago)
- Topics: clojure, data-visualization, membrane, pprint
- Language: Clojure
- Homepage:
- Size: 8.8 MB
- Stars: 50
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Viscous
A visual data inspector/explorer that runs in constant space, time, and screen space.
Built with [membrane](https://github.com/phronmophobic/membrane).
### Overview
![Overview](inspector.gif?raw=true)
### Resizing
![Resizing](inspector-resize.gif?raw=true)### Paging
![Paging](paging.gif?raw=true)### Navigating
![Navigating](navigation.gif?raw=true)## Web Demo
Try it! https://phronmophobic.github.io/viscous/
## Dependency
#### deps.edn
```clojure
com.phronemophobic/viscous {:mvn/version "1.3.3"}
```#### lein
```clojure
[com.phronemophobic/viscous "1.3.3"]
```## Programmatic Usage
```clojure
(require '[com.phronemophobic.viscous :as viscous])(def my-data {:a {:b 42}})
;; open inspector window
(viscous/inspect my-data)```
## Cli usage
Create an alias for viscous
```clojure
{
:aliases {
```
```clojure
:viscous
{:replace-deps {com.phronemophobic/viscous {:mvn/version "1.3.3"}
org.clojure/data.json {:mvn/version "2.4.0"}}
:exec-fn com.phronemophobic.viscous.cli/main}
```
```clojure
}
}
```Read edn from stdin:
```sh
cat data.edn | clojure -X:viscous :file -
```Read edn from filename:
```sh
clojure -X:viscous :file '"data.edn"'
```Read json from stdin:
```sh
cat data.json | clojure -X:viscous :json-file -
```Read json from filename:
```sh
clojure -X:viscous :json-file '"data.edn"'
```## Status
Viscous is in beta. Behavior is subject to change. Feedback is welcome.
## Related
I'm generally interested in finding better ways to represent and explore medium sized heterogenous data. If you like viscous, you may also be interested in [treemap-clj](https://github.com/phronmophobic/treemap-clj).
## License
Copyright © 2021 Adrian Smith
Distributed under the Eclipse Public License version 1.0.