Crates.io | magika-cli |
lib.rs | magika-cli |
version | 0.1.0-rc.1 |
source | src |
created_at | 2024-04-12 09:58:30.842436 |
updated_at | 2024-09-26 11:43:10.871749 |
description | Determines the content type of a file with deep-learning |
homepage | https://google.github.io/magika/ |
repository | https://github.com/google/magika |
max_upload_size | |
id | 1206160 |
size | 68,603 |
This binary crate implements a command-line interface (CLI) to the library crate magika which provides file type detection with deep-learning.
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.
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