Skip to main content

Midnight Commander extfslib helper library for writing extfs archive plugins.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extfslib-1.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

extfslib-1.0-py2.py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page