<commit_before>ftpretty
========

A wrapper for simple FTP operations: get, put, list etc.

    from ftpretty import ftpretty

    # kwargs are passed to underlying FTP or FTP_TLS connection
    # secure argument switches to an FTP_TLS connection
    f = ftpretty(host, user, pass, secure=False, timeout=10)

    # Get a file, save it locally
    f.get(remote, local)

    # Put a local file to a remote location
    # non-existent subdirectories will be created automatically
    f.put(local, remote)

    # Return a list the files in a directory
    f.list(remote)

    # Change to remote directory
    f.cd(remote)

    # Delete a remote file 
    f.delete(remote)

    # Close the connection
    f.close()
<commit_msg>Update docs for 3 ways to call get()<commit_after>ftpretty
========

A wrapper for simple FTP operations: get, put, list etc.

    from ftpretty import ftpretty

    # kwargs are passed to underlying FTP or FTP_TLS connection
    # secure argument switches to an FTP_TLS connection
    f = ftpretty(host, user, pass, secure=False, timeout=10)

    # Get a file, save it locally
    f.get('someremote/file/on/server.txt', '/tmp/localcopy/server.txt')

    # Get a file and write to an open file
    myfile = open('/tmp/localcopy/server.txt', 'wb')
    f.get('someremote/file/on/server.txt', myfile)

    # Get a file and return contents
    contents = f.get('someremote/file/on/server.txt')

    # Put a local file to a remote location
    # non-existent subdirectories will be created automatically
    f.put(local, remote)

    # Return a list the files in a directory
    f.list(remote)

    # Change to remote directory
    f.cd(remote)

    # Delete a remote file 
    f.delete(remote)

    # Close the connection
    f.close()

{'fraction_non_alphanumeric': 0.09007981755986318, 'fraction_numerical': 0.0028506271379703536, 'mean_word_length': 2.9886363636363638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3034407', 'n_tokens_mistral': 553, 'n_tokens_neox': 512, 'n_words': 197}