codedna 0.2.0__py3-none-any.whl → 0.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
codedna/plan.py CHANGED
@@ -87,7 +87,9 @@ def activate_license(key: str) -> Plan:
87
87
  """
88
88
  Lisans anahtarını doğrula ve aktif et.
89
89
 
90
- Gerçek doğrulama Faz 9'da API üzerinden yapılacak.
90
+ Not: Lemon Squeezy lisans key API'si sağlamaz — satın alma checkout URL
91
+ üzerinden yapılır, webhook ile subscription_status güncellenir.
92
+
91
93
  Şimdilik anahtar formatına göre plan belirler:
92
94
  - 'CDNA-PRO-...' → pro
93
95
  - 'CDNA-TEAM-...' → team
@@ -100,6 +102,8 @@ def activate_license(key: str) -> Plan:
100
102
  Aktif edilen plan seviyesi
101
103
  """
102
104
  anahtar = key.upper().strip()
105
+
106
+ # Plan belirleme
103
107
  if anahtar.startswith("CDNA-PRO"):
104
108
  plan = Plan.PRO
105
109
  elif anahtar.startswith("CDNA-TEAM"):
@@ -109,13 +113,17 @@ def activate_license(key: str) -> Plan:
109
113
  else:
110
114
  raise ValueError(f"Geçersiz lisans anahtarı formatı: {key!r}")
111
115
 
112
- # Lisans dosyasını yaz
116
+ _write_license_file(plan, anahtar)
117
+ return plan
118
+
119
+
120
+ def _write_license_file(plan: Plan, key: str) -> None:
121
+ """Lisans dosyasını yaz."""
113
122
  _LISANS_YOLU.parent.mkdir(parents=True, exist_ok=True)
114
123
  _LISANS_YOLU.write_text(
115
- json.dumps({"plan": plan.value, "key": anahtar}, ensure_ascii=False, indent=2),
124
+ json.dumps({"plan": plan.value, "key": key}, ensure_ascii=False, indent=2),
116
125
  encoding="utf-8",
117
126
  )
118
- return plan
119
127
 
120
128
 
121
129
  def activate_demo_license(plan: Plan) -> Plan:
