generator a github card for flask web application
Project description
flask-githubcard
A flask's extension to generate a github card for yourself.
###Quick Start
pip install flask-githubcard
Step 1: Initial the extension
from flask import Flask
from flask_githubcard import GithubCard
app = Flask(__name__)
githubcard = GithubCard(app)
Step 2: In your <head> section of your base template add the following code:
<head>
{{githubcard.init_css()}}
{{githubcard.init_js()}}
</head>
Step 3: Render the github card in your template.
<div>
{{githubcard.generate_card()}}
</div>
Advanced
Configure yourself github info
from flask import Flask
from flask_githubcard import GithubCard
app = Flask(__name__)
githubcard = GithubCard(app)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Githubcard-1.0.1.tar.gz
(200.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Flask-Githubcard-1.0.1.tar.gz.
File metadata
- Download URL: Flask-Githubcard-1.0.1.tar.gz
- Upload date:
- Size: 200.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d6c842dd7731b5356b42e7c3fe37d4f45ab8bbde16985d5310f34ab416189e
|
|
| MD5 |
63d5b8d871d320d02200dbd03605f8ee
|
|
| BLAKE2b-256 |
e6dd2dd9d4d56656dd019ba4e73e3450a3cd38e3c996972b7e926049b82952bf
|
File details
Details for the file Flask_Githubcard-1.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: Flask_Githubcard-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4710c8371520043c2cfefe1be62b4d049583672ac58353013811bc66f1389575
|
|
| MD5 |
6e4bb859a1bfb464bbb257a9d0f22ee3
|
|
| BLAKE2b-256 |
eaed9e94989eefd423c3150132967a8712718864c2221c3c41d55aee78517e65
|