Jim Paris
a79d6104d5
Documentation fixups
10 years ago
Jim Paris
8e8ec59e30
Support "nilmtool cmd --version"
10 years ago
Jim Paris
b89b945a0f
Better responses to invalid HTTP times
10 years ago
Jim Paris
bd7bdb2eb8
Add --optimize option to nilmtool intervals
10 years ago
Jim Paris
840cd2fd13
Remove stray print
10 years ago
Jim Paris
bbd59c8b50
Add nilmdb.utils.interval.intersection by generalizing set_difference
10 years ago
Jim Paris
6cd28b67b1
Support iterator protocol in Serializer
10 years ago
Jim Paris
d6d215d53d
Improve boolean HTTP parameter handling
10 years ago
Jim Paris
e02143ddb2
Remove duplicated test
10 years ago
Jim Paris
fc43107307
Fill out test coverage
10 years ago
Jim Paris
b5df575c79
Fix tests
11 years ago
Jim Paris
9a2699adfc
Attempt at fixing up more Unicode issues with metadata.
11 years ago
Jim Paris
539c92226c
Add more disk space info
11 years ago
Jim Paris
49d04db1d6
Allow start==end in stream_insert_context, if no data was provided.
11 years ago
Jim Paris
ea838d05ae
Warn against reused context managers, and fix broken tests
11 years ago
Jim Paris
f2a48bdb2a
Test binary extract; fix bugs
11 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.
11 years ago
Jim Paris
01029230c9
Tweaks to sorting
11 years ago
Jim Paris
ecc4e5ef9d
Improve test coverage
11 years ago
Jim Paris
416a499866
Support wildcards for destroy
11 years ago
Jim Paris
0104c8edd9
nilmtool remove: allow wildcards and multiple paths
11 years ago
Jim Paris
cf3b8e787d
Add test for wrong number of fields in numpy insert
11 years ago
Jim Paris
83d022016c
nilmtool list: add new --layout option to show layouts
11 years ago
Jim Paris
43b740ecaa
nilmtool list: remove old -p parameter
11 years ago
Jim Paris
230ec72609
Fix timestamp display issues with --annotate
11 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.
11 years ago
Jim Paris
d21c3470bc
Client cleanups; fix tests to account for time epsilon = 1
11 years ago
Jim Paris
cc211542f8
Add binary support to nilmdb.server; enforce content-type
11 years ago
Jim Paris
8292dcf70b
Clean up stream/extract content-type and add a test for it
11 years ago
Jim Paris
41ec13ee17
Rename bulkdata.append_string to bulkdata.append_data
11 years ago
Jim Paris
c7f2df4abc
Add nilmdb.client.numpyclient.NumpyClient with stream_extract_numpy
This is a subclass of nilmdb.client.client.Client that adds numpy
specific routines, which should be a lot faster.
11 years ago
Jim Paris
5b7409f802
Add binary extract to client, server, nilmdb, bulkdata, and rocket.
11 years ago
Jim Paris
9ce0f69dff
Add "--delete" option to "nilmtool metadata" tool
This is the same as "--update" with an empty string as the value.
11 years ago
Jim Paris
ebccfb3531
Fix stream renaming when the new path is a parent of the old
11 years ago
Jim Paris
173121ca87
Switch URL to one that should definitely not resolve
11 years ago
Jim Paris
26bab031bd
Add StreamInserter.send() to trigger intermediate block send
11 years ago
Jim Paris
f8ca8d31e6
Remove Iteratorizer, as it's no longer needed
11 years ago
Jim Paris
ed89d803f0
Remove aplotter code
11 years ago
Jim Paris
3d24092cd2
Replace bare 'except:' with 'except: Exception'
Otherwise we might inadvertently catch SystemExit or KeyboardExit or
something we don't want to catch.
11 years ago
Jim Paris
c0d450d39e
Add locking mechanism to avoid multiple servers on one DB
11 years ago
Jim Paris
e790bb9e8a
Fix test failure when tests are run as root
11 years ago
Jim Paris
89be6f5931
Add option to include interval start/end markup on extract
When enabled, lines like "# interval-start 1234567890123456" and "#
interval-end 1234567890123456" will be added to the data output. Note
that there may be an "interval-end" timestamp followed by an identical
"interval-start" timestamp, if the response at the nilmdb level was
split up into multiple chunks.
In general, assume contiguous data if previous_interval_end ==
new_interval_start.
11 years ago
Jim Paris
4cdef3285d
Destroy now requires that all data has been previously removed.
Added new flag "-R" to command line to perform an automatic removal.
This should be the last of the ways in which a single command could
block the nilmdb thread for a long time.
11 years ago
Jim Paris
bcd82c4d59
Limit the number of rows removed per call to nilmdb.stream_remove
Server class will retry as needed, as with stream_extract and
stream_intervals.
11 years ago
Jim Paris
2d72891162
Accept "min" and "max" as timestamps on command line
11 years ago
Jim Paris
0ef71c193b
Remove layout.pyx, since rocket replaced it
11 years ago
Jim Paris
22274550ab
Test python version of Interval too
11 years ago
Jim Paris
4f06d6ae68
Move Interval set_difference inside nilmdb.utils for clients
Clients might need to to Interval math too, so move a simple Interval
class and start putting helpers in there.
11 years ago
Jim Paris
c54d8041c3
Update design docs
11 years ago
Jim Paris
049375d30e
Fill out test coverage
11 years ago