Skip to main content

Package and script allowing marks to be associated with files

Project description

Markr

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
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

Licensing

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
markr-0.0.1-py3-none-any.whl (3.7 kB) Copy SHA256 hash SHA256 Wheel py3
markr-0.0.1.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page