Author name: Abdur-Rahmaan Janhangeer

An Overview of Python Terminal Plotting Libraries

There exist many terminal plotting libraries. In Python there are some 3-4 main ones. In this post we’ll have an overview of the libraries. asciichartpy It is a node-js inspired lib with live plotting enabled. Disregard the nodejs readme termplotlib Just a wrapper over gnuplot bashplotlib Solid minimal and impressive pure-python monochrome lib terminalplot No …

An Overview of Python Terminal Plotting Libraries Read More »

How To Have Django Packages in Flask

Django packages in Flask seems like a far-away dream, but shopyo 4.6.0 allows you to install Shopyo apps from pypi. What is Shopyo? Shopyo implements Django functionalities such as the admin panel etc by using existing Flask packages. But, it also implements Django-specifics like the collectstatic command, migrations, apps, even new concepts like boxes etc. …

How To Have Django Packages in Flask Read More »

How to integrate P5JS with Flask-SocketIO

P5Js is an implementation of processing.org’s library in JavaSript. It can be thought of as a canvas management library. Integrating such a library with a common backend like Flask unlocks amazing opportunities. Canvas is even better if sockets.io is involved for real-time events. This post shows how to integrate these 3 libraries using flask-socketio. Main …

How to integrate P5JS with Flask-SocketIO Read More »

Build A Note App In Flask As Fast As It Can Get (Using Shopyo)

Shopyo is a framework to get started with Flask really quick. It includes several libraries to get started by default. In this tutorial we will build a simple app to get started with. We used it for FlaskCon 2021 [site, codebase]. First steps The first step is to install the library. python3.9 -m venv venv …

Build A Note App In Flask As Fast As It Can Get (Using Shopyo) Read More »

Notes of Get your resources faster, with importlib.resources by Barry Warsaw

Talk notes thepkg/ # is a package since has __init__.py __init__.py a.py b.py data/ sample.dat You need to get data files (templates, certifs etc) from your package You do import thepkg from pathlib import Path pkg = Path.(thepkg.__file__).parent path = pkg / ‘data’ / ‘sample.dat’ Problem as __file__ not necessarily a real file on system …

Notes of Get your resources faster, with importlib.resources by Barry Warsaw Read More »

How to Integrate Tinymce 5 with Flask (with csrf)

This article shows how to integrate Tinymce 5 with Flask even including csrf protection! Text area <textarea id=”content”></textarea> Tinymce <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.10.2/tinymce.min.js”></script> <script type=”text/javascript”> tinymce.init({ selector: ‘#content’, plugins: [ ‘advlist autolink link image imagetools lists charmap print preview hr anchor pagebreak spellchecker’, ‘searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking’, ‘save table contextmenu directionality …

How to Integrate Tinymce 5 with Flask (with csrf) Read More »

Python-efl Custom Elementary Widget

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-9-custom-elementary-widgets-020116/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.frame import Frame from efl.elementary.image import Image from efl.evas import EVAS_HINT_EXPAND, …

Python-efl Custom Elementary Widget Read More »

Python-efl Generic List

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/programming/blogs/pyefl-tutorial-8-genlist-120215/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass from elmextensions import StandardPopup ListItems = …

Python-efl Generic List Read More »

Python-efl Lists

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/pyefl-tutorial-7-lists-111115/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.list import List from elmextensions import StandardPopup from efl.evas import EVAS_HINT_EXPAND, …

Python-efl Lists Read More »

Python-efl Elm Extensions

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. To follow this tutorial, download/clone this repo and pip install it ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-6-elmextensions-110115/ ”’ ”’ extentions ”’ AUTHORS = “”” <br> <align=center> <hilight>Jeff …

Python-efl Elm Extensions Read More »

Python-efl Naviframe

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-5-naviframe-070115/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.image import Image from efl.elementary.label import Label from efl.elementary.button import Button …

Python-efl Naviframe Read More »

Python-efl Displaying Images

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-4-displaying-images-042415/ Needs one image called image.png ”’ import efl.elementary as elm from efl.elementary.image import Image from efl.elementary.label import Label from efl.elementary.window import …

Python-efl Displaying Images Read More »

Python-efl Align Hints

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-3-align-hints-041415/ ”’ import efl.elementary as elm from efl.elementary.box import Box from efl.elementary.button import Button from efl.elementary.window import StandardWindow from efl.evas import EVAS_HINT_EXPAND …

Python-efl Align Hints Read More »

Python-efl Weight Hints Callback

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. Callback demo ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-2-weight-hints-031215/ ”’ import efl.elementary as elm from efl.elementary.box import Box from efl.elementary.button import Button from efl.elementary.label import Label from efl.elementary.window …

Python-efl Weight Hints Callback Read More »