ftp with a simple (dict-like or list-like) interface
Project description
ftpdol
ftp with a simple (dict-like or list-like) interface
To install: pip install ftpdol
A basic ftp persister. Keys must be names of files.
>>> from ftpdol.ftp_persister import FtpPersister
>>> s = FtpPersister()
>>> k = 'foo'
>>> v = 'bar'
>>> for _key in s:
... del s[_key]
>>> len(s)
0
>>> s[k] = v
>>> s[k]
'bar'
>>> s.get(k)
'bar'
>>> len(s)
1
>>> list(s.values())
['bar']
>>> k in s
True
>>> del s[k]
>>> k in s
False
>>> len(s)
0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ftpdol-0.0.4.tar.gz
(2.6 kB
view hashes)
Built Distribution
ftpdol-0.0.4-py3-none-any.whl
(6.7 kB
view hashes)