auto-file-flow


Nameauto-file-flow JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/Shahaf-F-S/file-flow
SummaryAn event system for file operations to execute commands for file events.
upload_time2024-01-21 07:24:57
maintainer
docs_urlNone
authorShahaf Frank-Shapir
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # project-template

> An event system for file operations to execute commands for file events.

## Installation

```
pip install auto-file-flow
```

## example

```python
from file_flow.events import FileSystemEvent
from file_flow.io import TextIO, IOContainer
from file_flow.pipeline import Pipeline
from file_flow.operation import Operator
from file_flow.watcher import Watcher
from file_flow.handler import PatternHandler

handler = PatternHandler(
  patterns={"*.txt": IOContainer(TextIO(), TextIO())},
  pipelines={FileSystemEvent: [Pipeline([Operator(lambda data: print(data))])]}
)

watcher = Watcher(root="demo", handler=handler)

watcher.run()
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Shahaf-F-S/file-flow",
    "name": "auto-file-flow",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Shahaf Frank-Shapir",
    "author_email": "shahaffrs@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/8a/e5/1024310a48f3c7c8cf0ea14278737156fa106d1ba31362fb278975ed3d24/auto-file-flow-0.0.1.tar.gz",
    "platform": null,
    "description": "# project-template\r\n\r\n> An event system for file operations to execute commands for file events.\r\n\r\n## Installation\r\n\r\n```\r\npip install auto-file-flow\r\n```\r\n\r\n## example\r\n\r\n```python\r\nfrom file_flow.events import FileSystemEvent\r\nfrom file_flow.io import TextIO, IOContainer\r\nfrom file_flow.pipeline import Pipeline\r\nfrom file_flow.operation import Operator\r\nfrom file_flow.watcher import Watcher\r\nfrom file_flow.handler import PatternHandler\r\n\r\nhandler = PatternHandler(\r\n  patterns={\"*.txt\": IOContainer(TextIO(), TextIO())},\r\n  pipelines={FileSystemEvent: [Pipeline([Operator(lambda data: print(data))])]}\r\n)\r\n\r\nwatcher = Watcher(root=\"demo\", handler=handler)\r\n\r\nwatcher.run()\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An event system for file operations to execute commands for file events.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/Shahaf-F-S/file-flow"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ae51024310a48f3c7c8cf0ea14278737156fa106d1ba31362fb278975ed3d24",
                "md5": "206949b6e53eb5972186a21c82e759b9",
                "sha256": "8b5e366df5d1d67e9341c7897d66eec185c658e41fcdafda6194e5dfec29d6fd"
            },
            "downloads": -1,
            "filename": "auto-file-flow-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "206949b6e53eb5972186a21c82e759b9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9968,
            "upload_time": "2024-01-21T07:24:57",
            "upload_time_iso_8601": "2024-01-21T07:24:57.120131Z",
            "url": "https://files.pythonhosted.org/packages/8a/e5/1024310a48f3c7c8cf0ea14278737156fa106d1ba31362fb278975ed3d24/auto-file-flow-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-21 07:24:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Shahaf-F-S",
    "github_project": "file-flow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "auto-file-flow"
}
        
Elapsed time: 0.21190s