Skip to main content

ffe

ffe: File/Folder Extensible manipulator
可轻松地用 Python 来写插件的文件操作工具

Chinese readme (中文说明,更详细): usage.md, details.md

Install ffe

python -m pip install ffe

Install recipes

Ffe by itself can do nothing, you can write recipes yourself or download recipes written by others.

Please always inspect the recipe before installing it. For example,

Use ffe install --peek https://github.com/ahui2016/ffe/raw/main/recipes/swap.py to read a short description of the recipe.

Use ffe install -d https://github.com/ahui2016/ffe/raw/main/recipes/swap.py to download it, the content will be print to the screen, you can also use ffe install -d http://example.com/recipe.py > recipe.py to create a file.

After inspection, use ffe install -i https://github.com/ahui2016/ffe/raw/main/recipes/swap.py to install it.

Now, you can use ffe info -a to list out all installed recipes, and use ffe info -r swap to read more about the recipe (change swap to another recipe's name as you want).

Use a recipe

Use ffe info -r <recipe> to read more about a recipe, or use ffe dump -r <recipe> <files...> to generate a plan of tasks, for example

ffe dump -r swap file1.txt file2.txt > swap.toml

will generate a TOML file as below:

[[tasks]]
recipe = "swap"
names = [ "file1.txt", "file2.txt",]

[tasks.options]
verbose = true

And then, use ffe run -f swap.toml to do the job. You can also run ffe run -r swap file1.txt file2.txt, but without a TOML file you cannot set options.

It is recommended to use a --dry-run flag when you are not familiar with the recipe yet. for example ffe run -dry -f swap.toml.

Get Help

Use commands as below to get more information:

  • ffe --help
  • ffe info --help
  • ffe info -r <recipe> etc.

Chinese readme (中文说明)

简单说明 usage.md

详细说明 details.md

另外,欢迎通过 issue 提交插件,我会不定期整理第三方插件列表。

Release files for ffe 0.1.1

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

Source distribution (sdist)

Source distribution for ffe 0.1.1
File Size Uploaded
ffe-0.1.1.tar.gz 34.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ffe 0.1.1
File Interpreter ABI Platform
ffe-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 46.6 kB

Release files / ffe-0.1.1.tar.gz

Download URL ffe-0.1.1.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fcaae85eeb45447e47125cdf0db999f866a493e847f4b3a58385d62628968037
BLAKE2b-256 checksum
How to use checksums
35958bb690d79f5be70fca0d51be67b2d2d1a81b3eb1ac47f384d26b032d7615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release files / ffe-0.1.1-py3-none-any.whl

Download URL ffe-0.1.1-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7621a8e9fca754ccc915ea41922297ad9b942de056f8ae22ac9b4aa9a893f611
BLAKE2b-256 checksum
How to use checksums
621cf1b010250c10014029f54c67f88eee2df10a6ae4fdf0b0b8eb53f758ef62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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