Jim Paris
e275384d03
Fix WSGI docs again
10 years ago
Jim Paris
a6a67ec15c
Update WSGI docs
10 years ago
Jim Paris
fc43107307
Fill out test coverage
10 years ago
Jim Paris
90633413bb
Add nilmdb.utils.interval.human_string function
10 years ago
Jim Paris
c7c3aff0fb
Add nilmdb.utils.interval.optimize function
10 years ago
Jim Paris
e2347c954e
Split more CherrpyPy stuff into serverutil
10 years ago
Jim Paris
222a5c6c53
Move server decorators and other utilities to a separate file
This will help with implementing nilmrun.
10 years ago
Jim Paris
1ca2c143e5
Fix typo
10 years ago
Jim Paris
b5df575c79
Fix tests
10 years ago
Jim Paris
2768a5ad15
Show FQDN rather than hostname.
10 years ago
Jim Paris
a105543c38
Show a more helpful message at the root nilmdb path
10 years ago
Jim Paris
309f38d0ed
Merge branch '32bit'
10 years ago
Jim Paris
9a27b6ef6a
Make rocket code suitable for 32-bit architectures
10 years ago
Jim Paris
99532cf9e0
Fix coverage
10 years ago
Jim Paris
dfdd0e5c74
Fix line parsing in http client
10 years ago
Jim Paris
9a2699adfc
Attempt at fixing up more Unicode issues with metadata.
10 years ago
Jim Paris
9bbb95b18b
Add unicode decode/encode helpers
10 years ago
Jim Paris
6bbed322c5
Fix unicode in completion
10 years ago
Jim Paris
2317894355
Tweak cache sizes to account for large numbers of decimated tables
10 years ago
Jim Paris
539c92226c
Add more disk space info
10 years ago
Jim Paris
77c766d85d
Bump MAX_LAYOUT_COUNT to 1024
10 years ago
Jim Paris
49d04db1d6
Allow start==end in stream_insert_context, if no data was provided.
10 years ago
Jim Paris
ea838d05ae
Warn against reused context managers, and fix broken tests
10 years ago
Jim Paris
f2a48bdb2a
Test binary extract; fix bugs
10 years ago
Jim Paris
6d14e0b8aa
Allow binary extract
10 years ago
Jim Paris
b31b9327b9
Add tool to fix oversize files (the bug fixed by b98ff13
)
10 years ago
Jim Paris
b98ff1331a
Fix bug where too much data was getting written to each file.
We were still calculating the maximum number of rows correctly,
so the extra data was really extra and would get re-written to the
beginning of the subsequent file.
The only case in which this would lead to database issues is if the
very last file was lengthened incorrectly, and the "nrows" calculation
would therefore be wrong when the database was reopened. Still, even
in that case, it should just leave a small gap in the data, not cause
any errors.
10 years ago
Jim Paris
00e6ba1124
Avoid ENOENT in nilmdb.utils.diskusage.du
ENOENT might show up if we're actively deleting files in the nilmdb
thread while trying to read available space from e.g. the server
thread.
10 years ago
Jim Paris
01029230c9
Tweaks to sorting
10 years ago
Jim Paris
ecc4e5ef9d
Improve test coverage
10 years ago
Jim Paris
23f31c472b
Split sort_streams_nicely into separate file
10 years ago
Jim Paris
a1e2746360
Fix bug in nilmdb.stream_remove with max_removals
10 years ago
Jim Paris
1c40d59a52
server: use a generator in /stream/remove
Instead of returning a single number at the end of N nilmdb calls, we
now use a generator that returns one line of text every time there's a
new count of rows removed. This ensures that the connection will stay
alive for very long removals.
10 years ago
Jim Paris
bfb09a189f
Fix coverage
10 years ago
Jim Paris
416a499866
Support wildcards for destroy
10 years ago
Jim Paris
637d193807
Fix unicode processing of command line arguments
10 years ago
Jim Paris
b7fa5745ce
nilmtool list: allow multiple paths to be supplied
10 years ago
Jim Paris
0104c8edd9
nilmtool remove: allow wildcards and multiple paths
10 years ago
Jim Paris
cf3b8e787d
Add test for wrong number of fields in numpy insert
10 years ago
Jim Paris
83d022016c
nilmtool list: add new --layout option to show layouts
10 years ago
Jim Paris
43b740ecaa
nilmtool list: remove old -p parameter
10 years ago
Jim Paris
4ce059b920
Give a slightly more clear error on bad array sizes
10 years ago
Jim Paris
99a4228285
Set up default SIGPIPE handler
This lets you do something like "nilmtool extract | head" without
triggering backtraces.
10 years ago
Jim Paris
230ec72609
Fix timestamp display issues with --annotate
10 years ago
Jim Paris
d36ece3767
Fix up dependencies
10 years ago
Jim Paris
231963538e
Add some info about binary interface to design docs
10 years ago
Jim Paris
b4d6aad6de
Merge branch 'binary'
10 years ago
Jim Paris
e95142eabf
Huge update to support inserting in client.numpyclient, with tests
This includes both client.stream_insert_numpy and
client.stream_insert_numpy_context(). The test code is based on
similar test code for client.stream_insert_context, so it should be
fairly complete.
10 years ago
Jim Paris
d21c3470bc
Client cleanups; fix tests to account for time epsilon = 1
10 years ago
Jim Paris
7576883f49
Add basic binary support to client, and restructure a bit
10 years ago