Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Repository files navigation

Dcup Lib - Modern Document Processing for Developers

Go ReferenceLicense: MITCloud Version

Convert PDFs, Docs, Sheets, PowerPoint, CSV, Web pages, Raw HTML and Markdown to Structured JSON With Files or URLs - 10x faster than traditional solutions with strict type safety and schema validation.

Dcuo.dev

Why Dcup Lib?

FeatureDcup LibAlternatives
Processing Speed⚡ 150 pages/sec20 pages/sec
Memory Usage🧠 85MB avg250MB+
Schema Enforcement🔒 Strict TypesLoose Validation
Local Processing✅ Yes❌ Cloud-only
File Format Support📚 15+ formats5-8 formats

🚀 Basic Usage - PDF Processing

package main
import (
"fmt""os""github.com/your-org/dcup-lib"
)
funcmain() {
// Configure with your OpenAI credentialsconfig:= dcup.Config{
Endpoint: os.Getenv("OPENAI_URL"),
Model: "gpt-4o-mini",
APIHeader: "Authorization",
APIKey: fmt.Sprintf("Bearer %s", os.Getenv("OPENAI_KEY")),
}
client, err:=dcup.Init(config)
iferr!=nil {
panic(err)
}
// Define your JSON schemaschema:=map[string]interface{}{
"invoice": map[string]string{
"total": "number",
"due_date": "string",
"items": [],
},
}
// Process PDF from URLresult, err:=client.Pdf.CleanUrl(
"https://example.com/invoice.pdf", schema,
)
iferr!=nil {
panic(err)
}
fmt.Printf("Processed Data: %+v\n", result.Data)
}

🌩️ When to Use Cloud Version?

While Dcup Lib handles local processing perfectly, consider Dcup.dev for:

  • Enterprise Scaling: Process millions of docs with auto-scaling
  • Team Features: Collaboration, audit logs, and SSO
  • Managed Infrastructure: Let us handle the ops work

About

Dcup Transform Documents Into Perfect JSON

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages