magika-cli

Crates.iomagika-cli
lib.rsmagika-cli
version0.1.0-rc.1
sourcesrc
created_at2024-04-12 09:58:30.842436
updated_at2024-09-26 11:43:10.871749
descriptionDetermines the content type of a file with deep-learning
homepagehttps://google.github.io/magika/
repositoryhttps://github.com/google/magika
max_upload_size
id1206160
size68,603
Luca Invernizzi (invernizzi)

documentation

README

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
Commit count: 858

cargo fmt