pygfried

package module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

PyPI version

Pygfried

CPython extension of siegfried, a signature-based file format identification tool written in Go.

No animals were harmed in the making of this extension.

Usage

$ pip install pygfried
$ python -q
>>> import pygfried
>>> pygfried.version()
'1.9.1'
>>> pygfried.identify("/bin/ls")
'fmt/690'

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type Result

type Result struct {
	Path        string
	Identifiers []string
	Known       bool
	Error       string
}

func Identify

func Identify(path string) (*Result, error)

func IdentifyAll

func IdentifyAll(paths []string) ([]*Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL