Skip to main content

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


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)

Uploaded Source

Built Distribution

ftpdol-0.0.4-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page