Skip to main content

fs.imapfs

Pyfilesystem2 implementation for Imap

Installation

Install directly from PyPI, using pip

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:

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

Metadata

Release files for fs.imapfs 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fs.imapfs 0.2.2
File Size Uploaded Provenance Actions
fs.imapfs-0.2.2.tar.gz 10.3 kB Without provenance Details for fs.imapfs-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fs.imapfs 0.2.2
File Interpreter ABI Platform Actions
fs.imapfs-0.2.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for fs.imapfs-0.2.2-py2.py3-none-any.whl

Total release size: 19.8 kB

Release files / fs.imapfs-0.2.2.tar.gz

Download URL fs.imapfs-0.2.2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
931bb95125d394ca68c36dcc10394316a312c4de5e8b23a561967063cc7b09fc
BLAKE2b-256 checksum
How to use checksums
dbac61800b9606b6f0aaf06503aad0f9591a6776eae649a52e714f6664a5c750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.3

Release files / fs.imapfs-0.2.2-py2.py3-none-any.whl

Download URL fs.imapfs-0.2.2-py2.py3-none-any.whl
Size 9.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1da9d70c59ac7282af7c83991fc11cfaae1f1fa3a14465b70b13b05aee20c6b8
BLAKE2b-256 checksum
How to use checksums
ec95a11fc116d5b54b6544a5d2739f69468a6d8262d1615e07d1a7750885ce75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.3

Security for fs.imapfs 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page