Registry / http-networking / ftpretty

ftpretty

JSON →
library0.4.0pypypi✓ verified 90d ago

ftpretty is a simple FTP wrapper that provides a more Pythonic interface for FTP operations, including get, put, list, and delete. Current version is 0.4.0, with a stable release cadence (last release in 2018).

pip install ftpretty
INSTALL
IMPORT
SIG · FTPRETTY
F
ftpretty
http-networkingpythonv0.4.0
Install
1.7s avg
Import
73ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.080s · 18.7MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.066s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ftpretty
✓ from ftpretty import ftpretty
✗ import ftpretty
ftpretty is a class, not a module; incorrect import will lead to AttributeError.

Connect to an FTP server, download/upload files, and list directory contents.

from ftpretty import ftpretty f = ftpretty(host='ftp.example.com', user='username', password='password') f.get('remote_file.txt', 'local_file.txt') f.put('local_file.txt', 'remote_file.txt') print(f.list('/')) f.close()
Debug
Known issues
gotchaftpretty does not support FTPS (FTP over SSL/TLS) out of the box. Use Python's ftplib.FTP_TLS directly if you need secure FTP.
fix
Use ftplib.FTP_TLS or another library like Paramiko for SFTP.
affects: all
gotchaThe get() and put() methods overwrite files silently without warning. No confirmation or checksum verification.
fix
Check for existing files manually before calling get() or put().
affects: all
deprecatedftpretty uses Python's ftplib internally, which may not be available or may change in future Python versions. The library has not been updated since 2018.
fix
Consider migrating to a more active library like Paramiko or ftputil if you need ongoing support.
affects: all
Errors
Common errors & fixes
AttributeError: module 'ftpretty' has no attribute 'ftpretty'
Importing incorrectly as 'import ftpretty' instead of 'from ftpretty import ftpretty'.
fix
Use 'from ftpretty import ftpretty' to import the class.
ftpretty.ftpretty object has no attribute 'connect'
The connection is established when the object is created; there is no separate connect() method.
fix
Pass connection parameters directly to the constructor, e.g., ftpretty(host, user, password).
Upgrade
Version history
0.4.0latest on PyPI · released Jun 12, 2021
Audit
Dependencies
ftplibrequiredftpretty is a wrapper around Python's built-in ftplib; not a separate dependency but required at runtime.
Agent activity
4 hits · last 30 days
node
4
Resources
ftpretty — pip install ftpretty · libregistry