Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Library Filesystem

Project Description

A virtual filesystem based on llfuse. It presents a collection of files in a virtual directory structure based by the of the files metadata (Simple Key-Value pairs). Each directory-level represents a key and all directories in it are different values for this key, respecting the key/values pairs of the higher directory.

This is best explained by an example: mp3 Here, the files are sorted by their id3-tags. So you could sort them by

Genre/Album/Year/Artist/Album/file.mp3

or by

Artist/Album/file.mp3

The filename itself is also generated by a user-defined pattern. You can access the metadata by ‘%{KEY}’ In the id3-case the default filename is: “%{tracknumber} – %{title}.mp3”

The type of metadata supported is implemented by plugins, thus it is easy to extend.

Another plugin could be the exif, which reads the metadata of jpeg files.

You can also change the metadata of files by moving it to another location within libfs. For this, it is allowed to create new directories within a mounted libfs. These will be lost when they are still empty and the libfs unmounted.

Usage

libfs has two modes of operation :

  • update: scan files under a given location to import it’s metadata into the database.
  • mount : use the given database to present the data in a user-defined view.

Getting Help

Please report any bugs on the issue tracker.

Development Status

This code is very new and not tested heavily. So expect some errors.

Contributing

Surely, please do! This project is hosted on github.

TODO

  • Write/Improve documtentation
  • Improve unittests
  • Implement exif-plugin: read jpeg md.
  • Implement xattr plugin: add arbitrary metadata into xattr.
Release History

Release History

This version
History Node

0.3.2

History Node

0.3.1

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
libfs-0.3.2-py3-none-any.whl (19.0 kB) Copy SHA256 Checksum SHA256 py3 Wheel Jan 14, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting