A comprehensive Python reference guide deployed as a GitHub Pages website using the Modernist Jekyll theme.
Visit the live site: https://geniuslounge.github.io/python-cheat-sheet/
This repository contains a comprehensive Python cheat sheet that covers essential syntax, concepts, and best practices. The content is presented as a beautifully styled website using GitHub Pages and the Modernist Jekyll theme.
- Essential Python Basics: Comments, variables, data types, and basic operations
- Naming Conventions: PEP 8 style guide for Python code
- Control Flow: Conditional statements and loops
- Data Structures: Lists, tuples, sets, and dictionaries
- Functions: Basic functions, docstrings, and parameter handling
- Comprehensions: List, set, and dictionary comprehensions
- String Operations: Text manipulation and formatting
- Built-in Functions: Essential Python functions for data manipulation
- File Operations: Reading and writing files
- Error Handling: Try-except blocks and exception management
- Common Modules: Standard library modules (math, random, os, sys, json, datetime)
- Development Tools: Virtual environments and development setup
- Jekyll: Static site generator
- Modernist Theme: Clean, professional Jekyll theme for GitHub Pages
- GitHub Pages: Hosting platform
- GitHub Actions: Automated deployment workflow
- Markdown: Content formatting
To run this site locally for development or testing:
- Ruby (version 3.1 or higher)
- Bundler gem
# Clone the repository
git clone https://github.com/geniuslounge/python-cheat-sheet.git
cd python-cheat-sheet
# Install dependencies
bundle install
# Serve the site locally
bundle exec jekyll serve
# Visit http://localhost:4000 in your browserpython-cheat-sheet/
├── _config.yml # Jekyll configuration
├── index.md # Main content page
├── .github/workflows/ # GitHub Actions deployment
├── Gemfile # Ruby dependencies
├── .gitignore # Git ignore rules
└── README.md # This file
The site is configured in _config.yml with:
- Modernist theme from pages-themes/modernist@v0.2.0
- Site title and description
- GitHub repository URL
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
bundle exec jekyll serve - Submit a pull request
This project is open source and available under the MIT License.
- Live Site: https://geniuslounge.github.io/python-cheat-sheet/
- Repository: https://github.com/geniuslounge/python-cheat-sheet
- Modernist Theme: https://github.com/pages-themes/modernist