Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Fileinfo helps you in identifying files with specific values for certain attributes in order to search and sort these files and present the results in an easily readable tabular fashion.

Using fileinfo you can access this information for many files at once without opening these files individually with a dedicated application, which can be very time consuming.

In order to determine such file attributes, fileinfo comes with some pre-built plug-ins, for file formats like PDF, MP3, TTF and PY (Python source code files). These plug-ins allow you to determine e.g. the number of pages or the creator of PDF documents, the artist and title of MP3 files, the number of glyphs in TTF font files, the number of classes or docstrings in Python files, etc.

Of course, you can also access file information on an operating system level, like the size and modification date/time of files. And, you can also write your own plug-ins to extend fileinfo’s capabilities.

A tool like fileinfo is different from other tools like Spotlight, since it does not use a huge global index and it presents not only a flat result list, but an overview of matching files together with the respective (possibly sorted) attribute values. And since fileinfo is written in pure Python it is not tied to a specific plattform.

Fileinfo is most useful when used on many files at once, because then you get an overview of the attribute values for the entire set of files.

This release fixes a few buglets and implements minor packaging refactorings.

Features

  • extract file attributes

  • display attribute values in a tabular fashion

  • display output table as plain text, CSV, simple RestructuredText, HTML

  • display output table interactively (OS X Cocoa and Django, experimental)

  • sort output by one or more attribute values

  • filter files with attributes satisfying some expression

  • provide a plugin architecture

  • provide a plugin for filesystem attributes

  • provide plugins for XML and Python

  • provide plugins for Spotlight attributes and file bundles (OS X)

  • provide plugins for media formats PDF, MP3 and Quicktime (experimental)

  • install a Python package named fileinfo

  • install a Python command-line script named fileinfo

  • provide a Unittest test suite

  • install test suite inside the installed package

  • test samples include MP3, PDF, TTF and Python files

Examples

From the system command-line you use fileinfo e.g. like this:

$ python fileinfo -a npages *.pdf

Here is an example of some statistics for Python code (taken from the top-level of Docutils 0.5):

$ cd docutils-0.5/build/lib/docutils
$ fileinfo -a lc:nclasses:ndefs:ndocstrs *.py
  lc  nclasses  ndefs  ndocstrs  path
 205         5      2         3  __init__.py
 616         1     24        14  core.py
  97         0      3         4  examples.py
 760         5     34        18  frontend.py
 413         9     22        14  io.py
1802       130    124        39  nodes.py
1491        19     91        60  statemachine.py
 137         0      0         1  urischemes.py
 594         9     32        25  utils.py
6115       178    332       178  total

Here is another example for Mac OS X Widgets:

$ cd /Library/Widgets
$ fileinfo --format rest-simple -a bundlename:bundleversion *.wdgt
=================  =============  ======================
bundlename         bundleversion  path
=================  =============  ======================
Address Book       1.1.5          Address Book.wdgt
Calculator         1.2            Calculator.wdgt
Dictionary         2.0.1          Dictionary.wdgt
Flight Tracker     1.3            Flight Tracker.wdgt
Movies             0.4            Movies.wdgt
Stickies           2.0            Stickies.wdgt
Stocks             1.3            Stocks.wdgt
Tile Game          1.0.2          Tile Game.wdgt
Unit Converter     2.2            Unit Converter.wdgt
Weather            1.1            Weather.wdgt
WebClip            1.0            Web Clip.wdgt
World Clock        2.0            World Clock.wdgt
Calendar           3.1            iCal.wdgt
                                  total
=================  =============  ======================

Release files for fileinfo 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for fileinfo 0.3.3
File Size Uploaded
fileinfo-0.3.3.tar.gz 182.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for fileinfo 0.3.3
File Interpreter ABI Platform
fileinfo-0.3.3-py2.6.egg Legacy Egg format - - Details
fileinfo-0.3.3-py2.5.egg Legacy Egg format - - Details
fileinfo-0.3.3-py2.4.egg Legacy Egg format - - Details

Total release size: 850.4 kB

Release files / fileinfo-0.3.3.tar.gz

Download URL fileinfo-0.3.3.tar.gz
Size 182.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8c5c3aeb8aec2ae660995741ed133b6bad088237efe5d4212dbab4f40e27398d
BLAKE2b-256 checksum
How to use checksums
27314e3545c9c85f265c8fecd9531c6808d609d98fe1526f6b448c56de5f5053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fileinfo-0.3.3-py2.6.egg

Download URL fileinfo-0.3.3-py2.6.egg
Size 220.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
11ef72632cd553908e275f79e23ad9378aad36af6dda1a05febd849bf415faf3
BLAKE2b-256 checksum
How to use checksums
bfca608f8384fcd3a19afe65bbaeef889debd46a5167f603f579c1f257a7970e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fileinfo-0.3.3-py2.5.egg

Download URL fileinfo-0.3.3-py2.5.egg
Size 220.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
e97e08d8785d206088f27fd1675aa1a344fe2ef7d4e9d7a95b3c077feb025fa8
BLAKE2b-256 checksum
How to use checksums
3d3e8ca2d032d36bbef69893aa54e4a9c5631dfae12636b894cb901efe5f0e4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fileinfo-0.3.3-py2.4.egg

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL fileinfo-0.3.3-py2.4.egg
Size 226.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
001c9d1326330cb57d8df3493af63f1244dda9471a162e910646bc3af338842b
BLAKE2b-256 checksum
How to use checksums
848dc7b61e9034341b4a61cd15ab3257b269db359203ffe6520c141abf6c78f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.3 This release

4 release files

0.3.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page