Skip to main content

Pyfilesystem2 implementation for Imap

Project description

# fs.imapfs
Pyfilesystem2 implementation for Imap

Installation
------------

Install directly from PyPI, using [pip](https://pip.pypa.io)

pip install fs.imapfs

Intro
=====

This is the first release of the library. The implemantation is at its early stage. The module is not jet ready to be installed: setup module is missing and no opener implemented. Apart from that, the module is fully working.

The library has been inspired from the implementation of the FTSFS and use internally the imapclient library (see Reference).

It's working and tested with some IMAP server.

IMAP server use a sort of file system structure and implementing the library has been done for now some assumption that fall out of the box of the standard when you think about a file system, specially on file creation and file name.

IMAP server indeed, when uploading a new data (an e-mail), assign to this new massage a new UID. This UID is then used as the file name.

This means that when you upload new content using the fs API, you specify the file name, but this will be considered, as example see:

```python
imap_fs.tree()
`-- INBOX
|-- Archivie
|-- Draft
|-- Posta Indesiderata
|-- Spedite
|-- TEST
|-- Trash
|-- 2.eml
`-- 5.eml
imap_fs.setbytes(path='INBOX/TEST/2.eml', contents=b'Test')
imap_fs.tree()
`-- INBOX
|-- Archivie
|-- Draft
|-- Posta Indesiderata
|-- Spedite
|-- TEST
| `-- 1.eml
|-- Trash
|-- 2.eml
`-- 5.eml
```

The new file has received UID == 1 because was the first one into that folder.



References
----------

* [pyfilesystem2](https://github.com/PyFilesystem/pyfilesystem2)
* [imapclient](https://github.com/mjs/imapclient)



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

fs.imapfs-0.1.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

fs.imapfs-0.1.3-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fs.imapfs-0.1.3.tar.gz.

File metadata

  • Download URL: fs.imapfs-0.1.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for fs.imapfs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 25c4498038e2667bb64782902611d2e9ca9a660e7fbb19395bf28043cb583b1f
MD5 d9b87665e6f8021b733334e7b0f244cb
BLAKE2b-256 9c3886c8b1ba7e48857bc1ad57e3939e3fa1ff142f64f219c6762748a324bb75

See more details on using hashes here.

File details

Details for the file fs.imapfs-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: fs.imapfs-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for fs.imapfs-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa64868c696a4655a7102b7c1a4782df06202476e1a3599ec7f436c37f249ff0
MD5 b375f0ac3b865efacddb83b9afe08106
BLAKE2b-256 45bc18251510ffb02a071c1e713eea10a849853f2d867f47e094cff5f776c0bf

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