Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NotificationsYou must be signed in to change notification settings

Shahaf-F-S/file-flow

Repository files navigation

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

Installation

pip install auto-file-flow

example

fromfile_flow.eventsimportFileSystemEventfromfile_flow.ioimportTextIO,IOContainerfromfile_flow.pipelineimportPipelinefromfile_flow.operationimportOperatorfromfile_flow.watcherimportWatcherfromfile_flow.handlerimportPatternHandlerhandler=PatternHandler(patterns={"*.txt":IOContainer(TextIO(),TextIO())},pipelines={FileSystemEvent: [Pipeline([Operator(lambdadata:print(data))])]})watcher=Watcher(root="demo",handler=handler)watcher.run()

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp