2022-10-02 15:05:40 +02:00
2019-06-30 19:18:03 +02:00
2015-09-02 21:23:54 +02:00
2022-10-02 15:05:40 +02:00
2022-10-02 14:43:18 +02:00
2022-10-02 14:43:18 +02:00

https://img.shields.io/pypi/v/extfslib.svg

Midnight Commander extfslib helper library for writing extfs archive plugins.

Description

Extfslib help with building Midnight Commander extf plugins, especially for those which operates on different kind of archives.

Simplest plugin built on top of this lib would be:

In this example class instance should be able to be called with list method. All methods:

  • list

  • copyin

  • copyout

  • rm

  • mkdir

  • rmdir

  • run

should be implemented if needed, since by default all of them are just defined, but not implemented.

Of course, real life example can be a little bit more complicated, since there would be possible need for adapting LINE_PAT which is regular expression for getting attributes for the list compatible with MC along with the ITEM which holds the output pattern and utilizes dictionary from LINE_PAT, CMD which maps between class and archiver commands. Possibly there might be needed some other adjustments.

Installation

Install from Pypi

or, as a user:

or use virtualenv:

See individual installation plugins below. Basically it comes down to:

  • copying extfslib.py and plugin files to ~/.local/share/mc/extfs.d/

  • installing binary handlers (lha, unlzx, xdms and unadf)

  • adding an entry in ~/.config/mc/mc.ext:

    # arch
    regex/\.pattern$
         Open=%cd %p/handler_filename://

License

This software is licensed under 3-clause BSD license. See LICENSE file for details.

Description
Midnight Commander extfs for several filetypes using Python
Readme 75 KiB
Languages
Python 100%