π DocGen v4.0
AI-Powered SaaS Platform β Documentation β’ Test Generation β’ Security Analysis
β οΈ Important: DocGen is a SaaS Platform (not just source code). CLI tools require an active server connection for quota management. All user data, subscriptions, and payments are managed through the SaaS dashboard.
π₯ Installation
pip install docgen-docs docgen-emperor docgen-secure
β
Successfully installed docgen-docs-1.0.5 docgen-emperor-1.0.7 docgen-secure-1.0.1
π How to Get Your API Key
1. Open the web platform: http://127.0.0.1:5000 (or your hosted URL)
2. Register or Login
3. Go to My Profile β API Keys
4. Copy your key (format: Doc_xxxxxxxxxxxx)
Your API Key: Doc_5nt5ebf3zzv0mgrpoaha1jymm0lfx1lbxb7h0hbg
π Login via CLI
docgen-docs --login Doc_YOUR_API_KEY
docgen-test --login Doc_YOUR_API_KEY
docgen-secure --login Doc_YOUR_API_KEY
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π DocGen Docs v3.1 β
β β
Login successful β
β π€ username | π Pro | π 72/2750 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Documentation Tool (docgen-docs)
π Generate Full Documentation for a Repository
Command:
docgen-docs psf/requests --lang=en
Result:
π Generating all docs in EN for: psf/requests
β
README: psf/docs/README.md
β
API Docs: psf/docs/API_DOCS.md
β
Wiki: psf/docs/WIKI.md
π Saved to: psf/docs
π Generate README Only
docgen-docs --readme src/ --lang=en
β
README: src/docs/README.md
π Generate API Docs Only
docgen-docs --api src/auth.py --lang=en
β
API Docs: docs/API_DOCS.md
π Generate Wiki Only
docgen-docs --wiki src/ --lang=en
β
Wiki: src/docs/WIKI.md
π Arabic Documentation
docgen-docs src/ --lang=ar
β
README: src/docs/README.md
β
API Docs: src/docs/API_DOCS.md
β
Wiki: src/docs/WIKI.md
π Where to Find Generated Docs
All documentation is saved in a docs/ folder inside the project directory.
π§ͺ Test Generator (docgen-test)
π§ͺ Generate Tests for a Repository
docgen-test psf/requests
π Imperial Test Generator
π Project: psf/requests
ποΈ Scanning complete: 125 files found
β
Tests: 528/528 passed (100%)
β
528 tests generated
π Saved to: ~/requests/tests/
π§ͺ Generate Tests for a Local Folder
docgen-test src/
π§ main.py: 1 functions, 0 classes
π€² test_main.py: 2 tests
β
Tests: 2/2 passed (100%)
π Saved to: src/tests/
π§ͺ Fix Failing Tests
docgen-test -f tests/
π test_main.py
β
Healed 2 tests
π§ͺ Integration Tests Between Two Files
docgen-test -i src/auth.py src/db.py
π auth.py β db.py
π€² 8 integration tests generated
π§ͺ Statistical Report
docgen-test -r
π Sessions: 6 | Tests: 22,150
π§ Fixes: 0 | β Failed: 6
π Rate: 0.0%
π Where to Find Generated Tests
All tests are saved in a tests/ folder inside the project directory.
π‘οΈ Security Analyzer (docgen-secure)
π‘οΈ Scan a Repository
docgen-secure psf/requests --fast --en
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π‘οΈ DocGen Secure v4.0 Report β
β Target: psf/requests β
β files: 37 β
β β Score: 2.0/10 | π F β
β β οΈ Capped: 7 critical issues found β
β π΄ Critical: 7 π‘ Medium: 526 π’ Low: 285 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Project Insights:
βββ β
Core: 19 files (51%)
βββ π΄ Tests: 15 files (41%) | Critical: 7
π΄ CRITICAL (7):
π tests/test_requests.py:1524 β Insecure Pickle
π‘ Use JSON serialization instead
π‘οΈ Scan a Local Folder
docgen-secure src/ --fast --en
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β Score: 9.6/10 | π A+ β
β π΄ Critical: 0 π‘ Medium: 3 π’ Low: 0 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
π‘οΈ Export as JSON
docgen-secure src/ --json --fast
{"score": 9.6, "critical": 0, "total": 3, ...}
π‘οΈ Export as HTML
docgen-secure src/ --format html --fast
π HTML Report saved: docgen_report.html
π‘οΈ Export as Markdown
docgen-secure src/ --format md --fast
π Markdown Report saved: docgen_report.md
π‘οΈ Interactive Mode
docgen-secure src/ --interactive
π‘οΈ Interactive Mode
[c]ritical [w]arning [i]nfo [a]ll [d]etails [q]uit
>
π Where to Find Reports
Reports are saved as docgen_report.json in the current directory.
βοΈ SaaS Platform Information
π Subscription Tiers
| Plan |
Price |
Monthly Requests |
| π Free |
$0 |
10 |
| β Basic |
$9 |
50 |
| π Pro |
$19 |
150 |
| π Unlimited |
$39 |
300 |
π³ Payment Methods
- Trust Wallet (TRC20) - USDT β Auto-verified via TronGrid
- Binance (BEP20) - USDT, BNB β Auto-verified via BSCScan
- Sham Cash - Internal transfer (Syria only) β Manual approval
π Quota System
- Monthly reset: Counters reset on the 1st of each month
- Carry-over: Unused requests transfer when upgrading
- Real-time tracking: Check usage anytime via CLI or Web
π Owner Dashboard (9 Panels)
π Dashboard | π₯ Users | π° Wallets | π Pricing | π Terms | π Upgrades | π Logs | π Notifications | βοΈ Settings
π‘οΈ Security Rules (35 Rules, OWASP Top 10)
SQLi, XSS, CSRF, SSRF, Path Traversal, Command Injection, Hardcoded Keys, Weak JWT, Insecure Pickle/YAML, SSL, File Upload, Race Condition, Traceback Exposure
Β© 2026 DocGen. All rights reserved.