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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file ftpdol-0.0.4.tar.gz.

File metadata

  • Download URL: ftpdol-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ftpdol-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2b945370364016d7e30d0f42bf0583ff3a5481016a61bdd4a7a9499c1bb8ae08
MD5 dbefc5e1e453afa7e03881e5da7590d1
BLAKE2b-256 32a3f50bf302a42e293cea4f76f77d83b5e057d49d325dbbcfe32fc2e9f87148

See more details on using hashes here.

File details

Details for the file ftpdol-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ftpdol-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ftpdol-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 db885337f7b703b446334c2de8b69c05c7ac2bc43b29a16b281294711a33815e
MD5 b15126d75216cfa648f8e8e847bfc79f
BLAKE2b-256 e71bd6f4ac4802cc6b141678a9f47e5c33334ce0bd6f094036033336b7289501

See more details on using hashes here.

Supported by

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