8000 allow command line execution · Issue #337 · ahupp/python-magic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

allow command line execution #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kgk opened this issue Nov 21, 2024 · 2 comments
Open

allow command line execution #337

kgk opened this issue Nov 21, 2024 · 2 comments

Comments

@kgk
Copy link
kgk commented Nov 21, 2024

I tried python -m magic a_test_file but it failed.

@ddelange
Copy link
Contributor

python-magic is a Python interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a predefined list of file types. This functionality is exposed to the command line by the Unix command file.

file tldr page
file man page
file pkgs page

@kgk
Copy link
Author
kgk commented Dec 17, 2024

absolutely, but sometimes this is installed and file is not.. just though
python -m magic somefile would be usefull in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0