Skip to main content

A simple tool to convert file extensions to file formats

Project description

Python Extension to File Format

This small package returns the file format of a given file extension or Unknown if file extension is unknown.

Installation

pip install py-ext-to-format

Usage

from py_ext_to_format import ExtToFormat

converter = ExtToFormat()
converter.get_format('.js') # returns JavaScript

Contribution

We'd love contributions to the known file extensions/formats.

Any file extension and its file format is available under py_ext_to_format/formats.json.

{
	".js": "JavaScript"
}

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

py_ext_to_format-0.0.2.tar.gz (3.4 kB view hashes)

Uploaded Source

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