sevko / livechart Goto Github PK
View Code? Open in Web Editor NEWA CLI utility for charting data from stdin
A CLI utility for charting data from stdin
The tool currently expects each new data-point to sit on its own line, like:
{"foo":"bar"}
{"foo":"bar"}
{"foo":"bar"}
{"foo":"bar"}
Try to add support for multi-line inputs, like:
{
"foo": "bar"
}
{
"foo": "bar"
}
{
"foo": "bar"
}
{
"foo": "bar"
}
If you have a file containing lots of numbers already sitting around, it's painfully slow to sequentially render it by piping it into livechart
. Provide an option for bulk loading points from a file.
A fast feeder stream will overwhelm livechart
because it renders so slowly. There's no practical reason to redraw the graph for every data point, so only do so at regular (configurable) intervals.
No JSON object could be decodedFailed to parse JSON for line:
Traceback (most recent call last):
File "/usr/local/bin/livechart", line 9, in <module>
load_entry_point('livechart==0.0.2', 'console_scripts', 'livechart')()
File "/usr/local/lib/python2.7/site-packages/livechart/script.py", line 66, in run
sys.exit(chart.render_stdin(parse_args()))
File "/usr/local/lib/python2.7/site-packages/livechart/chart.py", line 99, in render_stdin
for key, val in parse_json(line).items():
File "/usr/local/lib/python2.7/site-packages/livechart/chart.py", line 29, in parse_json
if isinstance(json_blob, (int, float)):
UnboundLocalError: local variable 'json_blob' referenced before assignment
Exception KeyError: KeyError(140735190991616,) in <module 'threading' from '/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.pyc'> ignored
I'm interested in using this for long-running processes where I'm only interested in the last 5 seconds or so.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.