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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file markr-0.0.1.tar.gz
.
File metadata
- Download URL: markr-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678aa456c58a5b88f6dad3aac486393fa506a94c3976a3199c49ba63b22c4209 |
|
MD5 | f5593e06c635fc9ba556e61de81d5775 |
|
BLAKE2b-256 | 21c0b0ef50ed9c28699999a5ba33cbf51c40e2ce7ee5b22363f86070bf639f42 |
File details
Details for the file markr-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: markr-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ee7880149dad20acc1a5cef41f6ebb92bdc27a7d1c097c8d7431166c5276c0 |
|
MD5 | 4d937efff41b5198b66ec8e150b49b03 |
|
BLAKE2b-256 | 358ed93e3cb892436f52af87ac00240fec04766735400830792bbd7ff655eff9 |