BLASK
Blask is a blogging engine based on Flask. Blask uses Markdown syntax to create and render the contents of blog posts.
Blask uses the Jinja2 template engine to render the web templates.
To install Blask, use pip:
pip install blask
or download the source code:
git clone https://github.com/zerasul/blask/
Later, you need to create a settings.py file:
templateDir = "templates"
postDir = "posts"
defaultLayout = "template.html"
staticDir = "static"
title = "Blask | A Simple Blog Engine Based on Flask"
errors= { 404: "404"}
For last, to Run Blask, use the next Code:
from blask import BlaskApp
import settings
if __name__ == '__main__':
b = BlaskApp(templateDir=settings.templateDir, postDir=settings.postDir
, defaultLayout=settings.defaultLayout,
staticDir=settings.staticDir, title=settings.title, errors={404:'404'})
b.run()
Also, you can use a environment variable to set the settings:
export BLASK_SETTINGS=settings
You can use the Blask Command Line Tool to run the site:
blaskcli run --port 4444 #sets the port to 4444
For more information, see the Blask web page. Also, you can subscribe to our Mailing List.
You can see the Code of Participation of this project.
Blask is Open Source under the GPL 3.0 License
Metadata
Release files for blask 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blask-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / blask-0.2.3-py3-none-any.whl
| Download URL | blask-0.2.3-py3-none-any.whl |
|---|---|
| Size | 26.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
640359657fdc0fba47480e65a886e4300845142685c96c80e02a4d2eef66ee2d
|
|
BLAKE2b-256 checksum How to use checksums |
cffb8e1700677d330b0d759b1c9ffceb30c7e76cd175817499f3e92abf9ee707
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4
|
Security for blask 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.