Jim Paris
750d9e3c38
Clean up some pylint warnings and potential errors
10 years ago
Jim Paris
3b90318f83
Merge remote-tracking branch 'origin/packaging'
10 years ago
Jim Paris
1fb37604d3
Rearrange documentation, clean up Makefile, README
10 years ago
Jim Paris
018ecab310
Make setup.py executable
10 years ago
Jim Paris
6a1d6017e2
Include datetime_tz module
10 years ago
Jim Paris
e7406f8147
Add metadata
10 years ago
Jim Paris
f316026592
Move datetime_tz package under nilmdb.utils
datetime_tz isn't readily available, so it's a lot easier to just
package it within the nilmdb tree.
10 years ago
Jim Paris
a8db747768
More work on setup.py; fixed issues in setup.cfg
Adjusted setup.cfg so "python setup.py nosetests" now works correctly.
Also added a "test" alias so that "python setup.py test" works.
10 years ago
Jim Paris
727af94722
Start working on setup.py
10 years ago
Jim Paris
6c89659df7
Cleanup cmdline "create" help text
10 years ago
Jim Paris
58c7c8f6ff
Support "now" as a timestamp argument
10 years ago
Jim Paris
225003f412
Huge cleanup of namespaces, modules, packages, imports.
Now nilmdb.client, nilmdb.server, nilmdb.cmdline, and nilmdb.utils
are each their own modules, and there is a little bit more of a
logical separation between them. Various changes scattered throughout
to fix naming (for example, nilmdb.nilmdb.NilmDBError is now
nilmdb.server.errors.NilmDBError).
Reduced usage of "from __future__ import absolute_import" as much
as possible. It's still needed for the functions in the nilmdb/server
directory to be able to import the nilmdb module rather than the
nilmdb.py script.
This should hopefully ease future packaging a bit.
10 years ago
Jim Paris
40b966aef2
Add pycurl-specific hack to Iteratorizer
Inside the pycurl callback, we can't raise exceptions, because the
pycurl extension module will unconditionally print the exception
itself, and not pass it up to the caller. Instead, we have the
callback return a value that tells curl to abort. (-1 would be best,
in case we were given 0 bytes, but the extension doesn't support
that either).
This resolves the 'Exception("should die")' problem when interrupting
a streaming generator like stream_extract.
10 years ago
Jim Paris
294ec6988b
Rewrite Iteratorizer as a context manager
Relying on __del__ to clean up the thread isn't as reliable.
10 years ago
Jim Paris
fad23ebb22
Add --timestamp-raw option to extract and list
10 years ago
Jim Paris
b226dc4337
Properly handle test case where server doesn't start
10 years ago
Jim Paris
e7af863017
httpclient: make sure we error out quickly if nested calls are made
Curl will give an error if we call .setopt() while a .perform() is
in progress, for example if we try to do a stream_insert() while
in the middle of a stream_extract(). Move the setopt() to the
beginning of the get/put functions to ensure that we hit this
error before we mess with the URLs or anything else.
10 years ago
Jim Paris
af6ce5b79c
Remove superfluous from iteratorizor callback exception
10 years ago
Jim Paris
0a6fc943e2
Add some better documentation of layout parameter to create.py
10 years ago
Jim Paris
67c6e178e1
Documentation updates
10 years ago
Jim Paris
9bf213707c
Properly return an error if two timestamps are equal
10 years ago
Jim Paris
5cd7899e98
Send a Access-Control-Allow-Origin (CORS) header with all responses
10 years ago
Jim Paris
ceec5fb9b3
Force /stream/interval and /stream/extract responses to be text/plain
10 years ago
Jim Paris
85be497edb
Fix README
10 years ago
Jim Paris
bd1b7107af
Update TODO, clean up bulkdata error message
10 years ago
Jim Paris
b8275f108d
Make error message more helpful
10 years ago
Jim Paris
2820ff9758
More fixes to mustclose decorator and argspecs
10 years ago
Jim Paris
a015de893d
Cleanup
10 years ago
Jim Paris
b7f746e66d
Fix lrucache decorator argspecs
10 years ago
Jim Paris
40cf4941f0
Test that argspecs are maintained in lrucache
10 years ago
Jim Paris
8a418ceb3e
Fix issue where mustclose decorator doesn't maintain argspec
10 years ago
Jim Paris
0312b6eb07
Test for issue where mustclose decorator didn't maintain argspec
10 years ago
Jim Paris
077f197d24
Fix server returning 500 for bad HTTP parameters
10 years ago
Jim Paris
62354b4dce
Add test for bad-parameters-give-500-error
10 years ago
Jim Paris
5970cd85cf
Disable "ie-friendly" error message padding in CherryPy
10 years ago
Jim Paris
4f6a742e6c
Fix test failure
10 years ago
Jim Paris
87b43e5d04
Command line errors cleaned up and made more consistent
10 years ago
Jim Paris
f0c2a64ae3
Update doc formatting, .gitignore
10 years ago
Jim Paris
e5d3deb6fe
Removal support is complete.
`nrows` may change if you restart the server; documented why this is
the case in the design.md file. It's not a problem.
10 years ago
Jim Paris
d321058b48
Add basic versioning to bulkdata table format file.
10 years ago
Jim Paris
cea83140c0
More work towards correctly removing rows.
10 years ago
Jim Paris
7807d6caf0
Progress and tests for bulkdata.remove
Passes tests, but doesn't really handle nrows (and removing partially
full files) correctly, when deleting near the end of the data.
10 years ago
Jim Paris
3d0fad3c2a
Move some helper functions around
10 years ago
Jim Paris
fe3b087435
Remove implemented in nilmdb; still needs bulkdata changes.
10 years ago
Jim Paris
bcefe52298
nilmdb: Bring out range manipulating SQL so we can reuse it
10 years ago
Jim Paris
f88c148ccc
Interval removal work in progress. Needs NilmDB and BulkData work.
10 years ago
Jim Paris
4a47b1d04a
remove support: command line, client
10 years ago
Jim Paris
80da937cb7
cmdline: return error when start > end (extract, list, remove)
10 years ago
Jim Paris
c81972e66e
Minor testsuite and commandline fixes.
Now supports "list /foo/bar" in addition to the older "list --path /foo/bar"
10 years ago
Jim Paris
b09362fde1
Full coverage of nilmdb.utils.mustclose
10 years ago