Core library for generating professional bid proposal documents with strict source priority management
Project description
Bid Generator Core
A framework-agnostic core library for generating professional bid proposal documents (投标文件) with strict source priority management and core constraint checking.
Features
-
Source Priority Management (P0-P3): Strict hierarchy for data sources
- P0: Tender document (highest priority)
- P1: Format template
- P2: Existing data (company info, qualifications, cases)
- P3: Industry standards (reference only)
-
Core Constraints:
- Content authenticity - no fabrication
- Format compliance - follow template
- Response completeness - address all substantial clauses
- Missing items marked as
【待补充:XXX】
-
Five-Step Workflow:
- Parse tender document
- Parse format template
- Load existing data
- Content generation
- Quality check
Installation
pip install bid-generator-core
Quick Start
from bid_generator_core import BidGenerator, generate_bid_document
# Method 1: Using the generator class
generator = BidGenerator(
data_dir="./data",
tender_doc_path="./tender.pdf",
template_path="./template.docx",
output_dir="./outputs"
)
result = generator.save()
print(f"Document generated: {result.document_path}")
print(f"Missing items: {result.missing_items}")
# Method 2: Using the convenience function
output_path = generate_bid_document(
data_dir="./data",
tender_doc_path="./tender.pdf"
)
Data Directory Structure
data/
├── company_info.json # Company basic information
├── project_info.json # Project details
├── qualifications.json # Certifications and qualifications
├── team_info.json # Team member information
└── project_cases.json # Historical project cases
Advanced Usage
from bid_generator_core import BidGenerator, GenerationResult
# Custom configuration
generator = BidGenerator(
data_dir="./data",
tender_doc_path="./tender.pdf",
template_path="./template.docx",
company_info={"name": "My Company"}, # Override from JSON
auto_execute=True
)
# Get detailed result
result: GenerationResult = generator.save(return_result=True)
# Access reports
print(result.traceability_report) # Data source traceability
print(result.quality_report) # Quality check results
Framework Adapters
This core library is used by various framework adapters:
- OpenClaw Skill: See
adapters/openclaw/ - Claude Code Skill: See
.claude/skills/bid-generator/
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bid_generator_core-3.0.0.tar.gz.
File metadata
- Download URL: bid_generator_core-3.0.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51016392e555deec04a2ac25bfe4e945a6ab22ce0ac71af74ae3e5e51d7c8dac
|
|
| MD5 |
5721ee9bf4baa2b6aa084f550191e55b
|
|
| BLAKE2b-256 |
719a875455b8abbe024ae803ba015e2c68fe33240979b845ccff114e15b06bca
|
File details
Details for the file bid_generator_core-3.0.0-py3-none-any.whl.
File metadata
- Download URL: bid_generator_core-3.0.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a28a34ccfea272aba9d1aafe2b62d6b2846b85c52105fda5f08675787c5ccfdd
|
|
| MD5 |
4478391b22280240db0ba9aa0407aa63
|
|
| BLAKE2b-256 |
f4966ea3668752f85477eb391f6cc4083e02e87dcb83e8391c067f87a8c62439
|