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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file extfslib-1.0.tar.gz.

File metadata

  • Download URL: extfslib-1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for extfslib-1.0.tar.gz
Algorithm Hash digest
SHA256 8cc0ed6acc906ed97b54238eb5c4c1210e4664517dc80ac0fe7660ba95a62efb
MD5 7612e051ad52cfafa0af7e0032ee1c83
BLAKE2b-256 af448abb8df40450e0fb6356e44fcff4f4e85cc01cf342805858b243e3e1c03a

See more details on using hashes here.

File details

Details for the file extfslib-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: extfslib-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for extfslib-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1fd7c47c422a60f161c45c4ac8d0fc78df2879bb05d0e25c244e136a6d5f1e0d
MD5 ec911257040146bd0d661c25c8ddd658
BLAKE2b-256 fad54e90c79c39755f90591afcabcccc16d636a09fa77664b747c186788efa76

See more details on using hashes here.

Supported by

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