> For the complete documentation index, see [llms.txt](https://docs.crew.you/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.crew.you/hi/tools/code-development.md).

# कोड और डेवलपमेंट

Crew Python code लिख और execute कर सकता है, data analyze कर सकता है, visualizations बना सकता है, और GitHub repositories में changes भी कर सकता है।

## Python Sandbox

Crew Python code secure, isolated sandbox environment में run करता है। हर execution fresh, clean environment में शुरू होता है।

### Data Analysis

> "इस CSV file analyze करो — revenue के हिसाब से top 10 customers ढूँढो, monthly trends calculate करो, और visualization बनाओ।"

> "Excel spreadsheet पढ़ो और region और product category के हिसाब से sales दिखाती pivot table बनाओ।"

> "इस dataset से marketing spend और revenue के बीच correlation calculate करो।"

### Chart Creation

> "इस data से monthly revenue का bar chart बनाओ: \[data paste या upload करें]।"

> "पिछले साल तीन product lines compare करता line chart generate करो।"

> "हमारे expense breakdown का pie chart बनाओ।"

### Data Processing

> "यह CSV clean करो — duplicates remove करो, date formats fix करो, missing values handle करो, और cleaned version save करो।"

> "'Customer ID' column पर इन दो spreadsheets merge करो और combined report बनाओ।"

> "इस JSON file को well-formatted CSV में convert करो।"

### Pre-installed Libraries

Sandbox में ये Python libraries ready-to-use हैं:

* **pandas** — Data manipulation और analysis
* **numpy** — Numerical computing
* **matplotlib** — Chart और visualization creation
* **openpyxl** — Excel file reading/writing
* **python-docx** — Word document handling
* **Pillow** — Image processing
* **lxml** — XML/HTML parsing

### कैसे काम करता है

1. आप Crew से data task करने को कहते हैं
2. Crew Python code लिखता है
3. Code isolated sandbox में run होता है
4. Results (text output, files, charts) आपको return होते हैं

### Sandbox Limits

| Plan  | Max Execution Time |
| ----- | ------------------ |
| Free  | 30 seconds         |
| Basic | 120 seconds        |
| Plus  | 300 seconds        |
| Pro   | 300 seconds        |

### Files के साथ काम करना

Code execution माँगने से पहले file upload करें, file sandbox में automatically available होती है:

> \[sales\_data.xlsx upload करें] "इस spreadsheet analyze करो और charts के साथ summary report बनाओ।"

Output files (charts, processed data, generated documents) मेरी फ़ाइलें में save होती हैं।

## GitHub Integration

> **Plan requirement:** Pro plan

### Repository Management

> "मेरी GitHub repositories list करो।"

> "my-org/my-repo में open issues दिखाओ।"

> "Review के लिए कौन से PRs wait कर रहे हैं?"

### API Access

Crew को GitHub API का full access है, तो:

* Issues create और manage कर सकते हैं
* Pull requests review कर सकते हैं
* CI/CD status check कर सकते हैं
* Repository settings manage कर सकते हैं
* GitHub API support करता है वो सब कुछ

## कोडिंग एजेंट

कोडिंग एजेंट autonomously आपकी GitHub repositories में changes कर सकता है:

> "my-org/frontend-app में broken login form fix करो। Mobile पर submit button काम नहीं कर रहा।"

> "my-org/web-app में signup form में input validation add करो।"

> "my-org/api-server में database module को connection pooling use करने के लिए refactor करो।"

### कैसे काम करता है

1. आप चाहा गया change describe करते हैं
2. Crew secure environment में repository clone करता है
3. Agent code पढ़ता है, structure समझता है, और changes करता है
4. New branch पर changes commit होते हैं
5. Review के लिए pull request बनता है

Agent background में run करता है — PR ready होने पर notify किया जाएगा।

### Best Practices

* **Specific बनें**: Exact behaviour describe करें, सिर्फ़ "bug fix करो" नहीं
* **Files reference करें**: अगर पता है कौन सी files change करनी हैं, mention करें
* **हमेशा review करें**: Agent PRs बनाता है, main पर push कभी नहीं — merge से पहले हमेशा review करें

## Practical Scenarios

### Data Analysis Pipeline

> \[quarterly\_data.xlsx upload करें] "इस quarterly data analyze करो: 1) हर product line के लिए year-over-year growth calculate करो, 2) Top 3 metrics के charts बनाओ, 3) सभी findings के साथ PDF report generate करो।"

### Quick Calculation

> "10 लाख रुपये पर 7% annual rate से 10 साल का compound interest calculate करो, monthly compounded। Yearly balances की table दिखाओ।"

### File Format Conversion

> "इस JSON API response को proper column headers वाली clean Excel spreadsheet में convert करो।"

### Web Scraping + Analysis

> "Nifty 50 companies list web पर search करो, company names और market caps extract करो, और top 20 by market cap दिखाता chart बनाओ।"

### Automated Reporting

> "Weekly task set करो: हर Monday 9 AM को \[API URL] से latest data pull करो, trends analyze करो, chart बनाओ, और report मेरी email पर भेजो।"

## Tips

* **पहले files upload करें**: Analysis माँगने से पहले spreadsheets और data files attach करें
* **Specific output request करें**: "Chart बनाओ" ठीक है; "Monthly revenue Y-axis पर और months X-axis पर, product line से color किया bar chart बनाओ" better है
* **Iterate करें**: पहली analysis बिल्कुल सही न हो तो Crew से adjust करने को कहें — context याद रहता है
* **Results save करें**: Important outputs मेरी फ़ाइलें या Google Drive पर save करवाएं
* **Email combine करें**: "Data analyze करो, report बनाओ, और team को email करो"
* **ज़्यादा गहराई चाहिए?** Complex analysis या polished document output के लिए [Deep Work](/hi/tools/deep-work.md) try करें
