Skip to main content

FITSxtractor - The metadata extractor

With FITSxtractor, you can extract metadata from XML files (generated by FITS) and save them in a .cvs or .xlsx file by calling the program from the command line.

The code is made for the XML tree structure that the Harvard tool 'FITS' (File Information Tool Set) outputs. Pay a visit to their Website for more information about their project and have a look at the Documentation regarding the output format.

This Project has been brought to life with the help of the AfZ (Archive of Contemporary History) at ETH Zürich.

Overview

The FITS metadata extractor was written to be implemented as a tool for the simplifaction of digital long term archiving workflows.

A key aspect in archiving is keeping track of the most usefull metadata while not overshooting with information. The extractor uses the vast extensive output, that FITS provides and saves only the following metadata:

  • identification
    • identity
      • externalIdentifier
    • mimetype
    • format
  • fileinfo
    • filepath
    • md5checksum
    • size
  • filestatus
    • well-formed
    • well-formed status

More metadata will be added to the program if needed. By creating a table from the metadata batch, the tool serves as a key component for an interface that keeps track of the data. Furthermore the user is able to work with the metadata by using MS Excel or other programs. This enables more in depth analysis of the recieved data.

Guide

The following shows how to get and use FITSxtractor.

Installation

$ pip install FITSxtractor

Concider that you might have to add the installation folder to your PATH.

If you would rather like to customize the code to your needs, grab a stable version under "Releases". All the files are extensively commented as well, in order to make the files more user firendly.

Usage

When in a terminal specify:

$ FITSxtractor path_to_dir --output path_to_outputfile

The programm takes a directory, which is populated with at least one (!) FITS XML output file and takes an output file location as a positional argument.

Accepted output formats are files ending with a .csv or .xlsx extension. If none are given, the program defaults to .xlsx.

Metadata

Release files for FITSxtractor 0.9.2

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

Source distribution (sdist)

Source distribution for FITSxtractor 0.9.2
File Size Uploaded
FITSxtractor-0.9.2.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FITSxtractor 0.9.2
File Interpreter ABI Platform
FITSxtractor-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / FITSxtractor-0.9.2.tar.gz

Download URL FITSxtractor-0.9.2.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd1ff2ec963736d387687d50745077f9728c3be87481869835eb037b21da08b7
BLAKE2b-256 checksum
How to use checksums
4f189489a89adcc93bdb501be6844303e76685863836a48531f49957f5142c92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / FITSxtractor-0.9.2-py3-none-any.whl

Download URL FITSxtractor-0.9.2-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86529866255633dbe6347a24cfd930aacdfb3210fd4e827f27bc7d7aaeefcc5e
BLAKE2b-256 checksum
How to use checksums
e0cb8cddc222b3df5db5e5d84cc42fa6aab02d4a3bf79fb644f7998d8e773549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 release files

0.9.1

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

1 release file

0.1

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