Skip to main content

Package and script allowing marks to be associated with files

Project description


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.

Getting Started

Install the python3 package

pip3 install markr

Test setting and getting marks.

$ 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
├── alice
│   └── me.txt -> ../../test/dir/me.txt
└── foo
    └── me.txt -> ../../test/dir/me.txt

2 directories, 2 files

Advanced Features

The 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


MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markr-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

markr-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page