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
Release history Release notifications | RSS feed
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)