Jim Paris
454e561d69
Verify that metadata values are numbers or strings
11 years ago
Jim Paris
fe91ff59a3
Better handling of JSON requests
11 years ago
Jim Paris
64c24a00d6
Add --traceback argument to nilmdb-server script
11 years ago
Jim Paris
58c0ae72f6
Support application/json POST bodies as well as x-www-form-urlencoded
11 years ago
Jim Paris
c5f079f61f
When removing data from files, try to punch a hole.
Requires fallocate(2) support with FALLOC_FL_PUNCH_HOLE, as
well as a filesystem that supports it (in Linux 3.7,
tmpfs, btrfs, xfs, or ext4)
11 years ago
Jim Paris
16f23f4a91
Fill out pyrocket.py to fit new interfaces; fix small bugs
11 years ago
Jim Paris
b0f12d55dd
Fully replace bulkdata.File with rocket.Rocket
11 years ago
Jim Paris
8a648c1b97
Move towards replacing bulkdata.File with rocket.Rocket
There isn't much left in File, so let's move as much as possible
over to C.
11 years ago
Jim Paris
2d45466f66
Print version at server startup
11 years ago
Jim Paris
c6a0e6e96f
More complete CORS handling, including preflight requests (hopefully)
11 years ago
Jim Paris
79755dc624
Fix Allow: header by switching to cherrypy's built in tools.allow().
Replaces custom tools.allow_methods which didn't return the Allow: header.
11 years ago
Jim Paris
f260f2c83d
Remove unnecessary layout argument to nilmdb.stream_extract
11 years ago
Jim Paris
14402005bf
Remove extraneous flush
11 years ago
Jim Paris
0d372fb878
Modify old formatter to match rocket's formatting style
11 years ago
Jim Paris
5eac924118
Ignore built modules
11 years ago
Jim Paris
0b75da7a8f
Normalize the floating point formats to %.6e and %.16e
This is mostly a matter of taste, but it matches more closely with the
old way that prep did it, and it's more consistent. It should roughly
match the available precision of floats and doubles.
11 years ago
Jim Paris
2dfc94b566
Remove old code
11 years ago
Jim Paris
e318888a06
Finish Rocket.extract_string; clean up code for other functions too
This is maybe 2.5-3 times faster than the list-based code, which
still isn't amazing, but is decent.
11 years ago
Jim Paris
7c95934cc2
Add rocket.extract_list; still not as complete as pyrocket
11 years ago
Jim Paris
96df9d8323
Starting the C version of rocket
Currently, only append_list is written (and hardly tested)
11 years ago
Jim Paris
31e2c7c8b4
Add some notes about rocket interface to design.md
11 years ago
Jim Paris
2a725ee13f
Add version 1 database format backwards compatibility
11 years ago
Jim Paris
eb8037ee3c
Add a description for the rocket interface
11 years ago
Jim Paris
fadb84d703
Move ascii formatting into nilmdb thread via rocket interface
11 years ago
Jim Paris
9d0d2415be
Test bulkdata a little more carefully
11 years ago
Jim Paris
130dae0734
Add extract_string to pyrocket
11 years ago
Jim Paris
402234dfc3
Better layout handling in pyrocket
11 years ago
Jim Paris
4406d51a98
First pass at Python implementation of rocket
11 years ago
Jim Paris
9b6de6ecb7
Replace old layout strings everywhere
11 years ago
Jim Paris
c512631184
bulkdata: Build up rows and write to disk all at once
11 years ago
Jim Paris
19d27c31bc
Fix streaming requests like stream_extract
11 years ago
Jim Paris
28310fe886
Add test for extents
11 years ago
Jim Paris
1ccc2bce7e
Add commandline support for listing extents
11 years ago
Jim Paris
00237e30b2
Add "extent" option to stream_list in client, server, and nilmdb
11 years ago
Jim Paris
521ff88f7c
Support 'nilmtool help command' just like 'nilmtool command --help'
11 years ago
Jim Paris
64897a1dd1
Change port from 12380 -> 32180 when running tests
This is so tests can be run without interfering with a normal server.
11 years ago
Jim Paris
41ce8480bb
cmdline: Support NILMDB_URL environment variable for default URL
11 years ago
Jim Paris
204a6ecb15
Optimize bulkdata.append() by postponing flushes & mmap resize
Rather than flushing and resizing after each row is written to the
file, have the file object iterate by itself and do all of the
writes. Only flush and resize the mmap after finishing. This should
be pretty safe to do, especially since nothing is concurrent at the
moment.
11 years ago
Jim Paris
5db3b186a4
Make test_mustclose more complete
11 years ago
Jim Paris
fe640cf421
Remove must_close verification wrappers on bulkdata
At this point we know that the close() behavior is correct, so it's
not worth slowing everything down for these checks.
11 years ago
Jim Paris
ca67c79fe4
Improve test_layout_speed
11 years ago
Jim Paris
8917bcd4bf
Fix test case failures due to increased client chunk size
11 years ago
Jim Paris
a75ec98673
Slight speed improvements in layout.pyx
11 years ago
Jim Paris
e476338d61
Remove outdated numpy dependency
11 years ago
Jim Paris
d752b882f2
Bump up block sizes in client
This will help amortize the sqlite synchronization costs.
11 years ago
Jim Paris
ade27773e6
Add --nosync option to nilmdb-server script
11 years ago
Jim Paris
0c1a1d2388
Fix nilmdb-server script
11 years ago
Jim Paris
e3f335dfe5
Move time parsing from cmdline into nilmdb.utils.time
11 years ago
Jim Paris
7a191c0ebb
Fix versioneer to update versions on install
11 years ago
Jim Paris
55bf11e393
Fix error when pyximport is too old
11 years ago