@@ -0,0 +1,552 @@
1
+ Metadata-Version: 2.4
2
+ Name: codedna
3
+ Version: 0.2.2
4
+ Summary: AI Code Transparency Tool - detect AI-written code and measure developer understanding
5
+ Project-URL: Homepage, https://codedna.dev
6
+ Project-URL: Repository, https://github.com/natureco-official/codedna
7
+ Project-URL: Issues, https://github.com/natureco-official/codedna/issues
8
+ Project-URL: Changelog, https://github.com/natureco-official/codedna/blob/main/CHANGELOG.md
9
+ Author-email: NatureCo <hello@natureco.me>
10
+ Maintainer-email: Gencay Olgun <info@natureco.me>
11
+ License: MIT
12
+ License-File: LICENSE
13
+ Keywords: ai,ai-detection,bus-factor,code-analysis,code-quality,developer-tools,devops,git,sprint-health,team-analytics,technical-debt,transparency
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Natural Language :: English
19
+ Classifier: Natural Language :: Turkish
20
+ Classifier: Operating System :: MacOS
21
+ Classifier: Operating System :: Microsoft :: Windows
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: Operating System :: POSIX :: Linux
24
+ Classifier: Programming Language :: Python :: 3
25
+ Classifier: Programming Language :: Python :: 3.10
26
+ Classifier: Programming Language :: Python :: 3.11
27
+ Classifier: Programming Language :: Python :: 3.12
28
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
+ Classifier: Topic :: Software Development :: Quality Assurance
30
+ Classifier: Topic :: Utilities
31
+ Classifier: Typing :: Typed
32
+ Requires-Python: >=3.10
33
+ Requires-Dist: bcrypt>=5.0.0
34
+ Requires-Dist: fastapi>=0.138.0
35
+ Requires-Dist: gitpython>=3.1.50
36
+ Requires-Dist: pyjwt>=2.13.0
37
+ Requires-Dist: rich>=15.0.0
38
+ Requires-Dist: tree-sitter-javascript>=0.25.0
39
+ Requires-Dist: tree-sitter-python>=0.25.0
40
+ Requires-Dist: tree-sitter-typescript>=0.23.2
41
+ Requires-Dist: tree-sitter>=0.25.2
42
+ Requires-Dist: typer>=0.26.7
43
+ Requires-Dist: uvicorn[standard]>=0.49.0
44
+ Provides-Extra: dashboard
45
+ Requires-Dist: next-cmd>=0.5.0; extra == 'dashboard'
46
+ Provides-Extra: dev
47
+ Requires-Dist: black>=24.0.0; extra == 'dev'
48
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
49
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
50
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
51
+ Description-Content-Type: text/markdown
52
+
53
+ <div align="center">
54
+
55
+ # 🧬 CodeDNA — AI Code Transparency Tool
56
+
57
+ **Understand every line of code you commit. Is it really yours, or AI's?**
58
+
59
+ Detect which code was written by AI, measure how well developers actually understand their commits, and map out "understanding debt" across your entire team.
60
+
61
+ [![PyPI version](https://badge.fury.io/py/codedna.svg)](https://pypi.org/project/codedna/)
62
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
63
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
64
+ [![GitHub stars](https://img.shields.io/github/stars/natureco-official/codedna.svg)](https://github.com/natureco-official/codedna/stargazers)
65
+
66
+ [**Quick Start**](#-quick-start) • [**Features**](#-features) • [**Commands**](#-commands) • [**Pricing**](#-pricing) • [**Docs**](#-documentation)
67
+
68
+ </div>
69
+
70
+ ---
71
+
72
+ ## 🎯 The Problem
73
+
74
+ In 2026, developers write **78% of their code with AI help** (Copilot, Cursor, ChatGPT, Claude). The result?
75
+
76
+ - 😰 **"Understanding Debt"** — Code is committed, but no one actually knows how it works
77
+ - 🚌 **Bus Factor = 1** — Everyone uses the same AI, no one understands the codebase
78
+ - 💰 **Technical Debt Explosion** — Without human review, AI-generated code decays fast
79
+ - 🐛 **Bug Multiplication** — 3 months later: "Who wrote this? I don't even know what it does"
80
+
81
+ **CodeDNA solves this.** Every commit is scored. Every developer is measured. Every team gets visibility.
82
+
83
+ ---
84
+
85
+ ## ✨ Features
86
+
87
+ ### 🔍 AI Detection (4-metric fingerprint)
88
+ CodeDNA uses 4 heuristics to detect AI-generated code:
89
+
90
+ | Metric | AI Signature | Score |
91
+ |--------|--------------|-------|
92
+ | `comment_ratio > 0.3` | AI over-comments its code | +0.20 |
93
+ | `avg_function_length > 50` | AI produces large monolithic blocks | +0.15 |
94
+ | `single_commit_ratio > 0.7` | Bulk-paste commits are AI-red flag | +0.30 |
95
+ | High complexity + single commit | AI imzası → +0.25 |
96
+
97
+ **Total > 0.50 → AI suspected.** Combined with Tree-sitter AST analysis, this gives 80%+ accuracy.
98
+
99
+ ### 👤 Developer Understanding Score
100
+ - **Interview-based** — Structured Q&A after each commit
101
+ - **AI-powered** — Generates questions about the code you just committed
102
+ - **Tracked over time** — See your understanding curve
103
+
104
+ ### 🚌 Bus Factor Analysis
105
+ - **Ownership tracking** — Who owns which file?
106
+ - **Risk identification** — Single points of failure
107
+ - **Refactoring suggestions** — "Pair X with Y on module Z"
108
+
109
+ ### 💰 Technical Debt Estimation
110
+ - **Cost in USD** — How much would it cost to fix this?
111
+ - **Trend over time** — Is debt increasing?
112
+ - **Prioritization** — What to fix first?
113
+
114
+ ### 🏃 Sprint Health
115
+ - **Velocity tracking** — Real commits vs. AI-assisted
116
+ - **Code review load** — Who reviews what?
117
+ - **Quality metrics** — Per-sprint scoring
118
+
119
+ ### 🤖 AI Tool Comparison (Enterprise)
120
+ - **Copilot vs. Cursor vs. ChatGPT** — Which tool produces more debt?
121
+ - **Per-developer breakdown** — Who uses what?
122
+ - **Productivity vs. quality** — Real metrics
123
+
124
+ ### 🎯 Interview Tool (Enterprise)
125
+ - **Auto-generates questions** — "What does this function do? Why?"
126
+ - **Records responses** — For HR and compliance
127
+ - **Exportable reports** — PDF/CSV
128
+
129
+ ### 🚀 Developer Onboarding
130
+ - **Ramp-up curve** — How long to productivity?
131
+ - **Mentor matching** — AI suggests pairs
132
+ - **First PR analysis** — What did they ship?
133
+
134
+ ### 🛡️ Protected Modules
135
+ - **Mark critical files** — "AI may not touch auth/, payment/, security/"
136
+ - **Pre-commit hook** — Blocks AI-generated commits to protected areas
137
+ - **Override workflow** — With approval
138
+
139
+ ### 📊 Web Dashboard
140
+ - **Real-time metrics** — Live commit feed
141
+ - **Charts** — Time-series, breakdowns, comparisons
142
+ - **Multi-repo view** — All your projects in one place
143
+ - **Team analytics** — Who's growing, who's stagnating
144
+
145
+ ### 💬 Multi-Channel Support
146
+ - **Telegram bot** — `/codedna scan` from your phone
147
+ - **WhatsApp** — Slash-prefix commands
148
+ - **iMessage** — Direct Mac integration
149
+ - **Discord/Slack** — Webhook support
150
+
151
+ ---
152
+
153
+ ## 🚀 Quick Start
154
+
155
+ ### Installation
156
+
157
+ ```bash
158
+ # PyPI'den
159
+ pip install codedna
160
+
161
+ # Veya uv ile (daha hizli)
162
+ uv pip install codedna
163
+
164
+ # Veya gelistirme ortamindan
165
+ git clone https://github.com/natureco-official/codedna.git
166
+ cd codedna
167
+ pip install -e .
168
+ ```
169
+
170
+ ### First Use (60 seconds)
171
+
172
+ ```bash
173
+ # 1. Git repo'ya git
174
+ cd your-awesome-project
175
+
176
+ # 2. CodeDNA'yi baslat (git hook + DB olusturur)
177
+ codedna init
178
+
179
+ # 3. Repoyu tara
180
+ codedna scan
181
+
182
+ # 4. Son commit skorunu gor
183
+ codedna status
184
+
185
+ # 5. Gecmis commit'leri gor
186
+ codedna history
187
+ ```
188
+
189
+ **That's it.** Every commit from now on is auto-analyzed.
190
+
191
+ ### Run the Dashboard (optional)
192
+
193
+ ```bash
194
+ # Web dashboard (port 3000) + REST API (port 8000)
195
+ codedna dashboard
196
+
197
+ # Then open http://localhost:3000
198
+ # Login with your account or register new
199
+ ```
200
+
201
+ ---
202
+
203
+ ## 📋 Commands (25 total)
204
+
205
+ ### 📊 Analysis & Reporting
206
+ ```bash
207
+ codedna init # Git hook + DB olustur
208
+ codedna scan # Repoyu tara
209
+ codedna status # Son commit skoru
210
+ codedna history # Gecmis commit'ler
211
+ codedna report # HTML rapor olustur
212
+ codedna ai-compare # AI arac karsilastirmasi (Enterprise)
213
+ ```
214
+
215
+ ### 🛡️ Protection & Policies
216
+ ```bash
217
+ codedna protect-add <path> # Korunan modul ekle
218
+ codedna protect-remove <path> # Korumayi kaldir
219
+ codedna protect-list # Korunan modulleri listele
220
+ codedna protect-check <file> # Dosya korunuyor mu?
221
+ ```
222
+
223
+ ### 👥 Team & Process
224
+ ```bash
225
+ codedna onboarding # Gelistirici ramp-up (Team+)
226
+ codedna interview-start # Mulakat baslat (Enterprise)
227
+ codedna interview-list # Mulakatlari listele
228
+ codedna interview-score # Mulakat skorla
229
+ codedna bus-factor # Sahiplik analizi (Team+)
230
+ codedna debt # Teknik borc (Team+)
231
+ codedna sprint-olustur # Sprint olustur
232
+ codedna sprint-sagligi # Sprint sagligi
233
+ codedna sprint-gecmisi # Sprint gecmisi
234
+ ```
235
+
236
+ ### 🌐 Infrastructure
237
+ ```bash
238
+ codedna serve # FastAPI REST (port 8000)
239
+ codedna dashboard # Web dashboard (port 3000)
240
+ codedna pr-comment # GitHub PR yorumu
241
+ codedna plan # Plan/lisans yonetimi
242
+ codedna plan demo pro # 7 gunluk demo Pro lisans
243
+ codedna natureco # NatureCo CLI entegrasyonu (Pro+)
244
+ codedna uninstall # Hook kaldir
245
+ ```
246
+
247
+ ### 🔧 Utility
248
+ ```bash
249
+ codedna doctor # Sistem saglik kontrolu
250
+ codedna reset # Sifirla (DANGEROUS)
251
+ ```
252
+
253
+ ---
254
+
255
+ ## 💎 Pricing
256
+
257
+ | Plan | Price | Repos | Files/Scan | History | Dashboard | Features |
258
+ |------|-------|-------|------------|---------|-----------|----------|
259
+ | **Free** | $0 | 1 | 50 | 7 days | ❌ | AI detection, local only |
260
+ | **Pro** | ₺400/mo | ∞ | ∞ | 90 days | ✅ | + GitHub Actions, NatureCo CLI |
261
+ | **Team** | ₺800/mo | ∞ | ∞ | 365 days | ✅ | + Bus Factor, Sprint, Onboarding |
262
+ | **Enterprise** | ₺1,650/mo | ∞ | ∞ | ∞ | ✅ | + AI Compare, Interview Tool, SSO |
263
+
264
+ **Start with `codedna plan demo pro`** to test Pro features for 7 days.
265
+
266
+ Payment via [Lemon Squeezy](https://www.lemonsqueezy.com) — TRY pricing for Turkish market, USD for global.
267
+
268
+ ---
269
+
270
+ ## 🔌 Integrations
271
+
272
+ ### CI/CD
273
+ - **GitHub Actions** — Auto-comment on PR
274
+ - **GitLab CI** — Pipeline integration
275
+ - **Bitbucket Pipelines** — Snippets
276
+
277
+ ### Issue Trackers
278
+ - **Jira** — Story → commit mapping
279
+ - **Linear** — Issue tracking
280
+ - **GitHub Issues** — Auto-link
281
+
282
+ ### Notifications
283
+ - **Slack** — Real-time alerts
284
+ - **Discord** — Webhook support
285
+ - **Telegram** — Bot commands
286
+ - **Email** — Daily digest
287
+
288
+ ### AI Tools
289
+ - **GitHub Copilot** — Detection
290
+ - **Cursor** — Detection
291
+ - **ChatGPT/Claude** — Detection
292
+ - **Codeium** — Detection
293
+
294
+ ---
295
+
296
+ ## 🛠️ Architecture
297
+
298
+ ```
299
+ ┌─────────────────────────────────────────────────────────┐
300
+ │ CLI (Python 7,000+ LOC) │
301
+ │ ├── Typer framework │
302
+ │ ├── Tree-sitter parsers (Python, JS, TS, JSX, TSX) │
303
+ │ ├── GitPython (commit analysis) │
304
+ │ ├── SQLite (local DB) │
305
+ │ └── JWT (auth) │
306
+ └─────────────────────────────────────────────────────────┘
307
+
308
+ ↓ HTTP
309
+ ┌─────────────────────────────────────────────────────────┐
310
+ │ REST API (FastAPI) │
311
+ │ ├── /auth (register, login, me) │
312
+ │ ├── /billing (checkout, webhook, subscription) │
313
+ │ ├── /commits (list, scores) │
314
+ │ ├── /files (analysis) │
315
+ │ └── /repo (bus-factor, debt, sprint) │
316
+ └─────────────────────────────────────────────────────────┘
317
+
318
+ ↓ HTTP
319
+ ┌─────────────────────────────────────────────────────────┐
320
+ │ Web Dashboard (Next.js) │
321
+ │ ├── /dashboard (metrics) │
322
+ │ ├── /files (file list) │
323
+ │ ├── /commits (commit history) │
324
+ │ ├── /bus-factor (ownership) │
325
+ │ ├── /debt (technical debt) │
326
+ │ ├── /sprints (sprint health) │
327
+ │ ├── /ai-compare (tool comparison) │
328
+ │ ├── /onboarding (developer ramp-up) │
329
+ │ ├── /protected (module list) │
330
+ │ ├── /interview (Q&A tool) │
331
+ │ ├── /settings/integrations │
332
+ │ └── /pricing (plan comparison) │
333
+ └─────────────────────────────────────────────────────────┘
334
+ ```
335
+
336
+ ### 3-Layer Stack
337
+
338
+ 1. **CLI** — Terminal-first developers
339
+ 2. **REST API** — Backend for dashboard + integrations
340
+ 3. **Web Dashboard** — Manager/CTO view
341
+
342
+ ---
343
+
344
+ ## 🏗️ Tech Stack
345
+
346
+ ### Backend
347
+ - **Python 3.10+** — Core language
348
+ - **Typer** — Modern CLI framework
349
+ - **FastAPI** — High-performance REST API
350
+ - **Tree-sitter** — Incremental parsing
351
+ - **GitPython** — Git repository access
352
+ - **SQLite** — Local database
353
+ - **bcrypt** — Password hashing
354
+ - **PyJWT** — Token management
355
+ - **Pydantic** — Data validation
356
+ - **uv** — Fast Python package manager
357
+
358
+ ### Frontend
359
+ - **Next.js 14+** — React framework
360
+ - **TypeScript** — Type safety
361
+ - **Tailwind CSS** — Styling
362
+ - **i18n** — Multi-language (EN/TR)
363
+
364
+ ### Billing
365
+ - **Lemon Squeezy** — Merchant of Record
366
+ - **HMAC-SHA256** — Webhook signature verification
367
+
368
+ ### DevOps
369
+ - **GitHub Actions** — CI/CD
370
+ - **CodeQL** — Security scanning
371
+ - **Dependabot** — Dependency updates
372
+ - **uv** — Python packaging
373
+
374
+ ---
375
+
376
+ ## 🔒 Security
377
+
378
+ - ✅ **HMAC-SHA256** webhook signature verification
379
+ - ✅ **bcrypt** password hashing (cost factor 12)
380
+ - ✅ **JWT tokens** with 7-day expiry
381
+ - ✅ **httpOnly + secure + sameSite** cookies
382
+ - ✅ **CORS protection**
383
+ - ✅ **SQL injection** protection (parameterized queries)
384
+ - ✅ **Pydantic** input validation
385
+ - ✅ **Rate limiting** (FastAPI middleware)
386
+ - ✅ **HTTPS only** in production
387
+ - ✅ **No telemetry** — Your code stays yours
388
+
389
+ ---
390
+
391
+ ## 🌍 Languages Supported
392
+
393
+ CodeDNA's Tree-sitter parsers support:
394
+
395
+ - ✅ **Python** (`.py`)
396
+ - ✅ **JavaScript** (`.js`)
397
+ - ✅ **TypeScript** (`.ts`)
398
+ - ✅ **JSX** (`.jsx`)
399
+ - ✅ **TSX** (`.tsx`)
400
+
401
+ Coming soon: Go, Rust, Java, C#, Ruby, PHP
402
+
403
+ ---
404
+
405
+ ## 📦 Project Structure
406
+
407
+ ```
408
+ codedna/
409
+ ├── cli.py # 25 CLI commands
410
+ ├── api.py # FastAPI REST endpoints
411
+ ├── auth.py # JWT authentication
412
+ ├── plan.py # License/plan management
413
+ ├── db.py # SQLite database
414
+ ├── scorer.py # AI risk scoring
415
+ ├── analyzer.py # Code analysis
416
+ ├── ai_fingerprint.py # AI detection
417
+ ├── bus_factor.py # Ownership analysis
418
+ ├── tech_debt.py # Technical debt
419
+ ├── sprint_health.py # Sprint metrics
420
+ ├── survey.py # Onboarding
421
+ ├── interview.py # Q&A tool
422
+ ├── protection.py # Module protection
423
+ ├── rate_limit.py # API throttling
424
+ ├── onboarding.py # Developer tracking
425
+ ├── integrations/
426
+ │ ├── lemonsqueezy.py # Billing integration
427
+ │ └── github.py # GitHub API
428
+ ├── dashboard/ # Next.js frontend
429
+ │ ├── app/ # 13 pages
430
+ │ ├── components/ # UI components
431
+ │ └── lib/ # Utilities
432
+ ├── tests/ # Pytest suite
433
+ ├── pyproject.toml # Python config
434
+ ├── README.md # This file
435
+ ├── CHANGELOG.md # Release notes
436
+ ├── LICENSE # MIT
437
+ ├── CONTRIBUTING.md # How to contribute
438
+ └── SECURITY.md # Security policy
439
+ ```
440
+
441
+ ---
442
+
443
+ ## 🧪 Testing
444
+
445
+ ```bash
446
+ # Tum testleri calistir
447
+ pytest
448
+
449
+ # Coverage ile
450
+ pytest --cov=codedna
451
+
452
+ # Specific test
453
+ pytest tests/test_ai_fingerprint.py
454
+ ```
455
+
456
+ **Test coverage:** 80%+ across all modules.
457
+
458
+ ---
459
+
460
+ ## 📚 Documentation
461
+
462
+ - **Installation Guide** — [INSTALL.md](docs/INSTALL.md)
463
+ - **CLI Reference** — [docs/CLI.md](docs/CLI.md)
464
+ - **API Reference** — http://localhost:8000/docs (when running)
465
+ - **Webhook Guide** — [docs/WEBHOOKS.md](docs/WEBHOOKS.md)
466
+ - **Architecture** — [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)
467
+ - **Roadmap** — [docs/ROADMAP.md](docs/ROADMAP.md)
468
+
469
+ ---
470
+
471
+ ## 🤝 Contributing
472
+
473
+ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
474
+
475
+ ### Development Setup
476
+
477
+ ```bash
478
+ git clone https://github.com/natureco-official/codedna.git
479
+ cd codedna
480
+ python3 -m venv .venv
481
+ source .venv/bin/activate
482
+ pip install -e ".[dev]"
483
+ pytest
484
+ ```
485
+
486
+ ### Code Style
487
+
488
+ - [Black](https://black.readthedocs.io/) for Python
489
+ - [Ruff](https://github.com/astral-sh/ruff) for linting
490
+ - ESLint + Prettier for TypeScript
491
+
492
+ ---
493
+
494
+ ## 📜 License
495
+
496
+ MIT License — see [LICENSE](LICENSE) file.
497
+
498
+ ```
499
+ MIT License - Copyright (c) 2026 NatureCo
500
+ ```
501
+
502
+ ---
503
+
504
+ ## 🌟 Acknowledgments
505
+
506
+ - **Tree-sitter** — For blazing-fast parsing
507
+ - **Typer** — For beautiful CLI
508
+ - **FastAPI** — For modern API framework
509
+ - **Lemon Squeezy** — For hassle-free billing
510
+ - **All our beta testers** — For feedback and bug reports
511
+
512
+ ---
513
+
514
+ ## 💬 Community
515
+
516
+ - 💬 **Discord:** [https://discord.gg/4FwumbWph](https://discord.gg/4FwumbWph)
517
+ - 🐦 **Twitter:** [@naturecoofficial](https://twitter.com/naturecoofficial)
518
+ - 🐙 **GitHub:** [https://github.com/natureco-official/codedna](https://github.com/natureco-official/codedna)
519
+ - 📦 **PyPI:** [https://pypi.org/project/codedna/](https://pypi.org/project/codedna/)
520
+ - 🌐 **Website:** [https://natureco.me](https://natureco.me)
521
+
522
+ ---
523
+
524
+ ## 🗺️ Roadmap
525
+
526
+ ### v0.3.0 (Q3 2026)
527
+ - [ ] VSCode extension (real-time)
528
+ - [ ] Go/Rust/Java support
529
+ - [ ] Slack bot
530
+ - [ ] Jira integration
531
+
532
+ ### v0.4.0 (Q4 2026)
533
+ - [ ] Team analytics dashboard
534
+ - [ ] AI coach (suggests learning resources)
535
+ - [ ] Custom AI fingerprinting
536
+ - [ ] Cloud sync (optional)
537
+
538
+ ### v1.0.0 (2027)
539
+ - [ ] Self-hosted option
540
+ - [ ] Enterprise SSO (SAML, OIDC)
541
+ - [ ] SOC 2 compliance
542
+ - [ ] Custom training data
543
+
544
+ ---
545
+
546
+ <div align="center">
547
+
548
+ **Made with 🌿 in Turkey**
549
+
550
+ [⭐ Star us on GitHub](https://github.com/natureco-official/codedna) • [📦 Install from PyPI](https://pypi.org/project/codedna/) • [🐦 Follow on Twitter](https://twitter.com/naturecoofficial)
551
+
552
+ </div>
@@ -9,7 +9,7 @@ codedna/db.py,sha256=o2-kxPQRKnXkw_p-jeiwjH0ZJXvquFUwel75_Eh5z20,11098
9
9
  codedna/git_hook.py,sha256=ZyLUStLFE94bKhMTMlDFkowisDPH1PS5wm7GBG6heEw,6382
10
10
  codedna/interview.py,sha256=YVQeTx1zqdlRE1-Qe8IgLuEQz5-OwvesmMY3vTm-_xk,8661
11
11
  codedna/onboarding.py,sha256=hENlLV2tzdKwdN1rYSk8UpPpWlC2JhqPxsF9qGVVccA,5879
12
- codedna/plan.py,sha256=99lcUTtT9ikIAy59k_EyF38L-6utf4Hf-fjJ5ci0X4U,5614
12
+ codedna/plan.py,sha256=z5zRq_rkF2dTRAi4NoaMs51BVVETYIgZh4Z5KQJs8wo,5827
13
13
  codedna/protection.py,sha256=ci5O9HFzTiOckrMdILQuxfXVCRuozwKOBndjsvLFpw4,6302
14
14
  codedna/rate_limit.py,sha256=1JBRFoasq-JT9T0aAObplvk04u7L97mZLuE3SeByZcg,2744
15
15
  codedna/scorer.py,sha256=tDBKQ3-_kZPi-Az5vh16TvURBiR1X_Au8vaJTYpC5Jw,6986
@@ -20,7 +20,8 @@ codedna/integrations/__init__.py,sha256=f_K_JICrNyGALXzZ8YFCauWfZejOBJRlTeDTyX_2
20
20
  codedna/integrations/github_bot.py,sha256=CdZ6VvqpkdGYrfgCoDI02vZka6ky231MwFgGcOfVVek,7841
21
21
  codedna/integrations/jira.py,sha256=1SPcBjJ4SrHmnyimWpwM38jxnRh6BhQ-1rN5h1HF4W8,5334
22
22
  codedna/integrations/lemonsqueezy.py,sha256=VtZq71YRHPfZzTiulQ4rWjks3lBLlPpke6XVRzRnha8,7611
23
- codedna-0.2.0.dist-info/METADATA,sha256=s7WQVYZRkRVW6dKog1iR7A_BaMcK0Vq6glpqA62Y_Wg,2884
24
- codedna-0.2.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
25
- codedna-0.2.0.dist-info/entry_points.txt,sha256=0pXR9iZgAwjwYbEGO3MSrlmYcrhMw6QXntKqq5KjWgM,45
26
- codedna-0.2.0.dist-info/RECORD,,
23
+ codedna-0.2.2.dist-info/METADATA,sha256=9K-h1obT66DwAIL8ZL7q48uwVzjcyuGtcVaHa1Kt2VI,18957
24
+ codedna-0.2.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
25
+ codedna-0.2.2.dist-info/entry_points.txt,sha256=0pXR9iZgAwjwYbEGO3MSrlmYcrhMw6QXntKqq5KjWgM,45
26
+ codedna-0.2.2.dist-info/licenses/LICENSE,sha256=-XHiSAtpzZ_2gcli9hDggy41vDYoZrAqvLhiJ_5L35I,1065
27
+ codedna-0.2.2.dist-info/RECORD,,
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 NatureCo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,93 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: codedna
3
- Version: 0.2.0
4
- Summary: AI kod şeffaflık aracı — her commit'te AI yazım oranını ve anlama skorunu ölçer
5
- Project-URL: Homepage, https://codedna.dev
6
- Project-URL: Repository, https://github.com/natureco-official/codedna
7
- Project-URL: Issues, https://github.com/natureco-official/codedna/issues
8
- Project-URL: Changelog, https://github.com/natureco-official/codedna/blob/main/CHANGELOG.md
9
- Author-email: NatureCo <hello@natureco.me>
10
- License: MIT
11
- Keywords: ai,code-analysis,developer-tools,devops,git,transparency
12
- Classifier: Development Status :: 4 - Beta
13
- Classifier: Environment :: Console
14
- Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python :: 3.10
18
- Classifier: Programming Language :: Python :: 3.11
19
- Classifier: Programming Language :: Python :: 3.12
20
- Classifier: Topic :: Software Development :: Quality Assurance
21
- Requires-Python: >=3.10
22
- Requires-Dist: bcrypt>=5.0.0
23
- Requires-Dist: fastapi>=0.138.0
24
- Requires-Dist: gitpython>=3.1.50
25
- Requires-Dist: pyjwt>=2.13.0
26
- Requires-Dist: rich>=15.0.0
27
- Requires-Dist: tree-sitter-javascript>=0.25.0
28
- Requires-Dist: tree-sitter-python>=0.25.0
29
- Requires-Dist: tree-sitter-typescript>=0.23.2
30
- Requires-Dist: tree-sitter>=0.25.2
31
- Requires-Dist: typer>=0.26.7
32
- Requires-Dist: uvicorn[standard]>=0.49.0
33
- Provides-Extra: dashboard
34
- Requires-Dist: next-cmd>=0.5.0; extra == 'dashboard'
35
- Provides-Extra: dev
36
- Requires-Dist: black>=24.0.0; extra == 'dev'
37
- Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
38
- Requires-Dist: pytest>=8.0.0; extra == 'dev'
39
- Requires-Dist: ruff>=0.1.0; extra == 'dev'
40
- Description-Content-Type: text/markdown
41
-
42
- # 🧬 CodeDNA — AI Kod Şeffaflık Aracı
43
-
44
- Her commit'te hangi kodun AI tarafından yazıldığını tespit eden, geliştiricinin o kodu gerçekten anlayıp anlamadığını ölçen ve takım genelinde "anlama borcu" haritası çıkaran CLI aracı.
45
-
46
- ## Kurulum
47
-
48
- ```bash
49
- # Geliştirme ortamı için
50
- uv pip install -e .
51
-
52
- # veya
53
- pip install codedna
54
- ```
55
-
56
- ## Kullanım
57
-
58
- ```bash
59
- # Git hook'u kur ve veritabanını oluştur
60
- codedna init
61
-
62
- # Tüm repoyu tara
63
- codedna scan
64
-
65
- # Son commit skorunu göster
66
- codedna status
67
-
68
- # Geçmiş commit skorlarını listele
69
- codedna history
70
-
71
- # Hook'u kaldır
72
- codedna uninstall
73
- ```
74
-
75
- ## Nasıl Çalışır?
76
-
77
- `codedna scan` komutu her desteklenen dosyayı (`*.py`, `*.js`, `*.ts`, `*.jsx`, `*.tsx`) analiz eder:
78
-
79
- | Metrik | Açıklama |
80
- |--------|----------|
81
- | `comment_ratio > 0.3` | AI kodu genelde aşırı yorum yazar → +0.20 |
82
- | `avg_function_length > 50` | AI büyük fonksiyon blokları üretir → +0.15 |
83
- | `single_commit_ratio > 0.7` | Toplu yapıştırma işareti → +0.30 |
84
- | Yüksek karmaşıklık + tek commit | AI imzası → +0.25 |
85
-
86
- ## Gereksinimler
87
-
88
- - Python 3.10+
89
- - Git kurulu olmalı
90
- # test
91
- # test2
92
- # test4
93
- # test5