Skip to main content

Scrape information about file extensions from web sources

Project description

LANGUAGE VERSION LICENSE MAINTAINED STYLE

Given a file extension, extinfo will scrape web sources for information about what type of file is usually named with that extension.

If you want to know what’s in an actual file you have on disk, you should use the file command or another tool that leverages libmagic.

Installation

pip3 install extinfo

Usage

$ extinfo jpeg | fmt
From https://fileinfo.com/extension/jpeg

# JPEG Image

A JPEG file is an image saved in a compressed graphic format standardized
by the Joint Photographic Experts Group (JPEG). It supports up to 24-bit
color and is compressed using lossy compression, which may noticeably
reduce the image quality if high amounts of compression are used. JPEG
files are commonly used for storing digital photos and web graphics.


# What is a JPEG file?

JPEG file open in Microsoft Windows Photos

In the early 1980s, no technology existed that allowed users to easily
compress and share digital images with one another. In 1982, the JPEG
workgroup began designing a compression standard that could be used to
reduce image files' size, making them easier to share, while retaining
as much of their quality as possible.

In 1992, the workgroup created the JPEG file format. JPEG files are images
created using a lossy compression algorithm, which actually destroys some
data contained within the original image file. However, this data loss is
mostly unnoticeable to the human eye. Because the JPEG standard continues
to allows users to produce sharable, high-quality image files, and because
it is so embedded within technologies used to create and share images,
it is still the most common image compression standard in use today.

NOTE: A JPEG file also contains metadata that describes the contents of
its file, such as the color space, color profile, and image dimension
information. Image files saved in the JPEG format are more commonly
appended with the .JPG extension than the JPEG extension.

Development

To install development dependencies, you will need poetry and pre-commit.

pre-commit install --install-hooks
poetry install && poetry shell

direnv is optional, but recommended for convenience.

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

extinfo-0.0.8.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

extinfo-0.0.8-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file extinfo-0.0.8.tar.gz.

File metadata

  • Download URL: extinfo-0.0.8.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.7.3-zen1-2-zen

File hashes

Hashes for extinfo-0.0.8.tar.gz
Algorithm Hash digest
SHA256 aabac4e9994a4152b624bc0a4da8e80a2fdb66d51a196e7e795c7736636f6de2
MD5 535f7cd3edefd0729b01c0341dd0d8b2
BLAKE2b-256 73572a9b20d25d109ad0ae3ee67488aa63ccc5ea4457db409845f5e0de63766f

See more details on using hashes here.

File details

Details for the file extinfo-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: extinfo-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.7.3-zen1-2-zen

File hashes

Hashes for extinfo-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec8180ebf8b1d377825cc0d4045ad7be81faa94d3191bbbffebdef3362609bf
MD5 5c52a9e926e7f526e162f8b7ecd8f8be
BLAKE2b-256 8a08d9231789d88675a35a5c05fea9094ebb461571438ebab1d8e0ae276e01b2

See more details on using hashes here.

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