pyseq-0.2.0b/000755 000765 000770 00000000000 11537523672 013342 5ustar00rsgalloway000000 000000 pyseq-0.2.0b/.___init__.py000644 000765 000024 00000000270 11537523651 016700 0ustar00rsgallowaystaff000000 000000 Mac OS X  2†žATTRŠ“%ž˜ ˜ com.macromates.caretxœ«æR‚äüœÒÜ<[k0?'3/«‹™pyseq-0.2.0b/__init__.py000644 000765 000770 00000000024 11537523651 015444 0ustar00rsgalloway000000 000000 from pyseq import * pyseq-0.2.0b/doc/000755 000765 000770 00000000000 11537523651 014104 5ustar00rsgalloway000000 000000 pyseq-0.2.0b/._LICENSE000644 000765 000024 00000000270 11537523651 015574 0ustar00rsgallowaystaff000000 000000 Mac OS X  2†žATTRŠ“/ž˜ ˜ com.macromates.caretxœ«æR‚äüœÒÜ<[k0?'3/«‹™pyseq-0.2.0b/LICENSE000644 000765 000770 00000002756 11537523651 014356 0ustar00rsgalloway000000 000000 Shotman Copyright (c) 2010-2011, Ryan Galloway (http://rsgalloway.com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.pyseq-0.2.0b/._lss000644 000765 000024 00000000272 11537523651 015315 0ustar00rsgallowaystaff000000 000000 Mac OS X  2ˆºATTRŠ“0º˜"˜"com.macromates.caret{ column = 6; line = 57; }pyseq-0.2.0b/lss000644 000765 000770 00000003462 11537523651 014070 0ustar00rsgalloway000000 000000 #!/usr/bin/env python # # Copyright (C) 2011 Ryan Galloway (ryan@rsgalloway.com) # # This module is part of Shotman and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os import sys import optparse import logging import pyseq def main(): """ Command-line interface. """ import optparse usage = """ lss [path] [-f format] [-d] Formatting options: You can format the output of lss using the --format option and passing in a format string. Default format string is "%s" Supported directives: %%s sequence start %%e sequence end %%l sequence length %%f list of found files %%m list of missing files %%p padding, e.g. %%06d %%r absolute range, start-end %%R expanded range, start-end [missing] %%h string preceding sequence number %%t string after the sequence number Format directives support padding, for example: "%%04l". """ % pyseq.gFormat parser = optparse.OptionParser(usage=usage, version="%prog "+pyseq.__version__) parser.add_option("-f", "--format", dest="format", default=pyseq.gFormat, help="format the output string") parser.add_option("-d", "--debug", dest="debug", action="store_true", default=False, help="set logging level to debug (or $PYSEQ_LOG_LEVEL)") (options, args) = parser.parse_args() if options.debug: pyseq.log.setLevel(logging.DEBUG) path = os.path.curdir if len(args) == 0: args = os.getcwd() elif len(args) == 1 and os.path.isdir(args[0]): args = args[0] for seq in pyseq.getSequences(args): print seq.format(options.format) return (0) if __name__ == '__main__': sys.exit(main())pyseq-0.2.0b/._pyseq.py000755 000765 000024 00000000274 11537523651 016311 0ustar00rsgallowaystaff000000 000000 Mac OS X  2ŠŒATTRŠ“1Œ˜$˜$com.macromates.caret{ column = 59; line = 261; }pyseq-0.2.0b/pyseq.py000755 000765 000770 00000051572 11537523651 015067 0ustar00rsgalloway000000 000000 #!/usr/bin/env python # --------------------------------------------------------------------------------------------- # Copyright (c) 2011-2012, Ryan Galloway (ryan@rsgalloway.com) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # - Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # - Neither the name of the software nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # --------------------------------------------------------------------------------------------- # docs and latest version available for download at # http://github.com/rsgalloway/pyseq # --------------------------------------------------------------------------------------------- __author__ = "Ryan Galloway " __version__ = "0.2.0b" # --------------------------------------------------------------------------------------------- # TODO # --------------------------------------------------------------------------------------------- """ - support additional syntax, e.g. x10 = every tenth frame - recurse subdirectories and display trees - add optional format parameter to diff function """ # --------------------------------------------------------------------------------------------- # CHANGELOG # --------------------------------------------------------------------------------------------- """ +v0.2.0b - 2011 Mar 14 + Added support for wildcards in getSequence source input and in lss + Added format method to Sequence class for formatted string stdout + Sequence __str__ method now returns simplified compressed sequence string + Added SequenceError exception + Sequence qppend method raises SequenceError if file is non-sequence-member + Export diff function to get numeric differences between two sequential files + Alpha version of uncompress func for deserialization of compressed sequence strings + Added additional attributes to Item class: path, frame, head, tail + Item name attribute is now base name, fixes bug where contains method didn't work on file paths + Moved function 'main' to lss permanently + Added --format and --debug options to lss + Ability to set log level with environment variable $PYSEQ_LOG_LEVEL + Simplified format directives, e.g. from %(head)s to %h, with support for padding, e.g. %04l + Fixed duplicate sequence index number bug + Set logging level with PYSEQ_LOG_LEVEL environment variable + Added 32 additional test cases * Performance improvements + Added html docs +v0.1.2 - 2011 Feb 15 + getSequences now takes either a directory path or a python list of files + added setup.py + added lss script """ import os import re import sys import difflib import logging from glob import glob from datetime import datetime # default serialization format string gFormat = '%04l %h%p%t %R' # regex for matching numerical characters gDigitsRE = re.compile(r'\d+') # regex for matching format directives gFormatRE = re.compile(r'%(?P\d+)?(?P\w+)') __all__ = ['SequenceError', 'Item', 'Sequence', 'diff', 'uncompress', 'getSequences'] log = logging.getLogger('pyseq') log.addHandler(logging.StreamHandler()) log.setLevel(int(os.environ.get('PYSEQ_LOG_LEVEL', logging.INFO))) # ----------------------------------------------------------------------------- class SequenceError(Exception): """special exception for sequence errors""" class Item(str): """Sequence member file class""" def __init__(self, path): """ Create a new Item class object. :param path: Path to file. :return: pyseq.Item instance. """ self.__path = os.path.abspath(path) self.__dirname = os.path.dirname(path) self.__filename = os.path.basename(self.path) self.__digits = gDigitsRE.findall(self.name) self.__parts = gDigitsRE.split(self.name) # modified by self.isSibling() self.frame = '' self.head = self.name self.tail = '' def __str__(self): return str(self.name) def __repr__(self): return '' % self.name def _get_path(self): return self.__path def _get_filename(self): return self.__filename def _get_dirname(self): return self.__dirname def _get_digits(self): return self.__digits def _get_parts(self): return self.__parts def _set_readonly(self, value): raise TypeError, 'Read-only attribute' # immutable properties path = property(_get_path, _set_readonly, doc="Item absolute path, if a filesystem item.") name = property(_get_filename, _set_readonly, doc="Item base name attribute.") dirname = property(_get_dirname, _set_readonly, doc="Item directory name, if a filesystem item.") digits = property(_get_digits, _set_readonly, doc="Numerical components of item name.") parts = property(_get_parts, _set_readonly, doc="Non-numerical components of item name.") def isSibling(self, item): """ Determines if this and item are part of the same sequence. :param item: A pyseq.Item class object. :return: True if this and item are sequential siblings. """ if not type(item) == Item: item = Item(item) d = diff(self, item) _isSibling = (len(d) == 1) and (self.parts == item.parts) if _isSibling: self.frame = d[0]['frames'][0] self.head = self.name[:d[0]['start']] self.tail = self.name[d[0]['end']:] item.frame = d[0]['frames'][1] item.head = item.name[:d[0]['start']] item.tail = item.name[d[0]['end']:] return _isSibling class Sequence(list): """ Extends list class with methods that handle item sequentialness. For example: >>> s = Sequence(['file.0001.jpg', 'file.0002.jpg', 'file.0003.jpg']) >>> print s file.1-3.jpg >>> s.append('file.0006.jpg') >>> print s.format('%04l %h%p%t %R') 4 file.%04d.jpg 1-3 6 >>> s.contains('file.0009.jpg') True >>> s.contains('file.0009.pic') False """ def __init__(self, items): """ Create a new Sequence class object. :param: items: Sequential list of items. :return: pyseq.Sequence class instance. """ super(Sequence, self).__init__([Item(items.pop(0))]) while items: f = Item(items.pop(0)) try: self.append(f) log.debug('+Item belongs to sequence.') except SequenceError, e: continue log.debug('-Item does not belong to sequence.') except KeyboardInterrupt: log.info("Stopping.") break def __attrs__(self): """Replaces format directives with values""" return { 'l': self.length(), 's': self.start(), 'e': self.end(), 'f': self.frames(), 'm': self.missing(), 'p': self._get_padding(), 'r': self._get_framerange(missing=False), 'R': self._get_framerange(missing=True), 'h': self.head(), 't': self.tail() } def __str__(self): return self.format('%h%r%t') def __repr__(self): return '' % str(self) def __contains__(self, item): super(Sequence, self).__contains__(Item(item)) def format(self, format=gFormat): """ Format the stdout string. The following directives can be embedded in the format string. Format directives support padding, for example: "%%04l". +-----------+-------------------------------------+ | Directive | Meaning | +===========+=====================================+ | ``%s`` | sequence start | +-----------+-------------------------------------+ | ``%e`` | sequence end | +-----------+-------------------------------------+ | ``%l`` | sequence length | +-----------+-------------------------------------+ | ``%f`` | list of found files | +-----------+-------------------------------------+ | ``%m`` | list of missing files | +-----------+-------------------------------------+ | ``%p`` | padding, e.g. %06d | +-----------+-------------------------------------+ | ``%r`` | implied range, start-end | +-----------+-------------------------------------+ | ``%R`` | explicit range, start-end [missing] | +-----------+-------------------------------------+ | ``%h`` | string preceding sequence number | +-----------+-------------------------------------+ | ``%t`` | string after the sequence number | +-----------+-------------------------------------+ :param format: Format string. Default is '%04l %h%p%t %R'. :return: Formatted string. """ for m in gFormatRE.finditer(format): _old = '%s%s' %(m.group('pad') or '', m.group('var')) _new = '(%s)%ss' %(m.group('var'), m.group('pad') or '') format = format.replace(_old, _new) return format % self.__attrs__() def length(self): """:return: The length of the sequence.""" return len(self) def frames(self): """:return: List of files in sequence.""" if not hasattr(self, '__frames') or not self.__frames: self.__frames = map(int, self._get_frames()) self.__frames.sort() return self.__frames def start(self): """:return: First index number in sequence.""" try: return self.frames()[0] except IndexError: return 0 def end(self): """:return: Last index number in sequence.""" try: return self.frames()[-1] except IndexError: return 0 def missing(self): """:return: List of missing files.""" if not hasattr(self, '__missing') or not self.__missing: self.__missing = map(int, self._get_missing()) return self.__missing def head(self): """:return: String before the sequence index number.""" return self[0].head def tail(self): """:return: String after the sequence index number.""" return self[0].tail def path(self): """:return: Absolute path to sequence.""" _dirname = str(os.path.dirname(os.path.abspath(self[0].path))) return os.path.join(_dirname, str(self)) def contains(self, item): """ Checks for sequence membership. Calls Item.isSibling() and returns True if item is part of the sequence. For example: >>> s = Sequence(['fileA.0001.jpg', 'fileA.0002.jpg']) >>> print s fileA.1-2.jpg >>> s.contains('fileA.0003.jpg') True >>> s.contains('fileB.0003.jpg') False :param item: pyseq.Item class object. :return: True if item is a sequence member. """ if len(self) > 0: if type(item) is not Item: item = Item(item) return self[-1].isSibling(item) def append(self, item): """ Adds another member to the sequence. :param item: pyseq.Item object. :exc:`SequenceError` raised if item is not a sequence member. """ if type(item) is not Item: item = Item(item) if self.contains(item): super(Sequence, self).append(item) self.__frames = None self.__missing = None else: raise SequenceError, 'Item is not a member of this sequence' def _get_padding(self): """:return: padding string, e.g. %07d""" try: pad = len(self._get_frames()[0]) if pad < 2: return '%d' return '%%%02dd' % pad except IndexError: return '' def _get_framerange(self, missing=True): """ Returns frame range string, e.g. 1-500. :param missing: Expand sequence to exlude missing sequence indices. :return: formatted frame range string. """ frange = [] start = '' end = '' prev = '' if not missing: if self.frames(): return '%s-%s' %(self.start(), self.end()) else: return '' for i in range(0, len(self.frames())): if int(self.frames()[i]) != int(self.frames()[i-1])+1 and i != 0: if start != end: frange.append('%s-%s' % (str(start), str(end))) elif start == end: frange.append(str(start)) start = end = self.frames()[i] continue if start is '' or int(start) > int(self.frames()[i]): start = self.frames()[i] if end is '' or int(end) < int(self.frames()[i]): end = self.frames()[i] if start == end: frange.append(str(start)) else: frange.append('%s-%s' % (str(start), str(end))) return ' '.join(frange) def _get_frames(self): """finds the sequence indexes from item names""" return [f.frame for f in self if f.frame is not ''] def _get_missing(self): """looks for missing sequence indexes in sequence""" if len(self) > 1: frange = xrange(self.start(), self.end()) return filter(lambda x: x not in self.frames(), frange) return '' def diff(f1, f2): """ Examines diffs between f1 and f2 and deduces numerical sequence number. For example: >>> diff('file01_0040.rgb', 'file01_0041.rgb') [{'frames': ('0040', '0041'), 'start': 7, 'end': 11}] >>> diff('file3.03.rgb', 'file4.03.rgb') [{'frames': ('3', '4'), 'start': 4, 'end': 5}] :param f1: pyseq.Item object. :param f2: pyseq.Item object, for comparison. :return: Dictionary with keys: frames, start, end. """ log.debug('diff: %s %s' %(f1, f2)) if not type(f1) == Item: f1 = Item(f1) if not type(f2) == Item: f2 = Item(f2) l1 = [m for m in gDigitsRE.finditer(f1.name)] l2 = [m for m in gDigitsRE.finditer(f2.name)] d = [] if len(l1) == len(l2): for i in range(0, len(l1)): m1 = l1.pop(0) m2 = l2.pop(0) if m1.start() == m2.start() and m1.group() != m2.group(): d.append({'start': m1.start(), 'end': m1.end(), 'frames': (m1.group(), m2.group())} ) log.debug(d) return d def uncompress(seqstring, format=gFormat): """ Basic uncompression or deserialization of a compressed sequence string. For example: >>> seq = uncompress('./tests/012_vb_110_v001.%04d.png 1-10', format='%h%p%t %r') >>> print seq 012_vb_110_v001.1-10.png >>> len(seq) 10 :param seqstring: Compressed sequence string. :param format: Format of sequence string. :return: pyseq.Sequence instance. """ dirname = os.path.dirname(seqstring) name = os.path.basename(seqstring) log.debug('uncompress: %s' % name) #FIXME: RE for directive 'R' is broken remap = { 's': '\d+', 'e': '\d+', 'l': '\d+', 'h': '\S+', 't': '\S+', 'r': '\d+-\d+', 'R': '\d+', 'p': '%\d+d', 'm': '\[.*\]', 'f': '\[.*\]' } for m in gFormatRE.finditer(format): _old = '%%%s%s' %(m.group('pad') or '', m.group('var')) _new = '(?P<%s>%s)' %(m.group('var'), remap.get(m.group('var'), '\w+')) format = format.replace(_old, _new) regex = re.compile(format) match = regex.match(name) if not match: log.debug('No matches.') return try: pad = match.group('p') except IndexError: pad = "%d" try: r = match.group('r') s, e = r.split('-') except IndexError: s = match.group('s') e = match.group('e') try: frames = eval(m.group('f')) except IndexError: frames = [] try: missing = eval(m.group('m')) except IndexError: missing = [] items = [] for i in range(int(s), int(e)+1): if i in missing: continue exec('f = "%s" %% i' % pad) name = '%s%s%s' %(match.group('h'), f, match.group('t')) items.append(Item(os.path.join(dirname, name))) seqs = getSequences(items) if seqs: return seqs[0] return seqs def getSequences(source): """ Returns a list of Sequence objects given a directory or list that contain sequential members. Get sequences in a directory: >>> seqs = getSequences('./tests/') >>> for s in seqs: print s ... 012_vb_110_v001.1-10.png 012_vb_110_v002.1-10.png alpha.txt bnc01_TinkSO_tx_0_ty_0.101-105.tif bnc01_TinkSO_tx_0_ty_1.101-105.tif bnc01_TinkSO_tx_1_ty_0.101-105.tif bnc01_TinkSO_tx_1_ty_1.101-105.tif file.1-2.tif file.info.03.rgb file01_40-43.rgb file02_44-47.rgb file1-4.03.rgb file_02.tif Get sequences from a list: >>> seqs = getSequences(['fileA.1.rgb', 'fileA.2.rgb', 'fileB.1.rgb']) >>> for s in seqs: print s ... fileA.1-2.rgb fileB.1.rgb :param source: Can be directory path or list of items. :return: List of pyseq.Sequence class objects. """ seqs = [] s = datetime.now() if type(source) == list: items = source items.sort() elif type(source) == str and os.path.isdir(source): items = glob(os.path.join(source, '*')) elif type(source) == str: items = glob(source) else: raise TypeError, 'Unsupported format for source argument' log.debug('Found %s files' % len(items)) if len(items) > 0: seq = Sequence([Item(items.pop(0))]) seqs.append(seq) while items: item = Item(items.pop(0)) try: seq.append(item) log.debug('+Item belongs to sequence.') except SequenceError, e: seq = Sequence([item]) seqs.append(seq) log.debug('-Item does not belong to sequence.') except KeyboardInterrupt: log.info("Stopping.") break log.debug('Done in %s.' %(datetime.now() - s)) return seqs if __name__ == '__main__': """run through some test examples""" seqs = getSequences(['fileA.1.rgb', 'fileA.2.rgb', 'fileB.1.rgb']) print seqs seqs = getSequences(os.path.join(os.path.dirname(__file__), 'tests')) for s in seqs: print s.format('%h%p%t %r') print diff('fileA.0001.dpx', 'fileA.0002.dpx') print diff('012_vb_110_v002.1.dpx', '012_vb_110_v002.2.dpx') seq = uncompress('./tests/012_vb_110_v001.%04d.png 1-10', format='%h%p%t %r') print seq.format() seq = uncompress('./tests/012_vb_110_v001.1-10.png', format='%h%r%t') print seq.format()pyseq-0.2.0b/._README000644 000765 000024 00000000272 11537523651 015451 0ustar00rsgallowaystaff000000 000000 Mac OS X  2ˆºATTRŠ“2º˜"˜"com.macromates.caret{ column = 6; line = 68; }pyseq-0.2.0b/README000644 000765 000770 00000003723 11537523651 014224 0ustar00rsgalloway000000 000000 PySeq Mon Mar 14 15:45:29 PDT 2011 1 Overview ~~~~~~~~~~ PySeq is a python module that finds groups of items that follow a naming convention containing a numerical sequence index (e.g. fileA.001.png, fileA.002.png, fileA.003.png...) and serializes them into a compressed sequence string representing the entire sequence (e.g. fileA.1-3.png). It should work regardless of where the numerical sequence index is embedded in the name. For examples, see basic usage below. * README this file * LICENSE the license under which pyseq is released * pyseq.py pyseq python module * lss a python script to be installed to /usr/local/bin * /tests example file sequences * /doc html docs 2 Installation ~~~~~~~~~~~~~~ % sudo easy_install pyseq 3 Basic Usage ~~~~~~~~~~~~~ Using the "z1" file sequence example in the "tests" directory: % ls tests/z1* tests/z1_001_v1.1.png tests/z1_001_v1.4.png tests/z1_002_v1.3.png tests/z1_002_v2.2.png tests/z1_001_v1.2.png tests/z1_002_v1.1.png tests/z1_002_v1.4.png tests/z1_002_v2.3.png tests/z1_001_v1.3.png tests/z1_002_v1.2.png tests/z1_002_v2.1.png tests/z1_002_v2.4.png % lss tests/z1* 4 z1_001_v1.%d.png 1-4 4 z1_002_v1.%d.png 1-4 4 z1_002_v2.%d.png 1-4 % lss tests/z1* -f "%h%r%t" z1_001_v1.1-4.png z1_002_v1.1-4.png z1_002_v2.1-4.png 3.1 API Examples ================ *Compression, or serialization, of lists of items* >>> s = Sequence(['file.0001.jpg', 'file.0002.jpg', 'file.0003.jpg']) >>> print s file.1-3.jpg >>> s.append('file.0006.jpg') >>> print s.format("%h%p%t %R") file.%04d.jpg 1-3 6 >>> s.contains('file.0009.jpg') True >>> s.contains('file.0009.pic') False *Uncompression, or deserialization, of compressed sequences strings* >>> s = uncompress('012_vb_110_v002.1-150.dpx', format="%h%r%t") >>> len(s) 150 >>> seq = uncompress('./tests/012_vb_110_v001.%04d.png 1-10', format='%h%p%t %r') >>> print seq.format('%04l %h%p%t %R') 10 012_vb_110_v001.%04d.png 1-10 pyseq-0.2.0b/._setup.py000644 000765 000024 00000000273 11537523651 016304 0ustar00rsgallowaystaff000000 000000 Mac OS X  2‰»ATTRŠ“3»˜#˜#com.macromates.caret{ column = 28; line = 12; }pyseq-0.2.0b/setup.py000644 000765 000770 00000001057 11537523651 015054 0ustar00rsgalloway000000 000000 #!/usr/bin/env python # # Copyright (C) 2011-2012 Ryan Galloway (ryan@rsgalloway.com) # # This module is part of Shotman and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php from distutils.core import setup from pyseq import __version__ setup(name='pyseq', version=__version__, description='Compressed Sequence Python Module', author='Ryan Galloway', author_email='ryan@rsgalloway.com', url='http://github.com/rsgalloway/pyseq', py_modules=['pyseq'], scripts = ['lss'] )pyseq-0.2.0b/tests/000755 000765 000770 00000000000 11537523651 014501 5ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0001.png000644 000765 000770 00000000000 11537523651 017674 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0002.png000644 000765 000770 00000000000 11537523651 017675 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0003.png000644 000765 000770 00000000000 11537523651 017676 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0004.png000644 000765 000770 00000000000 11537523651 017677 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0005.png000644 000765 000770 00000000000 11537523651 017700 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0006.png000644 000765 000770 00000000000 11537523651 017701 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0007.png000644 000765 000770 00000000000 11537523651 017702 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0008.png000644 000765 000770 00000000000 11537523651 017703 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0009.png000644 000765 000770 00000000000 11537523651 017704 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v001.0010.png000644 000765 000770 00000000000 11537523651 017674 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0001.png000644 000765 000770 00000000000 11537523651 017675 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0002.png000644 000765 000770 00000000000 11537523651 017676 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0003.png000644 000765 000770 00000000000 11537523651 017677 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0004.png000644 000765 000770 00000000000 11537523651 017700 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0005.png000644 000765 000770 00000000000 11537523651 017701 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0006.png000644 000765 000770 00000000000 11537523651 017702 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0007.png000644 000765 000770 00000000000 11537523651 017703 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0008.png000644 000765 000770 00000000000 11537523651 017704 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0009.png000644 000765 000770 00000000000 11537523651 017705 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/012_vb_110_v002.0010.png000644 000765 000770 00000000000 11537523651 017675 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/alpha.txt000644 000765 000770 00000000000 11537523651 016315 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_0.0101.tif000644 000765 000770 00000000000 11537523651 021572 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_0.0102.tif000644 000765 000770 00000000000 11537523651 021573 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_0.0103.tif000644 000765 000770 00000000000 11537523651 021574 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_0.0104.tif000644 000765 000770 00000000000 11537523651 021575 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_0.0105.tif000644 000765 000770 00000000000 11537523651 021576 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_1.0101.tif000644 000765 000770 00000000000 11537523651 021573 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_1.0102.tif000644 000765 000770 00000000000 11537523651 021574 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_1.0103.tif000644 000765 000770 00000000000 11537523651 021575 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_1.0104.tif000644 000765 000770 00000000000 11537523651 021576 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_0_ty_1.0105.tif000644 000765 000770 00000000000 11537523651 021577 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_0.0101.tif000644 000765 000770 00000000000 11537523651 021573 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_0.0102.tif000644 000765 000770 00000000000 11537523651 021574 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_0.0103.tif000644 000765 000770 00000000000 11537523651 021575 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_0.0104.tif000644 000765 000770 00000000000 11537523651 021576 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_0.0105.tif000644 000765 000770 00000000000 11537523651 021577 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_1.0101.tif000644 000765 000770 00000000000 11537523651 021574 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_1.0102.tif000644 000765 000770 00000000000 11537523651 021575 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_1.0103.tif000644 000765 000770 00000000000 11537523651 021576 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_1.0104.tif000644 000765 000770 00000000000 11537523651 021577 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/bnc01_TinkSO_tx_1_ty_1.0105.tif000644 000765 000770 00000000000 11537523651 021600 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file.01.tif000644 000765 000770 00000000000 11537523651 016331 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file.02.tif000644 000765 000770 00000000000 11537523651 016332 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file.info.03.rgb000644 000765 000770 00000000000 11537523651 017255 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file01_0040.rgb000644 000765 000770 00000000000 11537523651 016706 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file01_0041.rgb000644 000765 000770 00000000000 11537523651 016707 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file01_0042.rgb000644 000765 000770 00000000000 11537523651 016710 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file01_0043.rgb000644 000765 000770 00000000000 11537523651 016711 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file02_0044.rgb000644 000765 000770 00000000000 11537523651 016713 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file02_0045.rgb000644 000765 000770 00000000000 11537523651 016714 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file02_0046.rgb000644 000765 000770 00000000000 11537523651 016715 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file02_0047.rgb000644 000765 000770 00000000000 11537523651 016716 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file1.03.rgb000644 000765 000770 00000000000 11537523651 016404 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file2.03.rgb000644 000765 000770 00000000000 11537523651 016405 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file3.03.rgb000644 000765 000770 00000000000 11537523651 016406 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file4.03.rgb000644 000765 000770 00000000000 11537523651 016407 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/file_02.tif000644 000765 000770 00000000000 11537523651 016413 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_001_v1.1.png000644 000765 000770 00000000000 11537523651 016654 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_001_v1.2.png000644 000765 000770 00000000000 11537523651 016655 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_001_v1.3.png000644 000765 000770 00000000000 11537523651 016656 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_001_v1.4.png000644 000765 000770 00000000000 11537523651 016657 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v1.1.png000644 000765 000770 00000000000 11537523651 016655 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v1.2.png000644 000765 000770 00000000000 11537523651 016656 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v1.3.png000644 000765 000770 00000000000 11537523651 016657 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v1.4.png000644 000765 000770 00000000000 11537523651 016660 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v2.1.png000644 000765 000770 00000000000 11537523651 016656 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v2.2.png000644 000765 000770 00000000000 11537523651 016657 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v2.3.png000644 000765 000770 00000000000 11537523651 016660 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/tests/z1_002_v2.4.png000644 000765 000770 00000000000 11537523651 016661 0ustar00rsgalloway000000 000000 pyseq-0.2.0b/doc/conf.py000644 000765 000770 00000015514 11537523651 015411 0ustar00rsgalloway000000 000000 # -*- coding: utf-8 -*- # # PySeq documentation build configuration file, created by # sphinx-quickstart on Sat Mar 12 19:28:34 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'PySeq' copyright = u'2011, Ryan Galloway' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = '0.2.0b' # The full version, including alpha/beta/rc tags. release = '0.2.0b' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'PySeqdoc' # -- Options for LaTeX output -------------------------------------------------- # The paper size ('letter' or 'a4'). #latex_paper_size = 'letter' # The font size ('10pt', '11pt' or '12pt'). #latex_font_size = '10pt' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'PySeq.tex', u'PySeq Documentation', u'Ryan Galloway', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of # the title page. #latex_logo = None # For "manual" documents, if this is true, then toplevel headings are parts, # not chapters. #latex_use_parts = False # If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Additional stuff for the LaTeX preamble. #latex_preamble = '' # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'pyseq', u'PySeq Documentation', [u'Ryan Galloway'], 1) ] pyseq-0.2.0b/doc/._index.rst000644 000765 000024 00000000273 11537523651 017200 0ustar00rsgallowaystaff000000 000000 Mac OS X  2‰»ATTRŠ“-»˜#˜#com.macromates.caret{ column = 24; line = 20; }pyseq-0.2.0b/doc/index.rst000644 000765 000770 00000005362 11537523651 015753 0ustar00rsgalloway000000 000000 .. PySeq documentation master file, created by sphinx-quickstart on Sat Mar 12 19:28:34 2011. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. =========================== PySeq v0.2.0b documentation =========================== PySeq is a python module that finds groups of items that follow a naming convention containing a numerical sequence index (e.g. fileA.001.png, fileA.002.png, fileA.003.png...) and serializes them into a compressed sequence string representing the entire sequence (e.g. fileA.1-3.png). It should work regardless of where the numerical sequence index is embedded in the name. For examples, see basic usage below. Installation ============ Installing PySeq is easily done using `setuptools`_. Assuming it is installed, just run the following from the command-line: .. sourcecode:: none $ easy_install pyseq * `setuptools`_ * `install setuptools `_ .. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools Alternatively, you can install from the distribution using the ``setup.py`` script: .. sourcecode:: none $ python setup.py install Overview ======== PySeq comes with a command-line script called ``lss``. .. sourcecode:: none $ lss [path] [-f format] [-d] Using the "z1" file sequence example in the "tests" directory: :: % ls tests/z1* tests/z1_001_v1.1.png tests/z1_001_v1.4.png tests/z1_002_v1.3.png tests/z1_002_v2.2.png tests/z1_001_v1.2.png tests/z1_002_v1.1.png tests/z1_002_v1.4.png tests/z1_002_v2.3.png tests/z1_001_v1.3.png tests/z1_002_v1.2.png tests/z1_002_v2.1.png tests/z1_002_v2.4.png % lss tests/z1* 4 z1_001_v1.%d.png 1-4 4 z1_002_v1.%d.png 1-4 4 z1_002_v2.%d.png 1-4 % lss tests/z1* -f "%h%r%t" z1_001_v1.1-4.png z1_002_v1.1-4.png z1_002_v2.1-4.png API === Some usage examples: *Compression, or serialization, of lists of items* >>> s = Sequence(['file.0001.jpg', 'file.0002.jpg', 'file.0003.jpg']) >>> print s file.1-3.jpg >>> s.append('file.0006.jpg') >>> print s.format("%h%p%t %R") file.%04d.jpg 1-3 6 >>> s.contains('file.0009.jpg') True >>> s.contains('file.0009.pic') False *Uncompression, or deserialization, of compressed sequences strings* >>> s = uncompress('012_vb_110_v002.1-150.dpx', format="%h%r%t") >>> len(s) 150 >>> seq = uncompress('./tests/012_vb_110_v001.%04d.png 1-10', format='%h%p%t %r') >>> print seq.format('%04l %h%p%t %R') 10 012_vb_110_v001.%04d.png 1-10 The following documentation is automatically generated from the source code pydocs. .. toctree:: :maxdepth: 2 .. automodule:: pyseq :members: Indices and tables ================== * :ref:`genindex` * :ref:`modindex` pyseq-0.2.0b/doc/Makefile000644 000765 000770 00000010752 11537523651 015551 0ustar00rsgalloway000000 000000 # Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " text to make text files" @echo " man to make manual pages" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: -rm -rf $(BUILDDIR)/* html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." singlehtml: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml @echo @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in $(BUILDDIR)/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PySeq.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PySeq.qhc" devhelp: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp @echo @echo "Build finished." @echo "To view the help file:" @echo "# mkdir -p $$HOME/.local/share/devhelp/PySeq" @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PySeq" @echo "# devhelp" epub: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ "(use \`make latexpdf' here to do that automatically)." latexpdf: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo "Running LaTeX files through pdflatex..." make -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @echo @echo "Build finished. The text files are in $(BUILDDIR)/text." man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man @echo @echo "Build finished. The manual pages are in $(BUILDDIR)/man." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes @echo @echo "The overview file is in $(BUILDDIR)/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt."