masq /

Filename Size Date modified Message
masquerade
tests
76 B
1.5 KB
201 B
926 B

Overview

masq is a command line utility that allows the user to edit any flat file in any format using the format of their choosing.

masq is built in with formatters provided by the python standard library, that means you can read from sqlite files, and read from and edit in json and repr formats. masq is easily extendible to allow other formats.

Alpha Warning

This utility is in alpha. So while I hope you use it, it may delete your data or kill your babies. Be warned, please submit bug reports on the project bitbucket.

Dependencies

masq is built using the standard library available in Python 2.7. I make no guarantees (currently) about 2.6 or 3.x support, although I am not against it.

Usage

'masq <input file> as <input format> into <edit format> with <editor>'

If you don't pass in '<editor>', masq will attempt to pull it from your EDITOR or VISUAL environment variable.

Example: open file 'test.sqlite3' (treating it as a sqlite file) and editing it in vim in json format:

masq tests/files/test.sqlite3 as sqlite into json with vim

Future Features

  • Heuristics to auto determine input file format
  • More file security
  • Documentation
  • Reading/writing from pipes

Configuration

Soon there will be a config file where you can set your defaults

Contributors

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.