Jim Paris
f0c2a64ae3
Update doc formatting, .gitignore
11 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.
11 years ago
Jim Paris
d321058b48
Add basic versioning to bulkdata table format file.
11 years ago
Jim Paris
cea83140c0
More work towards correctly removing rows.
11 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.
11 years ago
Jim Paris
3d0fad3c2a
Move some helper functions around
11 years ago
Jim Paris
fe3b087435
Remove implemented in nilmdb; still needs bulkdata changes.
11 years ago
Jim Paris
bcefe52298
nilmdb: Bring out range manipulating SQL so we can reuse it
11 years ago
Jim Paris
f88c148ccc
Interval removal work in progress. Needs NilmDB and BulkData work.
11 years ago
Jim Paris
4a47b1d04a
remove support: command line, client
11 years ago
Jim Paris
80da937cb7
cmdline: return error when start > end (extract, list, remove)
11 years ago
Jim Paris
c81972e66e
Minor testsuite and commandline fixes.
Now supports "list /foo/bar" in addition to the older "list --path /foo/bar"
11 years ago
Jim Paris
b09362fde1
Full coverage of nilmdb.utils.mustclose
11 years ago
Jim Paris
b7688844fa
Add a Nosetests plugin that lets me specify a test order within a directory.
11 years ago
Jim Paris
3d212e7592
Move test helpers into subdirectory
11 years ago
Jim Paris
7aedfdf9c3
Add lower level bulkdata test
11 years ago
Jim Paris
ebd4f74959
Remove "pragma: no cover" from things that should get tested
11 years ago
Jim Paris
ebe2fbab92
Add wrap_verify option to nilmdb.utils.must_close decorator
11 years ago
Jim Paris
4831a0cae1
Small doc updates
11 years ago
Jim Paris
07192c6ffb
nilmdb.BulkData: Switch to nested subdir/filename layout
Use numbered subdirectories to avoid having too many files in one dir.
Add appropriate tests.
Also fix an issue where the mmap_open LRU cache could inappropriately
open a file twice because it was using the optional "newsize"
parameter as a key -- now lrucache can be given a slice object that
describes which arguments are important.
11 years ago
Jim Paris
09d325e8ab
Rename format -> _format in data dirs
11 years ago
Jim Paris
11b0293d5f
Clean up BulkData file size calculations, test more thoroughly
Now the goal is 128 MiB files, rather than a specific length.
11 years ago
Jim Paris
493bbed82c
More coverage and tests
11 years ago
Jim Paris
3bc25daaab
Trim urllib to get full coverage of the features in use
11 years ago
Jim Paris
40a3bc4bc3
Update README with Python 2.7 requirement
11 years ago
Jim Paris
c083d63c96
Tests for Unicode compliance
11 years ago
Jim Paris
0221e3ea21
Update commandline test helpers to better handle Unicode
We replace cStringIO with StringIO subclass that forces UTF-8
encoding, and explicitly convert commandlines to UTF-8 before
shlex. These changes will only affect tests, not normal commandline
operation.
11 years ago
Jim Paris
f5fd2b064e
Replace urllib.encode() with a version that encodes Unicode as UTF-8 instead
11 years ago
Jim Paris
06e91a6a98
Always use function version of print()
11 years ago
Jim Paris
41b3f3c018
Always use UTF-8 for filenames in nilmdb.bulkdata
11 years ago
Jim Paris
842076fef4
Cleanup server error handling with decorator
11 years ago
Jim Paris
10d58f6a47
More test coverage
11 years ago
Jim Paris
e2464efc12
Test everything; remove debugging
11 years ago
Jim Paris
1beae5024e
Bulkdata extract works now.
11 years ago
Jim Paris
c7c65b6542
Work around CherryPy bug #1200 ; related cleanups
Spent way too long trying to track down a cryptic error that turned
out to be a CherryPy bug. Now we catch this using a decorator in the
'extract' and 'intervals' generators that transforms exceptions that
trigger the bugs into one that does not. fun!
11 years ago
Jim Paris
f41ff0a6e8
Inserting bulk data is essentially done, not tested
11 years ago
Jim Paris
389c1d189f
Make option to turn off chunked encoding for debugging more clear.
11 years ago
Jim Paris
487298986e
More work towards bulkdata
11 years ago
Jim Paris
d4cd045c48
Fix path stuff, build packer in bulkdata.Table
11 years ago
Jim Paris
3816645313
More work on BulkData
11 years ago
Jim Paris
83b937c720
More Pytables -> bulkdata conversion
11 years ago
Jim Paris
b3e6e8976f
More work towards flat bulk data storage.
Cleaned up OS-specific path handling in nilmdb, bulkdata.
11 years ago
Jim Paris
c890ea93cb
WIP switching away from PyTables
11 years ago
Jim Paris
84c68c6913
Better documentation, cache Tables
11 years ago
Jim Paris
6f1e6fe232
Isolate all PyTables stuff to a single file.
This will make migrating to my own data storage engine easier.
11 years ago
Jim Paris
b0d76312d1
Add must_close() decorator, use it in nilmdb
Warns at runtime if a class's close() method wasn't called before the
object was destroyed.
11 years ago
Jim Paris
19c846c71c
Remove outdated files
11 years ago
Jim Paris
f355c73209
Refactor utility classes into nilmdb.utils subdir/namespace
There's some bug with the testing harness where placing e.g.
from du import du
in nilmdb/utils/__init__.py doesn't quite work -- sometimes the
module "du" replaces the function "du". Not exactly sure why;
we work around that by just renaming files so they don't match
the imported names directly.
11 years ago
Jim Paris
173014ba19
Use nilmdb.lrucache for caching interval sets
11 years ago
Jim Paris
24d4752bc3
Add LRU cache memoizing decorator for functions
11 years ago