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
File details
Details for the file py_ext_to_format-0.0.2.tar.gz.
File metadata
- Download URL: py_ext_to_format-0.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63774bc6d0eff0ef93b3af79b59aa5f9381a9568aeb0922b3b4166c0a3298d54
|
|
| MD5 |
de63f81a22af871a0cd7a6d250041f41
|
|
| BLAKE2b-256 |
47ff0c3d38b03a167e7ae8a3498ae6387f282a28c0868e071c2f32877078e0d6
|