utidylib-0.2/0002755000175000017500000000000010302034475012524 5ustar jennerjennerutidylib-0.2/gendoc.py0000666000175000017500000000040410014705002014324 0ustar jennerjennerimport sys from epydoc.cli import cli def run(argv=sys.argv): argv_old=sys.argv sys.argv=argv cli() sys.argv=argv_old if __name__=='__main__': default='epydoc -o apidoc tidy/error.py tidy/lib.py tidy/__init__.py'.split() run(default) utidylib-0.2/INSTALL.txt0000666000175000017500000000637707700033206014411 0ustar jennerjennerIf you're reading this, you are probably using a platform that doesn't have binaries available. Check anyway: http://sourceforge.net/project/showfiles.php?group_id=84459 You may also want to consult this document if you get the message: "Couldn't find libtidy, please make sure it is installed correctly." ================================================================== On Linux (instructions for other flavors of Unix mostly the same): ___________________ 1. Install libtidy: TidyLib can be obtained from http://tidy.sourceforge.net/src/tidy_src.tgz (1a) Compile $ tar xvfz tidy_src.tgz $ cd tidy $ sh build/gnuauto/setup.sh $ ./configure # may want to specify --prefix=/usr here, see below $ make (1b) Install (become root) # make install This will place libtidy in /usr/local/lib. If you use --prefix=/usr in the configure line flagged above, your library will go to /usr/lib instead. The directory you install the library into MUST be configured with ldconfig, so if you installed into /usr/local/lib and it's mysteriously not working: # man ldconfig # man ld.so.conf Other Unices may have some variant of ldconfig, or they may use an environment variable such as LIBPATH, LD_LIBRARY_PATH, etc. __________________ 2. Install ctypes: Ctypes is available from: http://sourceforge.net/project/showfiles.php?group_id=71702 _________________________________ 3. Install uLibtidy python files: (as root) # cd uTidylib # python setup.py install ================================================================== On Windows: __________________ 1. Install libtidy TidyLib can be obtained from http://tidy.sourceforge.net/src/tidy_src.tgz libtidy provides 2 ways to compile on Windows. The first way is to use the project and makefiles in uTidylib/libtidy/build/msvc. This way is not recommended as it requires you to purchase MS Visual C++. 1a) Install Cygwin The second, recommended way is to install Cygwin, with at least the following packages: make, automake, libtool, gcc, and gcc-mingw It is recommended that you do _not_ install Cygwin Python; instead use the Windows installer at http://python.org/download/ . 1b) Compile We will compile with the mingw compiler, which produces binaries that do not depend on the Cygwin DLLs. $ tar xvfz tidy_src.tgz $ cd tidy $ sh build/gnuauto/setup.sh $ CFLAGS=-mno-cygwin ./configure $ make 1c) Copy DLL to a directory in the PATH: $ cp src/.libs/cygtidy-0-99-0.dll $SYSTEMROOT __________________ 2. Install ctypes: Ctypes is available from: http://sourceforge.net/project/showfiles.php?group_id=71702 _________________________________ 3. Install uLibtidy python files: $ cd uTidylib $ python setup.py install ================================================================== Running tests (after installing): _________________________________ Running tests requires that you have installed Twisted (http://twistedmatrix.com), as uTidyLib uses the trial framework for testing. $ python -c "from twisted.scripts import trial; trial.run()" -p tidylib This should work on either Windows or Unix. ================================================================== The Doc: ________ To build the doc, just run: $ python gendoc.py (This requires that you have epydoc installed.) The API documentation will be built in the ``apidoc'' directory.utidylib-0.2/LICENSE0000666000175000017500000000211310015055540013525 0ustar jennerjennerThe MIT License Copyright (c) 2003 Cory Dodt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. utidylib-0.2/MANIFEST.in0000666000175000017500000000022410015103650014253 0ustar jennerjennerinclude INSTALL.txt include LICENSE include *.py include README.* include MANIFEST.in include tidy/README.* include tidy/pvt_ctypes/README.* utidylib-0.2/path.py0000666000175000017500000004322707700033206014043 0ustar jennerjenner""" path.py - An object representing a path to a file or directory. Example: from path import path d = path('/home/guido/bin') for f in d.files('*.py'): f.chmod(0755) This module requires Python 2.2 or later. URL: http://www.jorendorff.com/articles/python/path Author: Jason Orendorff (and others - see the url!) Date: 23 Feb 2003 """ # TODO # - Is __iter__ worth the trouble? It breaks the sequence # protocol and breaks compatibility with str/unicode. # - Perhaps support arguments to touch(). # - Note: __add__() technically has a bug, I think, where # it doesn't play nice with other types that implement # __radd__(). Test this. # - Better error message in listdir() when self isn't a # directory. (On Windows, the error message really sucks.) # - Make sure everything has a good docstring. from __future__ import generators import sys, os, fnmatch, glob, shutil, codecs __version__ = '1.2' __all__ = ['path'] # Pre-2.3 support. Are unicode filenames supported? _base = str try: if os.path.supports_unicode_filenames: _base = unicode except AttributeError: pass # Pre-2.3 workaround for basestring. try: basestring except NameError: basestring = (str, unicode) # Universal newline support _textmode = 'r' if hasattr(file, 'newlines'): _textmode = 'U' class path(_base): """ Represents a filesystem path. For documentation on individual methods, consult their counterparts in os.path. """ # --- Special Python methods. def __repr__(self): return 'path(%s)' % _base.__repr__(self) def __iter__(self): return iter(self.listdir()) # Adding a path and a string yields a path. def __add__(self, more): return path(_base(self) + more) def __radd__(self, other): return path(other + _base(self)) # The / operator joins paths. def __div__(self, rel): """ fp.__div__(rel) == fp / rel == fp.joinpath(rel) Join two path components, adding a separator character if needed. """ return path(os.path.join(self, rel)) # Make the / operator work even when true division is enabled. __truediv__ = __div__ def getcwd(): """ Return the current working directory as a path object. """ return path(os.getcwd()) getcwd = staticmethod(getcwd) # --- Operations on path strings. def abspath(self): return path(os.path.abspath(self)) def normcase(self): return path(os.path.normcase(self)) def normpath(self): return path(os.path.normpath(self)) def realpath(self): return path(os.path.realpath(self)) def expanduser(self): return path(os.path.expanduser(self)) def expandvars(self): return path(os.path.expandvars(self)) def dirname(self): return path(os.path.dirname(self)) basename = os.path.basename def expand(self): """ Clean up a filename by calling expandvars(), expanduser(), and normpath() on it. This is commonly everything needed to clean up a filename read from a configuration file, for example. """ return self.expandvars().expanduser().normpath() def _get_ext(self): f, ext = os.path.splitext(_base(self)) return ext def _get_drive(self): drive, r = os.path.splitdrive(self) return path(drive) parent = property(dirname) name = property(basename) ext = property( _get_ext, None, None, """ The file extension, for example '.py'. """) drive = property( _get_drive, None, None, """ The drive specifier, for example 'C:'. This is always empty on systems that don't use drive specifiers. """) def splitpath(self): """ p.splitpath() -> Return (p.parent, p.name). """ parent, child = os.path.split(self) return path(parent), child def splitdrive(self): drive, rel = os.path.splitdrive(self) return path(drive), rel def splitext(self): # Cast to plain string using _base because Python 2.2 # implementations of os.path.splitext use "for c in path:..." # which means something different when applied to a path # object. filename, ext = os.path.splitext(_base(self)) return path(filename), ext if hasattr(os.path, 'splitunc'): def splitunc(self): unc, rest = os.path.splitunc(self) return path(unc), rest def _get_uncshare(self): unc, r = os.path.splitunc(self) return path(unc) uncshare = property( _get_uncshare, None, None, """ The UNC mount point for this path. This is empty for paths on local drives. """) def joinpath(self, *args): """ Join two or more path components, adding a separator character (os.sep) if needed. Returns a new path object. """ return path(os.path.join(self, *args)) def splitall(self): """ Return a list of the path components in this path. The first item in the list will be a path. Its value will be either os.curdir, os.pardir, empty, or the root directory of this path (for example, '/' or 'C:\\'). The other items in the list will be strings. path.path.joinpath(*result) will yield the original path. """ parts = [] loc = self while loc != os.curdir and loc != os.pardir: prev = loc loc, child = prev.splitpath() if loc == prev: break parts.append(child) parts.append(loc) parts.reverse() return parts def relpath(self): """ Return this path as a relative path, based from the current working directory. """ cwd = path(os.getcwd()) return cwd.relpathto(self) def relpathto(self, dest): """ Return a relative path from self to dest. If there is no relative path from self to dest, for example if they reside on different drives in Windows, then this returns dest.abspath(). """ origin = self.abspath() dest = path(dest).abspath() orig_list = origin.normcase().splitall() # Don't normcase dest! We want to preserve the case. dest_list = dest.splitall() if orig_list[0] != os.path.normcase(dest_list[0]): # Can't get here from there. return dest # Find the location where the two paths start to differ. i = 0 for start_seg, dest_seg in zip(orig_list, dest_list): if start_seg != os.path.normcase(dest_seg): break i += 1 # Now i is the point where the two paths diverge. # Need a certain number of "os.pardir"s to work up # from the origin to the point of divergence. segments = [os.pardir] * (len(orig_list) - i) # Need to add the diverging part of dest_list. segments += dest_list[i:] if len(segments) == 0: # If they happen to be identical, use os.curdir. return path(os.curdir) else: return path(os.path.join(*segments)) # --- Listing, searching, walking, and matching def listdir(self, pattern=None): """ D.listdir() -> List of items in this directory. Use D.files() or D.dirs() instead if you want a listing of just files or just subdirectories. The elements of the list are path objects. With the optional 'pattern' argument, this only lists items whose names match the given pattern. """ names = os.listdir(self) if pattern is not None: names = fnmatch.filter(names, pattern) return [self / child for child in names] def dirs(self, pattern=None): """ D.dirs() -> List of this directory's subdirectories. The elements of the list are path objects. This does not walk recursively into subdirectories (but see path.walkdirs). With the optional 'pattern' argument, this only lists directories whose names match the given pattern. For example, d.dirs('build-*'). """ return [p for p in self.listdir(pattern) if p.isdir()] def files(self, pattern=None): """ D.files() -> List of the files in this directory. The elements of the list are path objects. This does not walk into subdirectories (see path.walkfiles). With the optional 'pattern' argument, this only lists files whose names match the given pattern. For example, d.files('*.pyc'). """ return [p for p in self.listdir(pattern) if p.isfile()] def walk(self, pattern=None): """ D.walk() -> iterator over files and subdirs, recursively. The iterator yields path objects naming each child item of this directory and its descendants. This requires that D.isdir(). This performs a depth-first traversal of the directory tree. Each directory is returned just before all its children. """ for child in self: if pattern is None or child.fnmatch(pattern): yield child if child.isdir(): for item in child.walk(pattern): yield item def walkdirs(self, pattern=None): """ D.walkdirs() -> iterator over subdirs, recursively. With the optional 'pattern' argument, this yields only directories whose names match the given pattern. For example, mydir.walkdirs('*test') yields only directories with names ending in 'test'. """ for child in self: if child.isdir(): if pattern is None or child.fnmatch(pattern): yield child for subsubdir in child.walkdirs(pattern): yield subsubdir def walkfiles(self, pattern=None): """ D.walkfiles() -> iterator over files in D, recursively. The optional argument, pattern, limits the results to files with names that match the pattern. For example, mydir.walkfiles('*.tmp') yields only files with the .tmp extension. """ for child in self: if child.isfile(): if pattern is None or child.fnmatch(pattern): yield child elif child.isdir(): for f in child.walkfiles(pattern): yield f def fnmatch(self, pattern): """ Return True if self.name matches the given pattern. pattern - A filename pattern with wildcards, for example '*.py'. """ return fnmatch.fnmatch(self.name, pattern) def glob(self, pattern): """ Return a list of path objects that match the pattern. pattern - a path relative to this directory, with wildcards. For example, path('/users').glob('*/bin/*') returns a list of all the files users have in their bin directories. """ return map(path, glob.glob(_base(self / pattern))) # --- Reading an entire file at once. def bytes(self): """ Open this file, read all bytes, return them as a string. """ f = file(self, 'rb') try: return f.read() finally: f.close() def text(self, encoding=None, errors='strict'): """ Open this file, read it in, return the content as a string. This uses 'U' mode in Python 2.3 and later, so '\r\n' and '\r' are automatically translated to '\n'. Optional arguments: encoding - The Unicode encoding (or character set) of the file. If present, the content of the file is decoded and returned as a unicode object; otherwise it is returned as an 8-bit str. errors - How to handle Unicode errors; see help(str.decode) for the options. Default is 'strict'. """ if encoding is None: # 8-bit f = file(self, _textmode) try: return f.read() finally: f.close() else: # Unicode f = codecs.open(self, 'r', encoding, errors) # (Note - Can't use 'U' mode here, since codecs.open # doesn't support 'U' mode, even in Python 2.3.) try: t = f.read() finally: f.close() return t.replace(u'\r\n', u'\n').replace(u'\r', u'\n') def lines(self, encoding=None, errors='strict', retain=True): """ Open this file, read all lines, return them in a list. Optional arguments: encoding - The Unicode encoding (or character set) of the file. The default is None, meaning the content of the file is read as 8-bit characters and returned as a list of (non-Unicode) str objects. errors - How to handle Unicode errors; see help(str.decode) for the options. Default is 'strict' retain - If true, retain newline characters; but all newline character combinations ('\r', '\n', '\r\n') are translated to '\n'. If false, newline characters are stripped off. Default is True. This uses 'U' mode in Python 2.3 and later. """ if encoding is None and retain: f = file(self, _textmode) try: return f.readlines() finally: f.close() else: return self.text(encoding, errors).splitlines(retain) # --- Methods for querying the filesystem. exists = os.path.exists isabs = os.path.isabs isdir = os.path.isdir isfile = os.path.isfile islink = os.path.islink ismount = os.path.ismount if hasattr(os.path, 'samefile'): samefile = os.path.samefile getatime = os.path.getatime atime = property( getatime, None, None, """ Last access time of the file. """) getmtime = os.path.getmtime mtime = property( getmtime, None, None, """ Last-modified time of the file. """) if hasattr(os.path, 'getctime'): getctime = os.path.getctime ctime = property( getctime, None, None, """ Creation time of the file. """) getsize = os.path.getsize size = property( getsize, None, None, """ Size of the file, in bytes. """) if hasattr(os, 'access'): def access(self, mode): """ Return true if current user has access to this path. mode - One of the constants os.F_OK, os.R_OK, os.W_OK, os.X_OK """ return os.access(self, mode) def stat(self): """ Perform a stat() system call on this path. """ return os.stat(self) def lstat(self): """ Like path.stat(), but do not follow symbolic links. """ return os.lstat(self) if hasattr(os, 'statvfs'): def statvfs(self): """ Perform a statvfs() system call on this path. """ return os.statvfs(self) if hasattr(os, 'pathconf'): def pathconf(self, name): return os.pathconf(self, name) # --- Modifying operations on files and directories def utime(self, times): """ Set the access and modified times of this file. """ os.utime(self, times) def chmod(self, mode): os.chmod(self, mode) if hasattr(os, 'chown'): def chown(self, uid, gid): os.chown(self, uid, gid) def rename(self, new): os.rename(self, new) def renames(self, new): os.renames(self, new) # --- Create/delete operations on directories def mkdir(self, mode=0777): os.mkdir(self, mode) def makedirs(self, mode=0777): os.makedirs(self, mode) def rmdir(self): os.rmdir(self) def removedirs(self): os.removedirs(self) # --- Modifying operations on files def touch(self): """ Set the access/modified times of this file to the current time. Create the file if it does not exist. """ fd = os.open(self, os.O_WRONLY | os.O_CREAT, 0666) os.close(fd) os.utime(self, None) def remove(self): os.remove(self) def unlink(self): os.unlink(self) # --- Links if hasattr(os, 'link'): def link(self, newpath): """ Create a hard link at 'newpath', pointing to this file. """ os.link(self, newpath) if hasattr(os, 'symlink'): def symlink(self, newlink): """ Create a symbolic link at 'newlink', pointing here. """ os.symlink(self, newlink) if hasattr(os, 'readlink'): def readlink(self): """ Return the path to which this symbolic link points. The result may be an absolute or a relative path. """ return path(os.readlink(self)) def readlinkabs(self): """ Return the path to which this symbolic link points. The result is always an absolute path. """ p = self.readlink() if p.isabs(): return p else: return (self.parent / p).abspath() # --- High-level functions from shutil copyfile = shutil.copyfile copymode = shutil.copymode copystat = shutil.copystat copy = shutil.copy copy2 = shutil.copy2 copytree = shutil.copytree if hasattr(shutil, 'move'): move = shutil.move rmtree = shutil.rmtree # --- Special stuff from os if hasattr(os, 'chroot'): def chroot(self): os.chroot(self) if hasattr(os, 'startfile'): def startfile(self): os.startfile(self) utidylib-0.2/PKG-INFO0000666000175000017500000000067510016603424013631 0ustar jennerjennerMetadata-Version: 1.0 Name: uTidylib Version: 0.2 Summary: Wrapper for HTML Tidy at http://tidy.sourceforge.net Home-page: http://utidylib.sf.net Author: Cory Dodt Author-email: corydodt@twistedmatrix.com License: UNKNOWN Description: A wrapper for the relocatable version of HTML Tidy (see http://tidy.sourceforge.net for details). This allows you to tidy HTML files through a Pythonic interface. Platform: UNKNOWN utidylib-0.2/README.path0000666000175000017500000000073110015107256014341 0ustar jennerjenner**This applies to the file path.py, not uTidyLib. Please see the text file LICENSE for information about uTidyLib.** License: You may use path.py for whatever you wish, at your own risk. (For example, you may modify, relicense, and redistribute it.) It is provided without any guarantee or warranty of any kind, not even for merchantability or fitness for any purpose. If you do make changes to path.py, please consider sending them along to me at jason@jorendorff.com. utidylib-0.2/README.txt0000666000175000017500000000171110015073414014221 0ustar jennerjennerThis is uTidylib, the Python wrapper for the HTML cleaning library named TidyLib: http://tidy.sf.net . Python 2.3 or later is required to use uTidylib. Repeat, Python 2.3 or later is *required* to use uTidylib. Once installed, there are two ways to get help. The simplest is: $ python >>> import tidy >>> help(tidy) . . . Then, of course, there's the epydoc-generated API documentation, which is available at site-packages/tidy/apidoc/index.html . __________________ 10 Second Tutorial __________________ >>> import tidy >>> options = dict(output_xhtml=1, add_xml_decl=1, indent=1, tidy_mark=0) >>> print tidy.parseString('Hello Tidy!', **options) Hello Tidy!

