Skip to main content

File metadata tagging and organization.

Project description

Coda is a file system organizer, designed for data scientists who frequently deal with large amounts of heterogeneous data. In this age where data rules all, being able to efficiently search and label those data is paramount to maintaining productivity. Coda allows you to tag files with arbitrary metadata, so that you can stay organized when managing/analyzing large datasets over time.

As a quick example of how coda might be useful for organizing an arbitrary dataset, see the following example (see the documentation for more in-depth documentation):

>>> import coda
>>> # generate a collection of files from a directory
>>> cl = coda.Collection('/path/to/test/data')
>>> # show all of the files in the structure
>>> print cl
>>> # set properties about the collection
>>> = 'test'
>>> cl.cohort = 'My Cohort'
>>> # add the files in the collection to the database
>>> # for tracking and retrieval later
>>> coda.add(cl)
>>> # do the same with a training dataset
>>> cl = coda.Collection('/path/to/train/data', metadata={'group': 'train'})
>>> coda.add(cl)
>>> # wait ... add one more file in a different location to
>>> # the training set
>>> fi = coda.File('/my/special/training/file.csv')
>>> = 'train'
>>> coda.add(fi)
>>> # ... later in time ...
>>> # query all of our training files
>>> cl = coda.find({'group': 'train'})
>>> print cl
>>> # filter those by csv files
>>> print cl.filter(lambda x: '.csv' in
>>> # tag the special file with new metadata
>>> cl.files[-1].special = True
>>> coda.add(cl.files[-1])
>>> # query it back (for the example)
>>> fi = coda.find_one({'special': True})
>>> print fi.metadata
{'group': 'train', 'special': True}


For installation and usage instructions please see the documentation.


File an issue in the GitHub issue tracker.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for coda, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size coda-0.0.3.tar.gz (14.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page