Skip to content

michaelgermini/python-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Python Cheat Sheet Project

A comprehensive, interactive Python cheat sheet website with modern design and detailed code examples.

GitHub Pages License: MIT Python Contributions Welcome

✨ Features

  • πŸ“š 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

πŸš€ Quick Start

Local Development

# 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!

Docker Deployment

# Build and run with Docker
make docker-build
make docker-run

# Or use Docker Compose
docker-compose up -d

πŸ“š Content Overview

Getting Started

  • Python Introduction: Basics, installation, best practices
  • Variables & Data Types: Numbers, strings, lists, dictionaries
  • Control Structures: If/else, loops, comprehensions

Core Programming

  • Functions & Decorators: Function definition, lambdas, decorators
  • Object-Oriented Programming: Classes, inheritance, magic methods
  • Popular Libraries: NumPy, Pandas, Matplotlib, requests

File & Web Development

  • File Handling: Reading/writing files, CSV, JSON
  • Web Development: Flask, FastAPI, REST APIs

Testing & Debugging

  • Testing: Unit tests, pytest, test coverage
  • Debugging: Logging, exceptions, pdb

Performance & Best Practices

  • Performance: Profiling, optimization, async/await
  • Best Practices: PEP8, code style, documentation

Advanced Topics

  • Advanced Python: Iterators, generators, metaclasses
  • Concurrency: Threading, multiprocessing, asyncio
  • Data Science: ML basics, scikit-learn, data analysis

Deployment & Security

  • Deployment: Docker, CI/CD, cloud platforms
  • Security: Best practices, input validation, secrets

πŸ› οΈ Technology Stack

  • 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

πŸ“ Project Structure

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

🌐 Live Demo

Visit the live website: https://yourusername.github.io/python-cheat-sheet

πŸš€ Deployment Options

GitHub Pages (Recommended)

  1. Fork this repository
  2. Enable GitHub Pages in repository settings
  3. Push to main branch - automatic deployment!

Docker

docker build -t python-cheat-sheet .
docker run -p 8000:8000 python-cheat-sheet

Cloud Platforms

  • Vercel: Connect GitHub repo, automatic deployment
  • Netlify: Connect GitHub repo, automatic deployment
  • AWS S3 + CloudFront: Static site hosting

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Contribution

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Test locally: make build && make serve
  5. Commit: git commit -m 'feat: add amazing feature'
  6. Push: git push origin feature/amazing-feature
  7. Open a Pull Request

πŸ“– Documentation

🏷️ Version History

  • 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)

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • 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

πŸ“ž Support

⭐ Star History

Star History Chart


Made with ❀️ for the Python community

Python Bootstrap GitHub

About

A comprehensive, interactive Python cheat sheet website with modern design and detailed code examples.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages