Skip to main content

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.

Release files for markr 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markr 0.0.1
File Size Uploaded
markr-0.0.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markr 0.0.1
File Interpreter ABI Platform
markr-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / markr-0.0.1.tar.gz

Download URL markr-0.0.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
678aa456c58a5b88f6dad3aac486393fa506a94c3976a3199c49ba63b22c4209
BLAKE2b-256 checksum
How to use checksums
21c0b0ef50ed9c28699999a5ba33cbf51c40e2ce7ee5b22363f86070bf639f42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

Release files / markr-0.0.1-py3-none-any.whl

Download URL markr-0.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6ee7880149dad20acc1a5cef41f6ebb92bdc27a7d1c097c8d7431166c5276c0
BLAKE2b-256 checksum
How to use checksums
358ed93e3cb892436f52af87ac00240fec04766735400830792bbd7ff655eff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page