Skip to main content

Latest release 20191130.1: Initial release: fstags, filesystem based tagging utility.

Simple filesystem based file tagging.

Tags are stored in a file .fstags in directories with a line for each entry in the directory consisting of the directory entry name and the associated tags.

The tags for a file are the union of its direct tags and all relevant ancestor tags, with priority given to tags closer to the file.

For example, a media file for a television episode with the pathname /path/to/series-name/season-02/episode-name--s02e03--something.mp4 might obtain the tags:

series.title="Series Full Name"
season=2
sf
episode=3
episode.title="Full Episode Title"

from the following .fstags files and entries:

  • /path/to/.fstags: series-name sf series.title="Series Full Name"
  • /path/to/series-name/.fstags: season-02 season=2
  • /path/to/series-name/season-02.fstags: episode-name--s02e03--something.mp4 episode=3 episode.title="Full Episode Title"

Tags may be "bare", or have a value. If there is a value it is expressed with an equals ('=') followed by the JSON encoding of the value.

Class FSTagCommand

MRO: cs.cmdutils.BaseCommand
fstag main command line class.

Class FSTags

A class to examine filesystem tags.

Function loadrc(rcfilepath)

Read rc file, return rules.

Function main(argv=None)

Command line mode.

Class PathTags

Class to manipulate the tags for a specific path.

Class RegexpTagRule

A regular expression based Tag rule.

Function rfilepaths(path)

Generator yielding pathnames of files found under path.

Class Tag

A Tag has a .name (str) and a .value.

The name must be a dotted identifier.

A "bare" Tag has a value of None.

Class TagFile

A reference to a specific file containing tags.

Release Log

Release 20191130.1: Initial release: fstags, filesystem based tagging utility.

Download files

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

Source Distribution

cs.fstags-20191130.1.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file cs.fstags-20191130.1.tar.gz.

File metadata

  • Download URL: cs.fstags-20191130.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for cs.fstags-20191130.1.tar.gz
Algorithm Hash digest
SHA256 bdc1f76e82043695fe893096363ca50f3e8ab4de3c66fb4b38e4a0a7cc373a70
MD5 58c35f76da0bcbc2788537ddf1258f88
BLAKE2b-256 a9636e1d54cd9299b653dea1ec9b036edd2d5bc3c9cfb6df2b8d5839eaf44213

See more details on using hashes here.

Release history Release notifications | RSS feed

20260531

2 files

20250528

2 files

20241122

2 files

20241005

2 files

20240709

2 files

20240422

2 files

20240412

2 files

20240316

2 files

20240211

2 files

20240201.1

2 files

20240201

2 files

20230407

2 files

20230217

2 files

20230212

2 files

20230211

2 files

20230210

2 files

20221228

2 files

20220918

2 files

20220606

2 files

20220430

2 files

20220311

1 file

20211212

1 file

20210306

1 file

20200717.1

1 file

20200521.1

1 file

20200521

1 file

20200229

1 file

20200210

1 file

20200130

1 file

20200113.2

1 file

20200113.1

1 file

20200113

1 file

20191230

1 file

20191201

1 file

This release

20191130.1 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page