惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
C
Cisco Blogs
P
Privacy & Cybersecurity Law Blog
C
CERT Recently Published Vulnerability Notes
P
Palo Alto Networks Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
T
Threat Research - Cisco Blogs
Schneier on Security
Schneier on Security
S
Securelist
N
News | PayPal Newsroom
I
Intezer
H
Hacker News: Front Page
P
Privacy International News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
A
About on SuperTechFans
P
Proofpoint News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Project Zero
Project Zero
Cloudbric
Cloudbric
N
News and Events Feed by Topic
大猫的无限游戏
大猫的无限游戏
Attack and Defense Labs
Attack and Defense Labs
博客园 - 叶小钗
S
Security @ Cisco Blogs
L
LINUX DO - 最新话题
月光博客
月光博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
博客园 - Franky
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
I
InfoQ
有赞技术团队
有赞技术团队
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
S
Security Affairs
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
Scott Helme
Scott Helme

Inside Nutrient

A guide to the invisible work behind documents Introducing Nutrient Documents for Salesforce: Native document generation and signing Document AI vs. traditional OCR: Choosing between OCR, AI, and hybrid pipelines PDF SDK compliance and security evaluation checklist for enterprise teams (2026) Invariant Corp replaces paper processes with Nutrient Workflow and scales without limits What is process mapping? A complete guide Nutrient vs. Conga Composer for Salesforce document generation (2026) Document routing: How to automate document distribution The CTO’s AI playbook: Why accountability architecture beats orchestration Compliance workflow automation: Why built-in compliance is table stakes Workflow diagrams: Examples, symbols, and how to build one that actually runs Digital forms: Replace paper forms with automated workflows Approval workflow software: How to automate approvals Why document-centric automation is different The CEO’s AI playbook: Why decision architecture beats model selection Nutrient SDK product updates for Q1 2026 PDF redaction verification: How to prove sensitive data is permanently removed What is a VPAT? The complete guide to accessibility conformance reports What is PDF/UA? The accessible PDF standard explained Salesforce eSignatures: Generate, sign, and track documents in one flow Online document viewer: Options, tradeoffs, and how to embed one Document viewer for web apps: React, Vue, Angular (2026) Best document viewers in 2026: A buyer’s guide How to edit a PDF in Python: Add text, images, and annotations Nutrient advances Workflow platform with agentic AI for enterprise-grade speed and consistency in document-heavy operations How to create a Salesforce quote template from opportunity data The business case for accessibility: Five ways it drives enterprise value Python PDF library comparison (2026): 7 libraries for developers Why your AI agent hallucinates PDF table data PDF.js limitations: When to upgrade to a commercial PDF SDK How Subject scaled 5× with Nutrient’s PDF SDK without rebuilding its document layer I replaced our sales training with an AI coach that runs in Slack — here’s what broke Redirecting to: https://securitybuzz.com/cybersecurity-news/why-enterprise-permissions-are-ais-most-dangerous-inheritance/ Nutrient .NET SDK vs. iText Core: Complete comparison for .NET developers DocuVieware: Support’s most frequently asked setup questions Introducing Nutrient Workflow How to convert PDF to Word in C# (.NET) When email and spreadsheets stop working: Work order approval workflows for field teams on the move Compliance with confidence: Why document-centric automation is the foundation of your mission Nutrient expands AI Assistant, automating multistep document workflows inside any application What is document generation? A developer’s guide to PDF generation Document Converter data flow and how real-time watermarks skip the queue PDF/UA compliance guide: Requirements, standards, and best practices Computers still can’t understand you How Athena Intelligence built AI agents for regulated enterprises with Nutrient’s document infrastructure How to convert HTML to PDF (2026): 4 methods from browser print to SDK How to build a document extraction pipeline with Nutrient Vision API OCR vs. intelligent document processing: Choosing the right document extraction engine Beyond OCR: How document intelligence eliminates manual processing in regulated industries Nutrient vs. IronPDF: Complete comparison for .NET developers Nutrient vs. Aspose.PDF: Complete comparison for .NET developers Redirecting to: https://fortune.com/2026/02/19/openclaw-who-is-peter-steinberger-openai-sam-altman-anthropic-moltbook/ Lufthansa Systems uses Nutrient to deliver reliable, scalable PDF rendering for pilots worldwide Nutrient vs. Syncfusion: Complete comparison for .NET developers React’s useTransition: The hook you’re probably using wrong First City Monument Bank streamlines banking processes with Nutrient Workflow Redirecting to: https://www.sdcexec.com/warehousing/automation/article/22957364/nutrient-workflow-automation-the-missing-link-in-supply-chain-efficiency The complete guide to digital signatures: PAdES, CAdES, and XAdES explained Nutrient Python SDK: Production-grade document processing for Python Introducing agentic document editing for web applications with AI Assistant Nutrient vs. QuestPDF: Complete comparison for .NET developers How we fixed the GdPicture license expiration (and what to do if you’re affected) Red team security testing with agentic AI The future of healthcare document automation Best healthcare workflow software compared Nutrient SDK product updates for Q4 2025 How Harvey scaled legal document workflows 50 percent MoM without rebuilding infrastructure HIPAA-compliant document management in hospitals How we optimized rendering performance while handling thousands of annotations in React — Part 2 Automated PII removal with Nutrient API Redirecting to: https://www.devopsdigest.com/2026-low-code-no-code-predictions Redirecting to: https://www.kmworld.com/Articles/Editorial/ViewPoints/Leaders-predict-AI-to-continue-permeating-all-aspects-of-KM-in-2026-172594.aspx What are deep agents and how do they solve complex problems? Whipping up document magic: Your easy-bake recipe for Vue and Nutrient Web SDK 🧁 What I’ve learned about product iteration planning while building SDKs Passwordless document signing: Three-layer security guide New zip folder functionality streamlines file management in Document Automation Server The keyboard shortcuts playbook: Taking control of keyboard events in Nutrient Web SDK From experienced engineer to AI beginner: My unexpected journey AI-assisted manual testing: Handling Safari’s PDF rendering and UI quirks How to keep a 20-year-old SDK up to date How we optimized rendering performance while handling thousands of annotations in React — Part 1 Nutrient announces new executive hires to accelerate next phase of growth High performance UI using web workers Automate document conversion at scale with Python and Nutrient DCS From curiosity to PLG (and AI): My journey to understanding product-led growth Prost to progress: One year as Nutrient Pigeon usage at Nutrient: Bridging native SDKs to Flutter Modernizing CI build servers: How to migrate from Chef to Ansible Unix man pages: AI-friendly documentation since 1971 Consistent hashing for even load distribution Best AI redaction APIs: Complete comparison guide for 2025 Why AI document redaction matters for modern security From coding to coordinating: How AI transformed my workflow What is intelligent document processing (IDP)? A complete guide Enterprise PDF SDKs: Best PSPDFKit (now Nutrient) alternatives Nutrient SDK product updates for Q3 2025 GdPicture support best practices Redacting sensitive data with Nutrient AI redaction API How AI is transforming the customer experience at Nutrient: From instant answers to intelligent support
Announcing the Python SDK for Nutrient DWS Processor API
Austin Nguyen · 2025-09-30 · via Inside Nutrient