woot


\N{LATIN SMALL LETTER E WITH ACUTE} '''.encode('utf8') file('foo.htm', 'w').write(foo) self.input1 = "" self.input2 = "\n" + "

asdkfjhasldkfjhsldjas\n" * 100 def defaultDocs(self): doc1 = tidy.parseString(self.input1) doc2 = tidy.parseString(self.input2) doc3 = tidy.parse("foo.htm") doc4 = tidy.parse("bar.htm") # doesn't exist return (doc1, doc2, doc3, doc4) def test_badOptions(self): badopts = [{'foo': 1}, {'indent': '---'}, {'indent_spaces': None}] for dct in badopts: try: tidy.parseString(self.input2, **dct) except tidy.TidyLibError: pass else: self.fail("Invalid option %s should have raised an error" % repr(dct)) def test_encodings(self): foo = file('foo.htm').read().decode('utf8').encode('ascii', 'xmlcharrefreplace') doc1u = tidy.parseString(foo, input_encoding='ascii', output_encoding='latin1') self.failUnless(str(doc1u).find('\xe9')>=0) doc2u = tidy.parseString(foo, input_encoding='ascii', output_encoding='utf8') self.failUnless(str(doc2u).find('\xc3\xa9')>=0) def test_errors(self): doc1, doc2, doc3, doc4 = self.defaultDocs() for doc in [doc1, doc2, doc3]: str(getattr(doc, 'errors')) self.assertEquals(doc1.errors[0].line, 1) def test_options(self): options = dict(add_xml_decl=1, show_errors=1, newline='CR', output_xhtml=1) doc1 = tidy.parseString(self.input1, **options) found = re.search('//2\W+//]]>', str(doc1), re.MULTILINE) self.failUnless(found) doc2 = tidy.parseString("", **options) self.failUnless(str(doc2).startswith('1) # FIXME - tidylib doesn't ## # support this? self.failUnless(str(doc2).find('\n')<0) doc3 = tidy.parse('foo.htm', char_encoding='utf8', alt_text='foo') self.failUnless(str(doc3).find('alt="foo"')>=0) self.failUnless(str(doc3).find('\xc3\xa9')>=0) def test_parse(self): doc1, doc2, doc3, doc4 = self.defaultDocs() self.failUnless(str(doc1).find('') >=0) self.failUnless(str(doc2).find('') >= 0) self.failUnless(str(doc3).find('') >= 0) utidylib-0.2/tidy/__init__.py0000666000175000017500000000277310015104146015613 0ustar jennerjenner"""The Tidy wrapper. I am the main interface to TidyLib. This package supports processing HTML with Tidy, with all the options that the tidy command line supports. For more information on the tidy options, see the reference. These options can be given as keyword arguments to parse and parseString, by changing dashes (-) to underscores(_). For example: >>> import tidy >>> options = dict(output_xhtml=1, add_xml_decl=1, indent=1, tidy_mark=0) >>> print tidy.parseString('Hello Tidy!', **options) Hello Tidy! For options like newline and output_encoding, which must be set to one of a fixed number of choices, you can provide either the numeric or string version of the choice; so both tidy.parseString('foo', newline=2) and tidy.parseString('foo', newline='CR') do the same thing. There are no plans to support other features of TidyLib, such as document-tree traversal, since Python has several quality DOM implementations. (The author uses Twisted's implementation, twisted.web.microdom). """ try: dict(x=1) except TypeError: raise ImportError("Python 2.3 or later is required to import this library.") __all__ = ['error', 'lib'] from tidy.lib import parse, parseString from tidy.error import * utidylib-0.2/tidy/pvt_ctypes/0002755000175000017500000000000010302034475015675 5ustar jennerjennerutidylib-0.2/tidy/pvt_ctypes/README.ctypes0000666000175000017500000000243410015107312020060 0ustar jennerjenner** This notice applies only to the version of ctypes packaged with the Windows binary package. These files are found in the pvt_ctypes directory. See the file LICENSE for information about uTidyLib. ** Copyright (c) 2000, 2001, 2002, 2003 Thomas Heller Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.