Metadata-Version: 1.0
Name: gocept.sftpcopy
Version: 0.1
Summary: Copying files save to another machine
Home-page: http://pypi.python.org/pypi/gocept.sftpcopy
Author: Christian Zagrodnick
Author-email: cz@gocept.com
License: ZPL 2.1
Description: ========
        SFTPCopy
        ========
        
        sftpcopy allows to copy files to or from a remote server -- integrates with
        gocept.filestore. sftpcopy will take files from the `new` directory, copy
        them to the remote server and put them into `cur` on success. Likewise it will
        download files from the remote server and put them into the `new` directory for
        another application to pick it up.
        
        All together this allows quite stable and asynchronous data transfer.
        
        
        TODO
        ====
        
        * Documentation
        * Tests!
        * Interfaces would be nice :)
        
        
        ========
        SFTPCopy
        ========
        
        Configure an sftpcopy:
        
        >>> import tempfile
        >>> import gocept.filestore
        >>> import gocept.sftpcopy
        >>> store_dir = tempfile.mkdtemp()
        >>> filestore = gocept.filestore.FileStore(store_dir)
        >>> filestore.prepare()
        >>> sftp = gocept.sftpcopy.SFTPCopy(
        ...     'download', filestore,
        ...     'localhost', 22, 'testuser', 'dummy-password', 'in')
        
        Connecting will not work because the user does not exist:
        
        >>> sftp.connect()
        Traceback (most recent call last):
        ...
        AuthenticationException: Authentication failed.
        
        
        For more tests we'll need to setup an sftp-server in the test case (via
        paramiko probably).
        
        
        Cleanup
        =======
        
        >>> import shutil
        >>> shutil.rmtree(store_dir)
        
        
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Operating System :: Unix
