3 unstable releases

0.1.0-rc.1 Sep 26, 2024
0.1.0-rc.0 Sep 12, 2024
0.0.0 Apr 12, 2024

#112 in Filesystem

31 downloads per month

Apache-2.0

3MB
4K SLoC

Magika CLI

This binary crate implements a command-line interface (CLI) to the library crate magika which provides file type detection with deep-learning.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

The magika library and this magika-cli binary are still unstable (as indicated by the major version of zero) and new versions might introduce breaking changes (all changes will follow cargo semver compatibility). In particular, version 0.1.0-rc.0 ships a new model in comparison to the Python binary and we would love feedback on GitHub.

Installation

To install the latest version from crates.io:

cargo install --locked magika-cli

It is also possible to install from the git repository, in which case the version (accessible with magika --version) will be suffixed by -dev (e.g. 0.1.0-dev) to indicate that the binary is the development version of the version prefix (e.g. 0.1.0 for the previous example).

To install the latest version from the git repository:

cargo install --locked --git=https://github.com/google/magika.git magika-cli

To install from a local clone of the git repository (possibly with custom changes):

git clone https://github.com/google/magika.git
cd magika
cargo install --locked --path=rust/cli

Dependencies

~7–20MB
~215K SLoC