heuristomancer

Clojure library for attempting to guess file types.

License

License

BSD Standard License
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.iplantc
ArtifactId

ArtifactId

heuristomancer
Last Version

Last Version

0.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

heuristomancer
Clojure library for attempting to guess file types.
Project URL

Project URL

http://www.iplantcollaborative.org
Source Code Management

Source Code Management

https://github.com/iPlantCollaborativeOpenSource/heuristomancer

Download heuristomancer

How to add to project

<!-- https://jarcasting.com/artifacts/org.iplantc/heuristomancer/ -->
<dependency>
    <groupId>org.iplantc</groupId>
    <artifactId>heuristomancer</artifactId>
    <version>0.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.iplantc/heuristomancer/
implementation 'org.iplantc:heuristomancer:0.1.4'
// https://jarcasting.com/artifacts/org.iplantc/heuristomancer/
implementation ("org.iplantc:heuristomancer:0.1.4")
'org.iplantc:heuristomancer:jar:0.1.4'
<dependency org="org.iplantc" name="heuristomancer" rev="0.1.4">
  <artifact name="heuristomancer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.iplantc', module='heuristomancer', version='0.1.4')
)
libraryDependencies += "org.iplantc" % "heuristomancer" % "0.1.4"
[org.iplantc/heuristomancer "0.1.4"]

Dependencies

compile (4)

Group / Artifact Type Version
org.clojure : clojure jar 1.5.1
org.clojure : tools.cli jar 0.2.2
org.clojure : tools.logging jar 0.2.6
instaparse » instaparse jar 1.2.1

test (2)

Group / Artifact Type Version
org.clojure : tools.nrepl jar 0.2.3
clojure-complete » clojure-complete jar 0.2.3

Project Modules

There are no modules declared in this project.

heuristomancer

A Clojure library for attempting to guess file types.

TL;DR

Command-Line Usage

# Display the help text.
java -jar /path/to/heuristomancer-0.1.0-SNAPSHOT-standalone.jar -h

# List the file types recognized by heuristomancer.
java -jar /path/to/heuristomancer-0.1.0-SNAPSHOT-standalone.jar -l

# Identify the types of some files.
java -jar /path/to/heuristomancer-0.1.0-SNAPSHOT-standalone.jar file1 file2

# Use a different sample size when identifying files.
java -jar /path/to/heuristomancer-0.1.0-SNAPSHOT-standalone.jar -s 2000 file

Programmatic Usage

(use 'heuristomancer.core)

;; Identify a file using the default sample size (1000 characters).
(identify "/path/to/file")

;; Identify a file with a specified sample size (in number of characters).
(identify "/path/to/file" sample-size)

;; Identify a sample that's already loaded into memory.
(identify-sample sample)

License

http://iplantcollaborative.org/sites/default/files/iPLANT-LICENSE.txt

org.iplantc

iPlant Collaborative Open Source

This is an old github organization. The new organization is github.com/cyverse

Versions

Version
0.1.4
0.1.3