Tags and sets of tags.
Project description
Latest release 20200229.1: Initial release: pull TagSet, Tag, TagChoice from cs.fstags for independent use.
Tags and sets of tags.
Class Tag(Tag,builtins.tuple)
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 TagChoice(TagChoice,builtins.tuple)
A "tag choice", an apply/reject flag and a Tag
,
used to apply changes to a TagSet
or as a criterion for a tag search.
Attributes:
spec
: the source text from which this choice was parsed, possiblyNone
choice
: the apply/reject flagtag
: theTag
representing the criterion
Class TagSet
A setlike class associating a set of tag names with values.
Method TagSet.__init__(self, *, defaults=None)
Initialise the TagSet
.
Parameters:
defaults
: a mapping of name->TagSet
to provide default values.
Release Log
Release 20200229.1: Initial release: pull TagSet, Tag, TagChoice from cs.fstags for independent use.
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
cs.tagset-20200229.1.tar.gz
(5.3 kB
view hashes)