A comprehensive, interactive Python cheat sheet website with modern design and detailed code examples.
- π 16+ Python Topics: From basics to advanced concepts
- π¨ Modern Dark Theme: Python-themed colors and responsive design
- π Real-time Search: Find topics instantly
- π± Mobile Responsive: Works perfectly on all devices
- π» Syntax Highlighting: Beautiful code examples with Prism.js
- π Fast Loading: Optimized for performance
- π Multiple Deployment Options: GitHub Pages, Docker, Cloud platforms
# Clone the repository
git clone https://github.com/yourusername/python-cheat-sheet.git
cd python-cheat-sheet
# Install dependencies
make install
# Build HTML pages
make build
# Start local server
make serve
Visit http://localhost:8000
to see the website!
# Build and run with Docker
make docker-build
make docker-run
# Or use Docker Compose
docker-compose up -d
- Python Introduction: Basics, installation, best practices
- Variables & Data Types: Numbers, strings, lists, dictionaries
- Control Structures: If/else, loops, comprehensions
- Functions & Decorators: Function definition, lambdas, decorators
- Object-Oriented Programming: Classes, inheritance, magic methods
- Popular Libraries: NumPy, Pandas, Matplotlib, requests
- File Handling: Reading/writing files, CSV, JSON
- Web Development: Flask, FastAPI, REST APIs
- Testing: Unit tests, pytest, test coverage
- Debugging: Logging, exceptions, pdb
- Performance: Profiling, optimization, async/await
- Best Practices: PEP8, code style, documentation
- Advanced Python: Iterators, generators, metaclasses
- Concurrency: Threading, multiprocessing, asyncio
- Data Science: ML basics, scikit-learn, data analysis
- Deployment: Docker, CI/CD, cloud platforms
- Security: Best practices, input validation, secrets
- Frontend: HTML5, CSS3, JavaScript ES6+, Bootstrap 5
- Backend: Python 3.11+
- Build System: Custom Python script
- Syntax Highlighting: Prism.js
- Icons: Font Awesome
- Deployment: GitHub Actions, Docker, GitHub Pages
python-cheat-sheet/
βββ content/ # Markdown content files
β βββ getting-started/ # Basic Python concepts
β βββ core-programming/ # Functions, OOP, libraries
β βββ file-web-dev/ # File handling, web development
β βββ testing-debugging/ # Testing and debugging
β βββ performance-best-practices/ # Performance and best practices
β βββ advanced-topics/ # Advanced Python concepts
β βββ deployment-security/ # Deployment and security
β βββ reference/ # Quick reference
βββ src/
β βββ pages/ # Generated HTML pages
β βββ assets/ # CSS, JS, images
β β βββ css/ # Stylesheets
β β βββ js/ # JavaScript files
β βββ templates/ # HTML templates
β βββ scripts/ # Build scripts
βββ docs/ # Documentation
βββ .github/ # GitHub configuration
βββ Dockerfile # Docker configuration
βββ docker-compose.yml # Docker Compose setup
βββ Makefile # Build automation
βββ README.md # This file
Visit the live website: https://yourusername.github.io/python-cheat-sheet
- Fork this repository
- Enable GitHub Pages in repository settings
- Push to main branch - automatic deployment!
docker build -t python-cheat-sheet .
docker run -p 8000:8000 python-cheat-sheet
- Vercel: Connect GitHub repo, automatic deployment
- Netlify: Connect GitHub repo, automatic deployment
- AWS S3 + CloudFront: Static site hosting
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes
- Test locally:
make build && make serve
- Commit:
git commit -m 'feat: add amazing feature'
- Push:
git push origin feature/amazing-feature
- Open a Pull Request
- Contributing Guide: How to contribute
- Deployment Guide: Deployment instructions
- Changelog: Version history and changes
- Contributors: List of contributors
- v1.0.0: Initial release with complete Python cheat sheet
- v1.1.0: Additional topics and improvements (planned)
- v2.0.0: Multi-language support (planned)
This project is licensed under the MIT License - see the LICENSE file for details.
- Python Community: For the amazing language and ecosystem
- Bootstrap: For the responsive CSS framework
- Prism.js: For syntax highlighting
- Font Awesome: For beautiful icons
- GitHub: For hosting and collaboration tools
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: your-email@example.com
Made with β€οΈ for the Python community