John-Mark Gurney
5d339516dc
make some handling via uuid workable..
4 months ago
John-Mark Gurney
3ee4bf8d4f
support ordering for some cases..
4 months ago
John-Mark Gurney
c93d24e210
add --xargs and --help support to search..
4 months ago
John-Mark Gurney
39c16fd527
add support for parent_refs... updates db..
4 months ago
John-Mark Gurney
7bbb97448b
better docs on handling migrations..
4 months ago
John-Mark Gurney
cf3a1d65c1
the test for this was broken, and we were missing this...
fixing the test takes a bit of work, but likely will dump these
older migrations soon..
4 months ago
John-Mark Gurney
c9e2e0af56
expand some definitions, and add reference, talk about actor roles..
4 months ago
John-Mark Gurney
f8e45c0ceb
if no input, try again instead of adding... support fetching an "empty" md
4 months ago
John-Mark Gurney
9ee1e459b4
add support for outputing json objects from list
4 months ago
John-Mark Gurney
50c006a3ce
implement searching by metadata modified date...
4 months ago
John-Mark Gurney
bb2209ff2e
optimize searching for files... takes 300s query down to 15s.
SQLite3 does not do joins in a sane manner, so we emulate them
w/ subqueries for a large boost. Not sure if adding distinct would
improve things or not, the query plan does not change between the
two (but the lower ops may), but in a quick test, it didn't seem
to make a difference (not evaluated statistically)...
4 months ago
John-Mark Gurney
250c4a7eb5
add some additional test cases to prevent bad optimizations...
During attempts to optimize the query, these cases failed, but were
not detected...
4 months ago
John-Mark Gurney
5be7637f0d
support search w/o options and make it faster..
4 months ago
John-Mark Gurney
eff8493baf
add ability to search tags.. giving a tag, return all the tag=value pairs..
not sure how I want to handle spaces or escaping other characters. for now,
don't
4 months ago
John-Mark Gurney
670ffc953b
standard macos ignore
4 months ago
John-Mark Gurney
84426ff282
keep track of known issues...
8 months ago
John-Mark Gurney
71128c1767
fix two bugs, first is deleting tag that didn't exist was an error
second is auto was applying to all files if multiple were specified
on the command line resulting in all the mimetypes applied to all
the files...
8 months ago
John-Mark Gurney
cf0fddb0ad
add enable/disable for debug prints..
8 months ago
John-Mark Gurney
8d15e035fe
add tests for BitField...
just a warning, I've completely forgotten how this metaclass stuff
works... But it still behaves as it should.
1 year ago
John-Mark Gurney
de06275299
fix up CRW parsing a bit.. add test cases and framework for smaller tests
add a class to emulate a file, and only store the part of the file
that was read/accessed... This reduces storing an 11MB file down
to under 100KB... It also allows tests to run w/o the whole file...
Put the original files in fixtures/original...
fix up a couple of issues w/ parsing CRW files, and also allow the
ability to skip parts of the CRW file... This allows skipping
large parts, like the CCD data and the large thumbnail..
1 year ago
John-Mark Gurney
aefc221cde
add exiftool's list of Canon tags
1 year ago
John-Mark Gurney
5346ea06f0
forgot to include links to TIFF 6 standard...
1 year ago
John-Mark Gurney
50c35a8a85
add ifd builder (for testing), and make sure unknown enums are handled..
when I switched to the included enum, the unknown enum exception switched
from KeyError to ValueError, this now fixes that..
1 year ago
John-Mark Gurney
4f60a6ce2c
clean up tiff_ifd, use islice instead of complicated math..
1 year ago
John-Mark Gurney
67d44c1e95
fix string to follow the standard, other minor fixes..
fixing strings let me drop some special handlers..
Use BytesIO instead of fileoff so less code to maintain.. Maybe
want to just use bytes instead?
1 year ago
John-Mark Gurney
8e47cf3d6f
add the script to make the exif.jpeg file used for testing..
1 year ago
John-Mark Gurney
a02f32f410
add spec links, drop dead code, add JPEG EXIF parsing...
also minor code coverage tweak due to a bug
1 year ago
John-Mark Gurney
95fef909d8
checkpoint this work, confirmed parsing CRW and CR2 files...
This still needs some cleanup and additional tests.. This isn't
hooked into the testing system yet as I still haven't decided if
I'm going to commit fixtures or not (or maybe make this it's own
repo)..
IFD needs serious cleanup.. I should be using a classmethod instead
of the janky nextptr bs.
1 year ago
John-Mark Gurney
5a4fe83d64
make sure all files are processed..
this makes pre-caching files easier, and likely more what a user
expects..
1 year ago
John-Mark Gurney
573c975066
older versions of the library return this instead..
1 year ago
John-Mark Gurney
f529d0cafd
add support for zip archives...
This imports magic.py from file-magic and merges magic_wrap.py into
it...
This also updates detect_from_filename to try w/ _COMPRESS, and if
it returns an error, normal mode. This is necessary as [some?] zip
files can be decompressed by gzip, but throws an error...
1 year ago
John-Mark Gurney
d50be18450
add raw version of this.. will have magic_wrap embedded in next commit
1 year ago
John-Mark Gurney
53580234dc
ignore patch residue
1 year ago
John-Mark Gurney
152be62e3f
drop unneeded comment, autosaved w/ sqlite now, add new test to write
1 year ago
John-Mark Gurney
9279a559f5
significantly improve search results, especially in the exclusion case..
The original query applied a complicated test, which sqlite couldn't
tell if it applied to all..
In the case of any inclusion, it's easy, only search metadata, and match
to files.
If all exclusion, make two parts, the part w/ a metadata object that
doesn't have the exclusions, and the part w/o any metadata objects..
Both of these later two queries can be satified more simply and with
proper indices..
The old query might have worked fine on a more advanced DB, but was
necessary for decent performance..
1 year ago
John-Mark Gurney
d14fb005bb
on each successfull exit, do a little db maintainance...
1 year ago
John-Mark Gurney
6056bbbdc7
improve search performance.. minor dump improvements by uuid or hash..
dump improvements need tests..
1 year ago
John-Mark Gurney
035d354930
add RDF mapping description..
1 year ago
John-Mark Gurney
37bd97e7f9
include more detail on how to provide migrations..
1 year ago
John-Mark Gurney
0f633e175d
fix pre 2.0 sqlalchemy usage, and import medashare for orm..
1 year ago
John-Mark Gurney
5f5833a501
added this test earlier today...
1 year ago
John-Mark Gurney
4718e1113b
convert to 2.0, that was easier than I thought..
1 year ago
John-Mark Gurney
0b4c024c02
handle host id mapping on search results..
1 year ago
John-Mark Gurney
5d82d5930a
make mapping alone print out existing mappings..
1 year ago
John-Mark Gurney
81a0c7f77f
do this iteratively so the user gets results sooner..
1 year ago
John-Mark Gurney
0af2f89c67
add support for missing metadata objects, improve queries a bit..
Some queries weren't using the full power of SQL and doing some of
the selection in the code, fix that (by_hash and host mapping).
1 year ago
John-Mark Gurney
0802947635
add support for valueless searches..
1 year ago
John-Mark Gurney
2bec4e15c1
add support for searching, not indexed yet...
1 year ago
John-Mark Gurney
3579fd59a8
make sure subcommand help prints more useful help message..
1 year ago
John-Mark Gurney
204233629e
better halflife support, fix some minor bugs..
1 year ago