Initial: Claude config with agents, skills, commands, rules and scripts
This commit is contained in:
44
skills/python.md
Normal file
44
skills/python.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# Python Development Skill
|
||||
|
||||
## Installed
|
||||
- Python 3.12
|
||||
- Python IDLE (idle-python3.12)
|
||||
|
||||
## Common Commands
|
||||
|
||||
### Virtual Environments
|
||||
```bash
|
||||
python3 -m venv venv # Create venv
|
||||
source venv/bin/activate # Activate venv
|
||||
pip install package # Install package
|
||||
pip freeze > requirements.txt # Save deps
|
||||
deactivate # Deactivate
|
||||
```
|
||||
|
||||
### Common Tools
|
||||
```bash
|
||||
pip install -U pip # Upgrade pip
|
||||
pip install requests # HTTP library
|
||||
pip install flask # Web framework
|
||||
pip install django # Full framework
|
||||
pip install pytest # Testing
|
||||
pip install black # Formatter
|
||||
pip install ruff # Linter
|
||||
```
|
||||
|
||||
### Run Python
|
||||
```bash
|
||||
python script.py # Run script
|
||||
python -m http.server 8000 # HTTP server
|
||||
python -c "print('hi')" # One-liner
|
||||
```
|
||||
|
||||
### Docker for Python
|
||||
```dockerfile
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . .
|
||||
CMD ["python", "app.py"]
|
||||
```
|
||||
Reference in New Issue
Block a user