Metadata-Version: 1.0
Name: richxerox
Version: 0.03
Summary: copy/paste for Mac OS X for rich text (HTML/RTF) rather than plain text
Home-page: https://bitbucket.org/jeunice/richxerox
Author: Jonathan Eunice
Author-email: jonathan.eunice@gmail.com
License: UNKNOWN
Description: Usage
        =====
        
        ::
        
            from richxerox import copy, paste, available
            from richxerox import dict_print # demo only
            
            print available() # what's on the clipboard?
            print paste()     # get it in the 'best' format
            
            dict_print(pasteall(), 'ALL CONTENTS')
            
            copy(text="this is good!", html="this is <strong>good</strong>!")
            dict_print(pasteall(), 'AFTER COPY')
            
        Background
        ==========
        
        Search as I might, I couldn't find a module that made ``copy`` and ``paste``
        operations on Mac OS X easy and straightforward. I like the `xerox
        <http://pypi.python.org/pypi/xerox>`_ module, but it only does plain
        text. What about browsers and word processors that export rich
        text with hyperlinks, styles, and so on? How do I get access to *that*?
        
        Thanks to `Carl M. Johnson <http://blog.carlsensei.com/post/88897796>`_
        and `Genba <http://genbastechthoughts.wordpress.com/2012/05/20/reading-urls-from-os-x-clipboard-with-pyobjc/>`_
        I eventually found code samples I could adapt and make work without
        understanding the entirety of Apple's ``Foundation`` and ``AppKit``.
        
        
        This is the result.
        
        Installation
        ============
        
        ::
        
            pip install richxerox
            
        (You may need to prefix this with "sudo " to authorize installation.)
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: MacOS X :: Cocoa
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
