fs.imapfs


Namefs.imapfs JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttp://github.com/Maggi-Andrea/fs.imapfs
SummaryPyfilesystem2 implementation for Imap
upload_time2023-12-11 17:28:52
maintainer
docs_urlNone
authorAndrea Maggi
requires_python!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
licenseMIT
keywords filesystem pyfilesystem2 imap
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)


            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/Maggi-Andrea/fs.imapfs",
    "name": "fs.imapfs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7",
    "maintainer_email": "",
    "keywords": "filesystem,Pyfilesystem2,imap",
    "author": "Andrea Maggi",
    "author_email": "andrea@maggicontrols.com",
    "download_url": "https://files.pythonhosted.org/packages/db/ac/61800b9606b6f0aaf06503aad0f9591a6776eae649a52e714f6664a5c750/fs.imapfs-0.2.2.tar.gz",
    "platform": "any",
    "description": "# fs.imapfs\r\nPyfilesystem2 implementation for Imap\r\n\r\nInstallation\r\n------------\r\n\r\nInstall directly from PyPI, using [pip](https://pip.pypa.io)\r\n\r\n    pip install fs.imapfs\r\n\r\nIntro\r\n=====\r\n\r\nThis 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.\r\n\r\nThe library has been inspired from the implementation of the FTSFS and use internally the imapclient library (see Reference).\r\n\r\nIt's working and tested with some IMAP server.\r\n\r\nIMAP 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.\r\n\r\nIMAP 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.\r\n\r\nThis means that when you upload new content using the fs API, you specify the file name, but this will be considered, as example see:\r\n\r\n```python\r\nimap_fs.tree()\r\n`-- INBOX\r\n    |-- Archivie\r\n    |-- Draft\r\n    |-- Posta Indesiderata\r\n    |-- Spedite\r\n    |-- TEST\r\n    |-- Trash\r\n    |-- 2.eml\r\n    `-- 5.eml\r\nimap_fs.setbytes(path='INBOX/TEST/2.eml', contents=b'Test')\r\nimap_fs.tree()\r\n`-- INBOX\r\n    |-- Archivie\r\n    |-- Draft\r\n    |-- Posta Indesiderata\r\n    |-- Spedite\r\n    |-- TEST\r\n    |   `-- 1.eml\r\n    |-- Trash\r\n    |-- 2.eml\r\n    `-- 5.eml\r\n```\r\n\r\nThe new file has received UID == 1 because was the first one into that folder.\r\n\r\n\r\n\r\nReferences\r\n----------\r\n\r\n* [pyfilesystem2](https://github.com/PyFilesystem/pyfilesystem2)\r\n* [imapclient](https://github.com/mjs/imapclient)\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pyfilesystem2 implementation for Imap",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "http://github.com/Maggi-Andrea/fs.imapfs"
    },
    "split_keywords": [
        "filesystem",
        "pyfilesystem2",
        "imap"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec95a11fc116d5b54b6544a5d2739f69468a6d8262d1615e07d1a7750885ce75",
                "md5": "307004750d8fbb1ae27f68bf9881c3fa",
                "sha256": "1da9d70c59ac7282af7c83991fc11cfaae1f1fa3a14465b70b13b05aee20c6b8"
            },
            "downloads": -1,
            "filename": "fs.imapfs-0.2.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "307004750d8fbb1ae27f68bf9881c3fa",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7",
            "size": 9485,
            "upload_time": "2023-12-11T17:28:50",
            "upload_time_iso_8601": "2023-12-11T17:28:50.129202Z",
            "url": "https://files.pythonhosted.org/packages/ec/95/a11fc116d5b54b6544a5d2739f69468a6d8262d1615e07d1a7750885ce75/fs.imapfs-0.2.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dbac61800b9606b6f0aaf06503aad0f9591a6776eae649a52e714f6664a5c750",
                "md5": "1311679309fc2559716abb091f38feee",
                "sha256": "931bb95125d394ca68c36dcc10394316a312c4de5e8b23a561967063cc7b09fc"
            },
            "downloads": -1,
            "filename": "fs.imapfs-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1311679309fc2559716abb091f38feee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7",
            "size": 10268,
            "upload_time": "2023-12-11T17:28:52",
            "upload_time_iso_8601": "2023-12-11T17:28:52.054617Z",
            "url": "https://files.pythonhosted.org/packages/db/ac/61800b9606b6f0aaf06503aad0f9591a6776eae649a52e714f6664a5c750/fs.imapfs-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-11 17:28:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Maggi-Andrea",
    "github_project": "fs.imapfs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fs.imapfs"
}
        
Elapsed time: 0.15207s