Table of contents

    Announcing the Python SDK for Nutrient DWS Processor API

    Today we’re launching the Python client library for the Nutrient Document Web Services (DWS) Processor API! This SDK makes document processing integration straightforward with type hints, async/await support, and workflow builder patterns.

    TL;DR

    • New Python SDK provides an ergonomic interface to the Nutrient DWS Processor API
    • Type hints and async/await ensure reliable development with comprehensive error handling
    • AI-native design with first-class support for popular coding assistants and Context7 integration
    • Workflow builder patterns enable chainable operations for complex document processing tasks
    • 100 percent API coverage with convenient methods and sensible defaults for common operations

    Looking to code in JavaScript or TypeScript instead? Check out the TypeScript SDK.

    Why we built these SDKs

    The Nutrient DWS Processor API offers powerful document processing capabilities — converting, merging, watermarking, OCR, redaction, and digital signing. But working directly with REST APIs can be cumbersome, due to:

    • Manual handling of multipart requests and binary data
    • No type hints or autocompletion in your IDE
    • Repetitive error handling and authentication code
    • Complex workflow orchestration for multistep operations

    Our new Python SDK solves these challenges by providing:

    • Type hints with comprehensive Python type annotations for reliable development
    • Async/await support leveraging Python’s asyncio(opens in a new tab) for efficient concurrent operations
    • Simplified authentication supporting both API keys and async token providers
    • Intelligent error handling with structured error types and detailed context
    • Workflow builders for chaining complex document operations
    • AI-native development with built-in support for popular coding tools

    Key features and benefits

    The Python SDK is designed to give developers a clear, consistent, and efficient way to handle complex document workflows. Here are some of the core capabilities you can rely on.

    Complete API coverage

    The Python SDK provides 100 percent mapping to the Nutrient DWS Processor API, with more than 35 document processing operations:

    • Document conversion — PDF, PDF/A, PDF/UA, DOCX, XLSX, PPTX, PNG, JPG, WEBP, Markdown, and HTML
    • Editing operations — Watermark, rotate, flatten, redact, merge, split
    • Digital signing — PAdES standards-compliant signatures
    • Data extraction — Text, tables, key-value pairs, structured content
    • OCR processing — Multi-language image and scan recognition
    • Security features — Redaction presets, password protection, permissions
    • Optimization — Compress files without quality loss

    Type hints and developer experience

    The Python SDK provides comprehensive type annotations that give you confidence in your code and enable excellent IDE support:

    import asyncio

    from nutrient_dws import NutrientClient

    client = NutrientClient(api_key='your_api_key')

    # Type-hinted method calls with full IDE support.

    async def main():

    pdf_result = await client.convert('document.docx', 'pdf')

    text_result = await client.extract_text('scanned.pdf')

    # Access typed results.

    pdf_buffer = pdf_result['buffer']

    print(text_result['data']['pages'][0]['plainText'])

    asyncio.run(main())

    Convenience methods with smart defaults

    While you can access the full power of the API, we’ve also provided convenience methods for common operations:

    # Simple conversion with smart defaults.

    pdf = await client.convert('document.docx', 'pdf')

    # Or customize every aspect via workflow.

    pdf = await (client

    .workflow()

    .add_file_part('document.docx')

    .output_pdfa({

    'conformance': 'pdfa-2b',

    'optimize': {

    'mrcCompression': True,

    'imageOptimizationQuality': 3

    }

    })

    .execute())

    Workflow builder pattern

    For complex document processing tasks, the Python SDK offers a fluent workflow builder that leverages async/await for efficient processing:

    from nutrient_dws.builder.constant import BuildActions

    result = await (client

    .workflow()

    # Stage 1: Combine multiple documents into one workflow.

    .add_file_part('contract.pdf')

    .add_file_part('appendix.pdf')

    # Stage 2: Apply actions — process the combined documents.

    .apply_action(BuildActions.watermark_text('CONFIDENTIAL', {

    'opacity': 0.5,

    'fontSize': 48

    }))

    .apply_action(BuildActions.create_redactions_preset('email-address'))

    # Stage 3: Set output format — specify final document properties.

    .output_pdf({

    'optimize': {

    'mrcCompression': True,

    'imageOptimizationQuality': 2

    }

    })

    # Stage 4: Execute — run the entire workflow and get results.

    .execute())

    AI-native development experience

    This Python SDK is designed to work in collaboration with AI coding assistants. We provide first-class support for popular AI tools, including Claude Code, GitHub Copilot, JetBrains Junie, Cursor, and Windsurf.

    After installation, run one command to download the complete package documentation directly to your AI agent’s rule sets:

    dws-add-claude-code-rule

    dws-add-github-copilot-rule

    dws-add-junie-rule

    dws-add-cursor-rule

    dws-add-windsurf-rule

    What this means for your development experience:

    • Improved AI assistance with comprehensive SDK documentation
    • Reduced hallucination when generating code
    • Built-in support for common questions
    • Clean integration that doesn’t interfere with other tools

    Using JetBrains Junie as an example, after installing our documentation rules, Junie could fluently generate code based on coding tasks.

    Junie generating code using the SDK after installing documentation rules

    Junie can also answer detailed questions about the package documentation, serving as a first line of support for developers.

    Junie answering questions about the SDK documentation

    Context7 MCP Server integration

    Beyond individual AI assistants, we’re also making our documentation available through Context7(opens in a new tab) — a Model Context Protocol (MCP) server that provides AI agents access to documentation for popular packages like React, Next.js, and Tailwind CSS.

    Our Python package is available on Context7:

    This allows any MCP-compatible AI agent to browse and fetch our documentation on demand, providing even more flexible integration options.

    Get started today

    Before getting started, you’ll need:

    • A Nutrient DWS Processor API key
    • Python 3.10 or higher

    Python SDK

    Install via pip:

    Basic usage:

    import asyncio

    from nutrient_dws import NutrientClient

    async def main():

    client = NutrientClient(api_key='your_api_key')

    # Convert documents.

    pdf_result = await client.convert('presentation.pptx', 'pdf')

    # Access the converted PDF buffer.

    pdf_buffer = pdf_result['buffer']

    with open('presentation.pdf', 'wb') as f:

    f.write(pdf_buffer)

    # Merge multiple PDFs.

    merged = await client.merge(['doc1.pdf', 'doc2.pdf'])

    # Add watermarks.

    watermarked = await client.watermark_text('document.pdf', 'DRAFT')

    # Extract data.

    extracted_text = await client.extract_text('scanned.pdf')

    # Access extracted text.

    text_content = extracted_text['data']['pages'][0]['plainText']

    print(text_content)

    asyncio.run(main())

    Real-world use cases

    The following sections outline some powerful workflows you can build with the Python SDK.

    Document automation pipeline

    from nutrient_dws.builder.constant import BuildActions

    # Process contracts end to end.

    async def process_contract(contract_file: str):

    # Stage 1: Combine, watermark, and archive documents in a single workflow.

    combined = await (client

    .workflow()

    .add_file_part(contract_file)

    .add_file_part('terms-and-conditions.pdf')

    .apply_action(BuildActions.watermark_text('CONFIDENTIAL'))

    .output_pdfa({

    'conformance': 'pdfa-2b',

    'optimize': {'mrcCompression': True}

    })

    .execute())

    # Stage 2: Apply a digital signature for legal compliance.

    signed = await client.sign(combined['output']['buffer'], {

    'signatureType': 'cades',

    'cadesLevel': 'b-lt'

    })

    return signed

    Batch document processing

    async def process_invoices(invoice_files: list[str]):

    """Extract data from multiple invoices and compile results"""

    import asyncio

    async def process_single_invoice(invoice_file: str):

    # OCR the invoice if it's a scanned image.

    ocr_result = await client.ocr(invoice_file, 'english')

    # Extract key-value pairs from the OCR result.

    kvp_result = await client.extract_key_value_pairs(ocr_result['buffer'])

    return {

    'file': invoice_file,

    'data': kvp_result['data']

    }

    # Process invoices concurrently using `asyncio.gather`.

    results = await asyncio.gather(

    *[process_single_invoice(file) for file in invoice_files]

    )

    return results

    Advanced redaction workflow

    from nutrient_dws.builder.constant import BuildActions

    # Multistep redaction with different strategies.

    async def redact_sensitive_info(document: str):

    return await (client

    .workflow()

    .add_file_part(document)

    .apply_actions([

    # Strategy 1: Target specific known content with exact text matching.

    BuildActions.create_redactions_text('Account Number: 12345'),

    # Strategy 2: Use built-in patterns for common sensitive data types.

    BuildActions.create_redactions_preset('email-address'),

    BuildActions.create_redactions_preset('credit-card-number'),

    # Permanently remove all marked content.

    BuildActions.apply_redactions()

    ])

    .output_pdf()

    .execute())

    We want your feedback

    This Python SDK represents a significant step forward in making document processing more accessible to Python developers. We’d love to hear about your use cases, feature requests, and feedback:

    Try it out and let us know what you think — we’re excited to see what you’ll build!

    Explore related topics

    Try for free Ready to get started?

    Related Cloud articles

    Explore more