Code Monkey home page Code Monkey logo

tagger's Introduction

Tagger

An OS-independent file tagging mechanism to make file & photo storage useful, portable, structured & lightweight.

Aims

Files & photos can be:

  • tagged with multiple values
  • queried by tags
  • with a solution that can be backed up with files themselves
  • in a lightweight and portable way
  • that scales to large photo or file collections

Install

go install github.com/samxsmith/tagger

Usage

  • tagger init to initialise the current directory with a .tags file
  • tagger add $FILENAME tag1 tag2 tag3 ... to add tags to a file
  • tagger get-files tag1 tag3 to query for all files with that tag, recursively through the file structure from the current directory
  • tagger list-tags to list all tags recursively.

Example

photos/
  wedding_photo.jpg
  holiday_photo.jpg
  sub_dir/
    dog_and_me.jpg
    flower.jpg

Add tags

$ cd photos
$ tagger init
$ tagger add wedding_photo.jpg person:me person:spouse
$ tagger add holiday_photo person:spouse location:italy
$ tagger add sub_dir/dog_and_me.jpg location:home person:me person:dog
$ tagger add sub_dir/flower.jpg location:home

Query for files

$ tagger gf person:me

# photos with me in
wedding_photo.jpg
sub_dir/dog_and_me.jpg


$ tagger gf person:*

# photos with anyone in
wedding_photo.jpg
holiday_photo.jpg
sub_dir/dog_and_me.jpg

$ tagger gf person:spouse person:me

# photos with me & spouse in
wedding_photo.jpg

tagger's People

Contributors

samxsmith avatar

Watchers

 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.