Coder Social home page Coder Social logo

ffe_hfs2's Introduction

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 提交插件,我会不定期整理第三方插件列表。

ffe_hfs2's People

Contributors

ahui2016 avatar trellixvulnteam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.