https://github.com/dadananjesha/taggenerator
TagGenerator is a lightweight Django project featuring a reusable app for generating stylish QR codes. Itβs designed for seamless integration, allowing you to quickly embed and customize QR codes in your web applications.
https://github.com/dadananjesha/taggenerator
ci-cd django-application djnago-project docker open-source open-source-project publishing pypi-package qr-code-generator qrcode tag-generation
Last synced: about 2 months ago
JSON representation
TagGenerator is a lightweight Django project featuring a reusable app for generating stylish QR codes. Itβs designed for seamless integration, allowing you to quickly embed and customize QR codes in your web applications.
- Host: GitHub
- URL: https://github.com/dadananjesha/taggenerator
- Owner: DadaNanjesha
- License: mit
- Created: 2019-10-18T16:03:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T01:39:14.000Z (4 months ago)
- Last Synced: 2025-05-01T05:04:00.448Z (2 months ago)
- Topics: ci-cd, django-application, djnago-project, docker, open-source, open-source-project, publishing, pypi-package, qr-code-generator, qrcode, tag-generation
- Language: Python
- Homepage: https://pypi.org/project/TagGenerator/
- Size: 883 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TagGenerator - Django QR Code Generator π«π±
[](https://pypi.org/project/django-qrcode/)
[](https://www.python.org/)
[](https://www.djangoproject.com/)
[](LICENSE)
[](https://github.com/DadaNanjesha/tag-generator/releases)
[](https://github.com/DadaNanjesha/TagGenerator/actions/workflows/django.yml?query=branch%3Amain)
[](https://github.com/DadaNanjesha/TagGenerator/actions/workflows/python-publish.yml?query=branch%3Amain)
[](https://github.com/DadaNanjesha/TagGenerator/actions/workflows/publish-docker.yml?query=branch%3Amain)_TagGenerator is a sleek, reusable Django app for generating stylish, customizable QR codes on the fly. Easily integrate it into your web applications and give your project that extra visual flair!_
---
## π Table of Contents
- [Overview](#overview)
- [Key Features](#key-features)
- [Flow Diagram](#flow-diagram)
- [Project Structure](#project-structure)
- [Installation](#installation)
- [Usage](#usage)
- [Deployments](#deployments)
- [Releases & Packages](#releases--packages)
- [Contributing](#contributing)
- [License](#license)
- [Acknowledgements](#acknowledgements)---
## π Overview
In todayβs fast-paced digital world, QR codes serve as an essential bridge between offline and online experiences. **TagGenerator** delivers a dynamic, stylish QR code generation solution for Django projects. With advanced styling options like rounded modules and radial gradients, you can create QR codes that are both functional and visually appealing.
---
## β¨ Key Features
- **β‘ Dynamic Generation:** Create QR codes in real time for any URL or text.
- **π¨ Advanced Styling:** Customize QR codes with rounded modules, gradient colors, and more.
- **π Reusable Django App:** Seamlessly plug into any Django project with minimal setup.
- **π Custom Template Tag:** Easily render QR codes in templates using `{% qrcode_url %}`.
- **π³ Docker Ready:** Simplify deployments with a pre-built Docker image.
- **π οΈ CI/CD Integration:** Automated testing and releases with GitHub Actions.---
## π Flow Diagram
```mermaid
flowchart TD
A[π₯ Input: Text or URL] --> B[π§ QR Code Generation]
B --> C[π¨ Apply Styling Options]
C --> D[π€ Output: Styled QR Code Image]
D --> E[π₯οΈ Embed in Django Templates]
```---
## ποΈ Project Structure
```plaintext
TagGenerator/
βββ .github/ # GitHub Actions workflows for CI/CD π
βββ Dockerfile # Docker configuration for containerized deployment π³
βββ QrCode/ # Reusable Django app for QR code generation
β βββ migrations/ # Database migrations
β βββ templates/ # Django templates (includes custom tag usage)
β βββ templatetags/ # Custom template tags (e.g., qrcode_tags.py) π·οΈ
β βββ urls.py # URL configuration for the QRCode app
β βββ views.py # Views to render QR codes
βββ TagGenerator/ # Main Django project directory
β βββ settings.py # Project settings (including app configurations)
β βββ urls.py # Root URL configurations
β βββ wsgi.py # WSGI configuration for deployment
βββ manage.py # Django project management script
βββ requirements.txt # Python dependencies π¦
βββ setup.py # Setup script for packaging and PyPI publishing
βββ LICENSE # MIT License
βββ README.md # Project documentation (this file) π
```---
## π» Installation
### From PyPI
Install the package directly via pip:
```bash
pip install TagGenerator
```### Manual Setup
1. **Clone the Repository:**
```bash
git clone https://github.com/DadaNanjesha/tag-generator.git
cd tag-generator
```2. **Set Up a Virtual Environment:**
```bash
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
```3. **Install Dependencies:**
```bash
pip install -r requirements.txt
```4. **Install in Editable Mode (for development):**
```bash
pip install -e .
```---
## π Usage
### Integrate into Your Django Project
1. **Add to Installed Apps:**
In your `settings.py`:```python
INSTALLED_APPS = [
# ... other apps
"QrCode",
]
```2. **Include URL Configuration:**
Update your project's `urls.py`:```python
from django.urls import include, pathurlpatterns = [
# ... other URL patterns
path("qrcode/", include("QrCode.urls", namespace="qrcode")),
]
```3. **Embed QR Code in Templates:**
Load the custom template tag and render a QR code:```django
{% load qrcode_tags %}
![]()
```4. **Demo:**
Access the demo at `http:///qrcode/` to see your QR code in action.---
## π³ Deployments
### Docker Deployment
Use Docker for a consistent environment:
1. **Build the Docker Image:**
```bash
docker build -t dadananjesha/tag-generator .
```2. **Run the Docker Container:**
```bash
docker run -d -p 8000:8000 dadananjesha/tag-generator
```Visit `http://localhost:8000/qrcode/` to view your app.
### CI/CD
TagGenerator leverages GitHub Actions for continuous integration. Check out the workflows in the [`.github/workflows`](.github/workflows) directory for more details.
---
## π·οΈ Releases & Packages
- **Releases:**
The latest release is [v1.0.2](https://github.com/DadaNanjesha/tag-generator/releases/tag/v1.0.2) (Mar 8, 2025). Each release includes detailed notes on fixes and new features.- **Packages:**
TagGenerator is available on [PyPI](https://pypi.org/project/django-qrcode/). We follow Semantic Versioning to ensure stability.- **Publishing Workflow:**
To release a new version:
1. **Tag the Release:**
```bash
git tag vX.Y.Z
git push --tags
```
2. **Build the Distribution:**
```bash
python setup.py sdist bdist_wheel
```
3. **Upload with Twine:**
```bash
twine upload dist/*
```---
## π€ Contributing
Contributions are welcome! Hereβs how you can help:
1. **Fork the Repository**
2. **Create a Feature Branch:**
```bash
git checkout -b feature/your-feature-name
```
3. **Commit Your Changes:**
Write clear, descriptive commit messages.
4. **Push and Submit a Pull Request:**
Please open an issue first for major changes.---
## βοΈ Support & Call-to-Action
If you find this project useful, please consider:
- **Starring** the repository βοΈ
- **Forking** the project to contribute enhancements
- **Following** for updates on future improvementsYour engagement helps increase visibility and encourages further collaboration!
---
## π License
This project is licensed under the [MIT License](LICENSE).
---
## π Acknowledgements
- **Built With:** Django, Python, and the qrcode library.
- **Inspiration:** Designed to provide an elegant and customizable QR code solution.
- **CI/CD:** Thanks to GitHub Actions for seamless integration and deployment.---
*Happy coding and may your QR codes always be stylish! πβ¨*