Skip to content

elonsalfati/py-ext-to-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

Python package to get file format from file extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages