sphobjinv.re¶
Helper regexes for sphobjinv
.
sphobjinv
is a toolkit for manipulation and inspection of
Sphinx objects.inv files.
- Author
Brian Skinn (bskinn@alum.mit.edu)
- File Created
5 Nov 2017
- Copyright
(c) Brian Skinn 2016-2021
- Source Repository
- Documentation
- License
The MIT License; see LICENSE.txt for full license terms
Members
-
p_data
= re.compile('\n ^ # Start of line\n (?P<name>.+?) # --> Name\n \\s+ # Dividing space\n (?P<domain>[^\\s:]+) # --> Domain\n : , re.MULTILINE|re.VERBOSE)¶ Compiled re
str
regex pattern for data lines instr
decompressed inventory files
-
pb_comments
= re.compile(b'^#.*$', re.MULTILINE)¶ Compiled re
bytes
pattern for comment lines in decompressed inventory files
-
pb_data
= re.compile(b'\n ^ # Start of line\n (?P<name>.+?) # --> Name\n \\s+ # Dividing space\n (?P<domain>[^\\s:]+) # --> Domain\n : , re.MULTILINE|re.VERBOSE)¶ Compiled re
bytes
regex pattern for data lines inbytes
decompressed inventory files
-
pb_project
= re.compile(b'\n ^ # Start of line\n [#][ ]Project:[ ] # Preamble\n (?P<project>.*?) # Lazy rest of line is project name\n \\r?$ # Ignore, re.MULTILINE|re.VERBOSE)¶
-
pb_version
= re.compile(b'\n ^ # Start of line\n [#][ ]Version:[ ] # Preamble\n (?P<version>.*?) # Lazy rest of line is version\n \\r?$ # Ignore poss, re.MULTILINE|re.VERBOSE)¶
-
ptn_data
= '\n ^ # Start of line\n (?P<name>.+?) # --> Name\n \\s+ # Dividing space\n (?P<domain>[^\\s:]+) # --> Domain\n : # Dividing colon\n (?P<role>[^\\s:]+) # --> Role\n \\s+ # Dividing space\n (?P<priority>-?\\d+) # --> Priority\n \\s+? # Dividing space\n (?P<uri>\\S*) # --> URI\n \\s+ # Dividing space\n (?P<dispname>.+?) # --> Display name, lazy b/c possible CR\n \\r?$ # Ignore possible CR at EOL\n '¶