
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
file-drill is a powerful command-line tool for reading, classifying, and extracting structured data from various file formats using both local processing and AI-powered services. It supports text documents, PDFs, images, and emails, allowing seamless automation of content analysis and data extraction.
file-drill is a powerful tool designed for processing file content using both local code and AI-based services.
Install the tool using the command:
dotnet tool install --global file-drill
Configure AI Service Provider - Obtain an API key from an AI provider (e.g., Google Gemini) and set it up.
file-drill config set key AIServices:Gemini '{ "Type": "Gemini", "Key": "<secret>", "ModelName": "<model-name>" }'
file-drill config set key FallbackAIService '"Gemini"'
Configure schemas - for quick setup, seed sample configurations.
file-drill config seed
Verify configuration
file-drill config show
Extract data from file or extract and save results.
file-drill read classify extract --file .\invoice.pdf
file-drill read classify extract --file .\invoice.pdf --out .\invoice.json
mindmap
root((file-drill))
config
show
export
set
key
wizard
merge
key
wizard
clear
seed
read
classify
extract
extract
classify
extract
{
"FallbackAIService": "<ai-service-name>",
"ContentReader": {
"AIService": "<ai-service-name>"
},
"ContentClassifier": {
"AIService": "<ai-service-name>"
},
"FieldExtractor": {
"AIService": "<ai-service-name>"
},
"AIServices": {
"<ai-service-name>": {
"Type": "<Ollama|OpenAI|Azure|Gemini>",
"Url": "<endpoint-url>",
"Key": "<secret>",
"ModelName": "<model-name>"
}
},
"Schemas": {
"<schema-name>": {
"Description": "<schema-description>",
"Fields": {
"field-name": {
"Description": "<field-description>",
"Type": "<String|DateTime|Bool|Int16|UInt16|Int32|UInt32|Int64|UInt64|Float|Double|Decimal>"
"Enums": [ "optional", "array" , "with", "expected", "values" ]
}
}
}
}
}
Extensions | Library |
---|---|
.txt , .md | built-in |
.pdf | PdfPig |
.docx , .dotx , .docm , .dotm | DocumentFormat.OpenXml |
.png , .jpeg | OCR using AI service |
.rtf | RtfPipe |
.eml , .msg | MsgReader |
Service type | Library | Sample configuration |
---|---|---|
Ollama | Microsoft.Extensions.AI.Ollama | { "Type": "Ollama", "Url": "http://localhost:11434", "ModelName": "<model-name>" } |
Azure | Microsoft.Extensions.AI.AzureAIInference | { "Type": "Azure", "Url": "<endpoint-url>", "ModelName": "<deployment-name>", "Key": "<secret>" } |
OpenAI | Microsoft.Extensions.AI.OpenAI | { "Type": "OpenAI", "Url": "<endpoint-url>", "ModelName": "<model-name>", "Key": "<secret>" } |
Gemini | Mscc.GenerativeAI.Microsoft | { "Type": "Gemini", "Key": "<secret>", "ModelName": "<model-name>" } |
file-drill is provided as-is under the MIT license.
FAQs
file-drill is a powerful command-line tool for reading, classifying, and extracting structured data from various file formats using both local processing and AI-powered services. It supports text documents, PDFs, images, and emails, allowing seamless automation of content analysis and data extraction.
We found that file-drill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.