summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* tests/crypto_test.py: re-wrote it.Siddharth Ravikumar2015-02-121-56/+68
| | | | Now the test is in a Test class with proper setup and teardown methods.
* tests/file_test.py: re-wrote it.Siddharth Ravikumar2015-02-111-48/+54
| | | | Now the test is in a Test class with proper setup and teardown methods.
* tests/utils.py: removed extraneous import thingies.Siddharth Ravikumar2015-02-091-1/+1
|
* tests/config_test.py: re-wrote it.Siddharth Ravikumar2015-02-091-24/+27
| | | | | | | Now the test is in a Test class with proper setup and teardown methods. The teardown method has been purposely not fleshed out. It will be fleshed out after all the test modules have been re-written.
* tests/utils.py: contains utility functions, etc that will be used in test ↵Siddharth Ravikumar2015-02-091-0/+57
| | | | modules.
* combox/config.py: added a new arg `write' (boolean) to cb_config function.Siddharth Ravikumar2015-02-091-5/+8
| | | | | | `write' is set to 'True' by default. If `write' is 'True' the generated config is written to the disk; otherwise it is returned.
* [bugfix]: combox/config.py - when empty string is given for 'silo_dir'; it ↵Siddharth Ravikumar2015-02-081-2/+4
| | | | | | | | | | | | | | | | sets the dir to PWD, this was not intended. This was fixed. When empty string is given for 'silo_dir', the intended default directory was the combox's config directory. The input to 'silo_dir' was directly given to path.abspath() The path.abspath() function, when an empty string is given returns the PWD. That's where the bug was! So, now the 'silo_dir' input is read to a local variable `silo_dir'. If the local variable `silo_dir' is empty, the combox config directory is assigned; else, the given directory is assigned.
* setup.py: added 'console_scripts' under 'entry_points'Siddharth Ravikumar2015-02-051-0/+3
| | | | | | | | | | | Now, whenever combox is installed using 'python setup.py install' command, the setup script automatically puts an executed script in the respective bin/ directory in Unix like operating systems. According to the setuptools documentation[1], on Windows, it should create a respective .exe file. This is yet to be tested. [1]: https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation
* combox/events.py: Under ComboxDIrMonitor, set logging's level to INFO.Siddharth Ravikumar2015-02-051-0/+4
| | | | | | Reason why this was done: Every time a file is renamed/deleted/modified/created in the combox directory, a message about this is puked out to stdout.
* combox/cbox.py: put the code under __main__ into a new function called 'main()'Siddharth Ravikumar2015-02-051-2/+8
| | | | main() is called from __main__ now.
* [bugfix] combox/cbox.py: Forgot to rename ComboxEventHandler -> ↵Siddharth Ravikumar2015-02-051-2/+2
| | | | ComboxDirMonitor. Fixed it now.
* combox/events.py: In ComboxDirMonitor class, housekeep() is called from the ↵Siddharth Ravikumar2015-01-281-0/+2
| | | | __init__ method.
* combox/events.py: ComboxDirMonitor now inherits LoggingEventHandler instead ↵Siddharth Ravikumar2015-01-281-19/+4
| | | | of FileSystemEventHandler.
* tests/events_test.py: wrote test for 'file modification' under test_housekeep()Siddharth Ravikumar2015-01-281-0/+28
| | | | This, I guess, completes the tests for the new housekeep method in the ComboxDirMonitor class.
* combox/events.py - Wrote first version of housingkeep() method for ↵Siddharth Ravikumar2015-01-272-1/+75
| | | | | | | ComboxDirMonitor class. The test for this method at tests/events_test.py only tests a part of it.
* [bug fix] combox/file.py: rm_shards function checks if a shard exists before ↵Siddharth Ravikumar2015-01-271-1/+7
| | | | os.remove()ing it.
* tests/events_test.py: renamed test_CEH() -> test_CDM()Siddharth Ravikumar2015-01-271-1/+1
|
* combox/silo.py: new method `keys()' in ComboxSilo class.Siddharth Ravikumar2015-01-271-1/+7
|
* README.md: added `-s' option to nosetests command.Siddharth Ravikumar2015-01-271-1/+1
|
* README.md: updated combox description.Siddharth Ravikumar2015-01-271-2/+2
|
* combox/events.py: now when files are -- created, moved, removed, modified -- ↵Siddharth Ravikumar2015-01-212-11/+38
| | | | | | | their info is kept track in simple db file (using PickleDB). also updated tests/events_test.py to test if the newly added code to that updates the db works properly.
* tests/events_test.py: re-arranged the import statements.Siddharth Ravikumar2015-01-211-3/+5
|
* updated README.md - modded license sectionSiddharth Ravikumar2015-01-211-5/+5
|
* new module: combox/silo.pySiddharth Ravikumar2015-01-212-0/+186
| | | | | | | - Contains the ComboxSilo class which provides an interface to access the db that stores information about files in the combox directory. Tests for this module is at tests/silo_test.py
* updated setup.pySiddharth Ravikumar2015-01-211-2/+3
| | | | | - relegated 'version' to 0.0.0 - added `pickledb' to install_requires
* updated README.mdSiddharth Ravikumar2015-01-211-2/+7
| | | | | | - Put package dependencies in a separate section. - Added `argparse' and `pickledb' to list of dependencies. - Rearranged the dependencies in alphabetically.
* updated .gitignoreSiddharth Ravikumar2015-01-211-1/+2
|
* deleted: etc/storage.yaml - Going to be using PickleDB for storing info ↵Siddharth Ravikumar2015-01-211-13/+0
| | | | about files in the combox dir.
* combox/file.py: defined hash_file function.Siddharth Ravikumar2015-01-212-1/+26
| | | | | | hash_file function returns the SHA512 hash of the file's content. The test for the hash_file function is at tests/file_test.py
* README.md: add license information for combox logo.Siddharth Ravikumar2015-01-211-3/+8
|
* Renamed ComboxEventHandler (class) -> ComboxDirMonitorSiddharth Ravikumar2015-01-212-9/+9
| | | | | modified: combox/events.py modified: tests/events_test.py
* combox config now contains a `combox_name` field which contains the name of ↵Siddharth Ravikumar2015-01-213-1/+3
| | | | | | | | the combox. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml
* now the config file also makes note of the 'silo' directory.Siddharth Ravikumar2015-01-213-1/+9
| | | | | | | | | silo directory is the location where the silo (silo.db) containing information about files in the combox directory is stored. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml
* fleshed out the on_modified function in the ComboxEventHandler class + wrote ↵Siddharth Ravikumar2015-01-204-1/+98
| | | | | | | | | tests for it. modified: combox/events.py modified: tests/events_test.py new file: tests/files/ipsum.txt new file: tests/files/lorem.txt
* tests/events_test.py: fixed the path_deletedp function.Siddharth Ravikumar2015-01-201-5/+4
|
* updated copright year.Siddharth Ravikumar2015-01-209-9/+9
| | | | | | | | | | | | modified: combox/cbox.py modified: combox/config.py modified: combox/crypto.py modified: combox/events.py modified: combox/file.py modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py
* updated graphics/logo/combox-logo.svgSiddharth Ravikumar2015-01-191-67/+64
|
* added combox/cbox.py: pretty rough.Siddharth Ravikumar2015-01-161-0/+82
| | | | contains function that runs combox.
* tests/events_test.py: wrote test for file/directory rename under combox ↵Siddharth Ravikumar2015-01-161-0/+37
| | | | directory.
* [bug fix] combox/file.py: fixed bug in move_shards functionSiddharth Ravikumar2015-01-161-0/+5
| | | | | the fix: the shards don't have to be renamed when the directory under which they're located is renamed/moved.
* tests/events_test.py: wrote test for file/directory deletion in combox ↵Siddharth Ravikumar2015-01-151-4/+35
| | | | directory.
* combox/events.py: fleshed out on_moved, on_deleted functions.Siddharth Ravikumar2015-01-151-2/+24
| | | | The functions are not yet fully complete (See TODO in each function).
* tests/events_test.py: wrote code to test whether files created in a nested ↵Siddharth Ravikumar2015-01-151-5/+17
| | | | directory properly are split properly to node dirs.
* combox/file.py: wrote new utility functions.Siddharth Ravikumar2015-01-151-0/+99
| | | | | | | - rm_nodedir - move_nodedir - rm_shards - move_shards
* combox/config.py: node directories are created if they're not already created.Siddharth Ravikumar2015-01-151-0/+4
|
* updated graphics/logo/combox-logo.svgSiddharth Ravikumar2015-01-141-39/+82
|
* added graphics/logo/combox-logo.svgSiddharth Ravikumar2015-01-141-0/+118
|
* updated .gitignoreSiddharth Ravikumar2015-01-141-0/+1
|
* added tests/events_test.py: tests the ComboxEventHandler thing.Siddharth Ravikumar2015-01-141-0/+103
|
* combox/events.py: contains the ComboxEventHandler which monitors and does ↵Siddharth Ravikumar2015-01-141-0/+78
| | | | the combox thing.