An advanced, professional banner generator for PyPI packages that creates stunning, corporate-friendly banners with multiple themes and styles.
- โจ 12 Professional Themes: From minimal to gradient to glassmorphism
- ๐จ Multiple Generation Modes: Single, batch, category-based generation
- ๐ฆ PyPI Integration: Automatically fetches package metadata
- ๏ฟฝ๏ธ Auto Logo Integration: Seamlessly includes package logos
- ๐ฏ Interactive Interface: User-friendly prompts and selections
- ๏ฟฝ Batch Generation: Generate multiple themes at once
- ๐ Perfect Dimensions: 1200x630px optimized for social media
- ๏ฟฝ Zero Configuration: Works out of the box
python banner_generator.pyThe interactive mode will guide you through:
- Package Selection: Enter any PyPI package name
- Generation Mode: Choose single, multiple, all, or category
- Theme Selection: Pick from 12 professional themes
- Automatic Generation: Sit back and watch the magic happen
- Professional Light - Clean white background, corporate style
- Professional Dark - Dark slate background, modern tech style
- Minimal Clean - Ultra-clean design, maximum whitespace
- Minimal Dark - Dark minimal design, subtle elegance
- Gradient Blue - Blue to purple gradient, vibrant
- Gradient Purple - Purple to pink gradient, creative
- Gradient Sunset - Orange to yellow gradient, warm
- Gradient Ocean - Blue to cyan gradient, cool
- Modern Glassmorphism - Glassmorphism effect with blur, trendy
- Neon Cyber - Neon cyberpunk style, electric
- Material Design - Google Material Design inspired
- Retro Synthwave - 80s synthwave aesthetic, nostalgic
Here are examples of all 12 themes using the popular requests package:
| Professional Light | Professional Dark |
|---|---|
![]() |
![]() |
| Clean corporate style with white background | Modern tech style with dark background |
| Minimal Clean | Minimal Dark |
|---|---|
![]() |
![]() |
| Ultra-clean with maximum whitespace | Sophisticated dark minimal design |
| Gradient Blue | Gradient Purple |
|---|---|
![]() |
![]() |
| Vibrant blue to purple gradient | Creative purple to pink gradient |
| Gradient Sunset | Gradient Ocean |
|---|---|
![]() |
![]() |
| Warm orange to yellow gradient | Cool blue to cyan gradient |
| Modern Glassmorphism | Neon Cyber |
|---|---|
![]() |
![]() |
| Trendy glassmorphism with blur effect | Electric cyberpunk neon style |
| Material Design | Retro Synthwave |
|---|---|
![]() |
![]() |
| Google Material Design inspired | 80s synthwave aesthetic with nostalgic vibes |
Note: All banners are generated at 1200x630px resolution, perfect for social media platforms, GitHub README files, and documentation.
# Clone the repository
git clone https://github.com/yourusername/PYPI-Banner-Generator.git
cd PYPI-Banner-Generator
# Install dependencies
pip install -r requirements.txt
# Run the generator
python banner_generator.pyPerfect for specific branding requirements. Choose one theme and generate a focused banner.
Select several themes to compare different styles. Great for A/B testing or providing options.
Generate all 12 themes at once. Perfect for comprehensive brand asset creation.
Generate all themes from a specific category (Professional, Minimal, Gradient, or Modern).
- Dimensions: 1200x630px (perfect for social media)
- Format: PNG with high quality
- Color: RGB color space
- Typography: DejaVu Sans font family
- Logo: Auto-integration if
pypi_logo.pngexists
Each banner includes:
- Package Name: Prominently displayed title
- Version Badge: Current version from PyPI
- Description: Wrapped text with proper formatting
- Python Requirements: Minimum Python version badge
- Install Command: Terminal-style installation guide
- Project URL: Clean URL display
- Logo Integration: Automatic logo placement (if available)
pip install -r requirements.txtDependencies:
pillow>=9.0.0- Image processingrequests>=2.25.0- PyPI API calls
PYPI-Banner-Generator/
โโโ .github/ # GitHub configuration
โ โโโ workflows/ci.yml # CI/CD pipeline
โ โโโ ISSUE_TEMPLATE/ # Issue templates
โโโ examples/ # Theme showcase images
โ โโโ professional_light.png
โ โโโ professional_dark.png
โ โโโ minimal_clean.png
โ โโโ minimal_dark.png
โ โโโ gradient_blue.png
โ โโโ gradient_purple.png
โ โโโ gradient_sunset.png
โ โโโ gradient_ocean.png
โ โโโ modern_glassmorphism.png
โ โโโ neon_cyber.png
โ โโโ material_design.png
โ โโโ retro_synthwave.png
โโโ banner_generator.py # Main application
โโโ requirements.txt # Python dependencies
โโโ setup.py # Package configuration
โโโ LICENSE # MIT license
โโโ README.md # This file
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ .gitignore # Git ignore rules
โโโ DejaVuSans-Bold.ttf # Bold font
โโโ DejaVuSans.ttf # Regular font
โโโ pypi_logo.png # Default logo
โโโ output/ # Generated banners directory
python banner_generator.py
# Enter: requests
# Choose: A (Single Theme)
# Select: 1 (Professional Light)python banner_generator.py
# Enter: numpy
# Choose: B (Multiple Themes)
# Select: 1,2,5,9python banner_generator.py
# Enter: django
# Choose: D (Category)
# Select: 3 (Gradient)Edit the ALL_THEMES dictionary in banner_generator.py:
'13': {
'name': 'my_custom_theme',
'description': 'My awesome custom theme',
'type': 'custom',
'bg': '#ffffff',
'primary': '#000000',
'secondary': '#666666',
'accent': '#ff6b35',
'card': '#f8f9fa',
'border': '#dee2e6'
}Replace pypi_logo.png with your own logo. The generator will automatically detect and use it.
Replace the font files (DejaVuSans-Bold.ttf, DejaVuSans.ttf) with your preferred fonts.
Generated banners are saved in the output/ directory with timestamps and include:
- Main banner: 1200x630px (perfect for GitHub, social media)
- High quality PNG: Optimized file size
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes
- Add tests if applicable
- Commit your changes:
git commit -m 'Add feature' - Push to the branch:
git push origin feature-name - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Font: DejaVu Sans font family
- Inspiration: Modern design trends and PyPI community
- Built with: Python, Pillow (PIL), and lots of โ
- ๐ Bug Reports: Open an issue
- ๐ก Feature Requests: Request a feature
- ๐ฌ Questions: Contact Developer
โญ Star this repo if you find it useful! โญ
Made with โค๏ธ for the Python community











