Package and script allowing marks to be associated with files
A library and script for associating marks/labels/key-values with a given file. Markr lets you perform operations on the marks for files.
Associating metadata with files/resources can be used to organize, search and perform other operations on files. Markr provides a library and script to do this using external attributes.
Install the python3 package
pip3 install markr
Test setting and getting
$ touch me.txt $ markr set me.txt foo bar $ markr set me.txt alice bob $ markr get me.txt foo : bar alice : bob
Creating a mark directory
$ mkdir -p test/dir $ touch test/dir/me.txt $ markr set me.txt foo bar $ markr set me.txt alice bob $ markr get me.txt alice : bob foo : bar $ markr dir test $ tree marks marks/ ├── alice │ └── me.txt -> ../../test/dir/me.txt └── foo └── me.txt -> ../../test/dir/me.txt 2 directories, 2 files
dir command scans all files underneath a given directory for marks, and
creates a new directory structure where each subdirectory is a given label. This
allows you to view what files have the same marks
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.