Cover the rest of python bindings from shared library, add tests, add docstrings, add setup.py.

This commit is contained in:
Maxim Vasilev
2020-08-11 00:12:43 +03:00
parent dc6fc02209
commit 08bc9bca0e
12 changed files with 758 additions and 20 deletions

26
python/enry/__init__.py Normal file
View File

@ -0,0 +1,26 @@
from enry.definitions import get_color, get_language, get_language_by_content, get_language_by_emacs_modeline, \
get_language_by_extension, get_language_by_filename, get_language_by_modeline, get_language_by_shebang, \
get_language_by_vim_modeline, get_languages, get_mime_type, is_binary, is_configuration, is_documentation, \
is_dot_file, is_generated, is_image, is_vendor, get_language_extensions
__all__ = [
"get_color",
"get_language",
"get_language_extensions",
"get_languages",
"get_mime_type",
"get_language_by_vim_modeline",
"get_language_by_extension",
"get_language_by_content",
"get_language_by_emacs_modeline",
"get_language_by_modeline",
"get_language_by_filename",
"get_language_by_shebang",
"is_vendor",
"is_binary",
"is_image",
"is_generated",
"is_documentation",
"is_dot_file",
"is_configuration",
]