Coder Social home page Coder Social logo

datamap's Introduction

Datamap

Manages folder mappings to help organize huge ammounts of data.

Works reading mappings from a "mappings" file located at datamap home folder.

Datamap home folder

Is located on $XDG_CONFIG_HOME/datamap, or, if folder doesnt exists, is on $HOME/.config/datamap

"mappings" file format

Empty lines and lines starting with "#" are ignored. Each line is the full path of a "mapped" folder, ie, must contain a ".datamap" file. Its possible use environment variables on folder names (they are expanded via python's "os.path.expandvars").

".datamap" file format

Lines not containing a "=" char are ignored

Lines starting with "#" are ignored

All other lines are read in "key=value" format

Properties

"description" and "category" are required properties. If not present a error will be throw. Is very recommended this property be set on "default_properties" file.

"folder" always exists and contains full path of mapping (even when explicitly set to something else).

"disable_bookmark" defaults to "no". In listing this property will be printed only when have "yes" value.

"gtk_bookmark" is the user friendly name of GTK 3 bookmark created. Defaults to base name of folder (throught python's 3 "os.path.basename")

"default_properties" file

Contains "global" properties appended to ones read from ".datamap" files. Its located at datamap home folder, and is named "default_properties.datamap". Has the same format of ".datamap" file

TODO

  • Filter list by category #next
  • Extract classes to their own files #quick #next
  • Rename category to categories and turn it into a list #backlog
  • Creata a --create-datamap command, must create .datamap file with the properties and entry on mappings file #backlog
  • Find mappings on a specified folder #backlog
  • Filter list by property existence #backlog
  • Filter list by property + value #backlog
  • Mappings of URLs, usefull to describe repositories not cloned locally #backlog
  • List all existing categories #backlog
  • List all existing properties #backlog
  • Dynamically find .datamap files on folder specified on mappings #backlog

datamap's People

Contributors

rmonico avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.