Skip to main content

extinfo

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.

Metadata

Release files for extinfo 0.0.8

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

Source distribution (sdist)

Source distribution for extinfo 0.0.8
File Size Uploaded Provenance Actions
extinfo-0.0.8.tar.gz 8.4 kB Without provenance Details for extinfo-0.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 18.4 kB

Release files / extinfo-0.0.8.tar.gz

Download URL extinfo-0.0.8.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aabac4e9994a4152b624bc0a4da8e80a2fdb66d51a196e7e795c7736636f6de2
BLAKE2b-256 checksum
How to use checksums
73572a9b20d25d109ad0ae3ee67488aa63ccc5ea4457db409845f5e0de63766f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.6 Linux/6.7.3-zen1-2-zen

Release files / extinfo-0.0.8-py3-none-any.whl

Download URL extinfo-0.0.8-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ec8180ebf8b1d377825cc0d4045ad7be81faa94d3191bbbffebdef3362609bf
BLAKE2b-256 checksum
How to use checksums
8a08d9231789d88675a35a5c05fea9094ebb461571438ebab1d8e0ae276e01b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.6 Linux/6.7.3-zen1-2-zen

Security for extinfo 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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