skip to navigation
skip to content

Not Logged In

insolater 0.0.1

Tool to easily switch between original and modified versions of a directory.

A simple version control system for small personal projects. insolater has an easy to use interface to save, open, and transfer versions of your work.

Installation

pip install insolater

Examples

In a python script:

import insolater
insolater.init()
insolater.save_version('v1')
insolater.change_version('v1')
# Modify some files
insolater.push_version('user@host:path_to_dir_for_version')
insolater.pull_version('user@host:path_to_dir_for_version', 'pulled_ver')
insolater.current_version()
insolater.change_version('original')
# Changes are not present.
insolater.change_version('pulled_ver')
# Changes are back.
insolater.delete_version('v1')
insolater.all_versions()
insolater.exit(True)
# .insolater_repo is deleted and files are in their original condition.

Running from command line:

$ ls *
fa  fb  test_scipt.sh

d:
fa  fc
$ inso init
Initialized repository with versions: original
$ inso list
* original
$ echo data > f
$ rm fb
$ echo data >> fa
$ echo data >> d/fa
$ inso save changes
Version changes created and opened
$ ls *
f  fa  test_scipt.sh

d:
fa  fc
$ inso open original
Switched to original
$ ls *
fa  fb  test_scipt.sh

d:
fa  fc
$ cat fa
old data a
$ cat d/fa
old data da
$ inso open changes
Switched to changes
$ ls *
f  fa  test_scipt.sh

d:
fa  fc
$ cat fa
old data a
data
$ cat d/fa
old data da
data
$ cat f
data
$ ls ~/test_changes
$ inso save changes2
Version changes2 created and opened
$ inso list
  original
* changes2
  changes
$ inso open changes
Switched to changes
$ inso rm changes2
Version changes2 deleted
$ inso list
  original
* changes
$ inso push $USER@localhost:~/test_changes/
user@localhost's password:
f     transfered
fa    transfered
d     transfered
test_scipt.sh     transfered

$ inso exit
Do you want to discard all changes (y/[n]): y
Session Ended
$ ls ../test_changes/ ../test_changes/d
../test_changes/:
d  f  fa  test_scipt.sh

../test_changes/d:
fa  fc
$ ls *
fa  fb  test_scipt.sh

d:
fa  fc
$ cat d/fa
old data da
$ inso init $USER@localhost:~/test_changes/
user@localhost's password:
Initialized repository with versions: original
$ inso list
* original
$ ls *
f  fa  test_scipt.sh

d:
fa  fc
$ cat d/fa
old data da
data
$ inso -f exit
Session Ended
$ cat d/fa
old data da
 
File Type Py Version Uploaded on Size
insolater-0.0.1.tar.gz (md5) Source 2013-12-09 14KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 20 downloads in the last week
  • 152 downloads in the last month
  • Author: David Karesh
  • Home Page: github.com/davidnk/insolater
  • Download URL: https://github.com/davidnk/insolater/tarball/v0.0.1
  • License:
    The MIT License (MIT)
    
    Copyright (c) 2013 David Karesh
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
  • Categories
  • Package Index Owner: dkaresh
  • DOAP record: insolater-0.0.1.xml