Fadak.IR Fadak Solutions
English Русский العربية فارسی
Articles Management Studies Language


/ Coumputer / Programming

Python & Frameworks


   How install python
         pip
         Jupyter
         Classic Jupyter Notebook
   Flask Vs Django
   Python Data Types
   PIP - package management system
      Data science &  Data Analysis
      Machine learning (ML) & DSS
      Artificial (AI) & Deep Learning(DL) & Keras
      Pandas
      Python Web Frameworks to Learn in 2019 - Django
      Editors
      Python
      tkinter
      Comparing the contents of two directories
   Other
   Arabic - Persian
   Events and Binds
      TreeView
   Get a binary from a .py file
   File Manager
   BitLocker Encryption
      Other
      Python & D3.js
      Other

How install python

https://www.python.org/downloads/

pip

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python get-pip.py

Jupyter

pip install jupyterlab

jupyter lab

Classic Jupyter Notebook

Install the classic Jupyter Notebook with:

pip install notebook

jupyter notebook

Flask Vs Django

Flask Vs Django: Which Python Framework to Choose? - InterviewBit

Django vs. Flask: Which Python Framework To Choose in 2023? | Trio Developers

آموزش پایتون - راهنمای کامل python برای مبتدیان - پارس‌پک

‏API ابر آروان | ابر آروان‏

‏خرید فضای ابری ایرانی، فضای ذخیره سازی ابری، فضای ابری رایگان | ابر آروان‏

حمایت از لینوکس - پارس‌پک

Python Data Types

Example Type Size (bytes) نوع
x = "Hello World" str   رشته‌ای
x = 20 int 1-4 عدد
x = 20.5 float 4-8 اعشاری
x = 1j complex 8-32 مختلط
x = ["apple", "banana", "cherry"] list   فهرست
x = ("apple", "banana", "cherry") tuple   چندتایی
x = range(6) range   دامنه
x = {"name" : "John", "age" : 36} dict   واژه‌نامه
x = {"apple", "banana", "cherry"} set    
x = frozenset({"apple", "banana", "cherry"}) frozenset    
x = True bool 1  
x = b"Hello" bytes    
x = bytearray(5) bytearray    
x = memoryview(bytes(5)) memoryview    

type() method returns class type of the argument(object) passed as parameter, ex.

type(x)

Implicit Type Conversion / Explicit Type Conversion, ex.

int(20) # convert

To verify a particular value's data type, ex.

a = 1+2j
print(a, "is complex number?", isinstance(a,complex))

 

import sys
print sys.getsizeof(5)
OUTPUT
24
print sys.getsizeof([1, 2, "c"])
OUTPUT
96

 

Advance:

an_int = 0
int_size = sys.getsizeof(an_int)
print(int_size, "bytes")
OUTPUT
24 bytes

a_string = "a_string"
string_size = sys.getsizeof(a_string)
print(string_size, "bytes")
OUTPUT
57 bytes

https://www.pytables.org/usersguide/datatypes.html

PIP - package management system

sudo apt install python3-pip

How to Install Pip on Debian 9 | Linuxize

Data science &  Data Analysis

Data-analysis-with-python-spring-2019

Data science Python notebooks

Machine learning (ML) & DSS

Machine learning — Dataiku DSS 9.0 documentation

Artificial (AI) & Deep Learning(DL) & Keras

Machine learning methods based on artificial neural networks

pip3 install keras

Video about sentiment-analysis-through-deep-learning

Python Examples of keras.optimizers.Adam

How to use a model to do predictions with Keras | ActiveState

LSTM Networks

How to solve Multi-Class Classification Problems in Deep Learning with Tensorflow & Keras? | by Murat Karakaya | Deep Learning Tutorials with Keras | Medium

python - How to validate a prediction in Keras - Stack Overflow

python - How to solve ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`? - Stack Overflow

ویدیو جلسه ۱ - آموزش مقدماتی Python - Installing Python - مکتب خونه

پروژه یادگیری عمیق در پایتون با Keras به صورت گام به گام - مجله شهاب

Installing on Linux — Anaconda documentation

python - How to validate a prediction in Keras - Stack Overflow

LSTM Networks

Training & evaluation with the built-in methods

goodboychan.github.io

Deep_Learning_1__Sequential_models

drc_v0.py · GitHub

2020-07-21-04-Fine-tuning-keras-models.ipynb - Colaboratory

Pandas

pip3 install pandas

import pandas as pd
dbll=pd.read_csv('~/Paper_New/test1.csv')
xls=pd.ExcelFile("/users/E1son/Desktop/TESE/PEST/01P/wgidataset_v0.x18x")
dbll.info

python - ImportError: No module named pandas - Stack Overflow

pandas.DataFrame.to_numpy — pandas 1.2.4 documentation

pandas.read_csv — pandas 1.2.4 documentation

Python Web Frameworks to Learn in 2019 - Django

 

 

Editors

Spyder Website

PEP 8 - Style Guide for Python Code

Python

Python.org

Project Jupyter

Top 11 Python Frameworks in 2018

auto-py-to-exe · PyPI

mahdi_module.py
def show(ff):
print('Print show',ff)

 

a = float(input("inter add"))
if a > 1:
print("very good")
else:
print ("goog")
print("ddddd")

for mahdi in range(1,10):
print(mahdi)
while mahdi<20:
mahdi = mahdi+1
def function_say_hello(ff):
print('Print',ff)
for i in ['dog','jadi dogi', 'dog jadi']:
function_say_hello(i)

# Way one
import mahdi_module
mahdi_module.show(a)

# Way two
from mahdi_module import *
show(a)

# Way three
from mahdi_module import show
show(a)

GTK

Python Examples of gi.repository.Gdk.Event

8. Entry — Python GTK+ 3 Tutorial 3.4 documentation

tkinter

Create GUI in python

from tkinter import *

root = Tk()
Label(root, text='Hello, Tkinter').pack()
root.mainloop()

from tkinter import *
root = Tk()
root.geometry('300x300')
root.title("First Tkinter Window")
root.mainloop()

from tkinter import *
root = Tk()
w = Label(root, text="It comes as standard with Python")
w.pack()
root.mainloop()

python - How to get tkinter canvas to dynamically resize to window width? - Stack Overflow

python - How to get tkinter canvas to dynamically resize to window width? - Stack Overflow

[Tkinter-discuss] getting width of a Frame

tkinter.ttk — Tk themed widgets — Python 3.9.1rc1 documentation

Python - GUI Programming (Tkinter) - Tutorialspoint

List of ttk Themes

How to Change Tkinter Theme from One to Another

python - List of All Tkinter Events - Stack Overflow

Comparing the contents of two directories

command line - Comparing the contents of two directories - Ask Ubuntu

filename - Keyboard Shortcut to Rename File in GUI (Other Than F2) - Ask Ubuntu

Other

macos - Running a Python script without opening Terminal - Stack Overflow

compiling - How to compile a python file? - Ask Ubuntu

python - Exception in Tkinter callback Traceback (most recent call last): - Stack Overflow

shell - sudo with password in one command line? - Super User

Python Execute Unix / Linux Command Examples - nixCraft

4 Useful Way to Know Plugged USB Device Name in Linux

 

Reading and Writing CSV Files in Python – Real Python

Writing array to csv python (one column) - Stack Overflow

Python Arrays - Create, Update, Remove, Index and Slice

TextBox

Python for Beginners: Reading & Manipulating CSV Files

Arabic - Persian

HOWTO: Working with Python, Unicode, and Arabic | Spence Green

Python 3 print() function with Farsi/Arabic characters - Stack Overflow

how to print Arabic text correctly in PYTHON - Stack Overflow

Events and Binds

Event Description
A mouse button is pressed with the mouse pointer over the widget. The detail part specifies which button, e.g. The left mouse button is defined by the event , the middle button by , and the rightmost mouse button by .
defines the scroll up event on mice with wheel support and and the scroll down.
If you press down a mouse button over a widget and keep it pressed, Tkinter will automatically "grab" the mouse pointer. Further mouse events like Motion and Release events will be sent to the current widget, even if the mouse is moved outside the current widget. The current position, relative to the widget, of the mouse pointer is provided in the x and y members of the event object passed to the callback. You can use ButtonPress instead of Button, or even leave it out completely: , , and <1> are all synonyms.
The mouse is moved with a mouse button being held down. To specify the left, middle or right mouse button use , and respectively. The current position of the mouse pointer is provided in the x and y members of the event object passed to the callback, i.e. event.x, event.y
Event, if a button is released. To specify the left, middle or right mouse button use , , and respectively. The current position of the mouse pointer is provided in the x and y members of the event object passed to the callback, i.e. event.x, event.y
Similar to the Button event, see above, but the button is double clicked instead of a single click. To specify the left, middle or right mouse button use , , and respectively.
You can use Double or Triple as prefixes. Note that if you bind to both a single click () and a double click (), both bindings will be called.
The mouse pointer entered the widget.
Attention: This doesn't mean that the user pressed the Enter key!. is used for this purpose.
The mouse pointer left the widget.
Keyboard focus was moved to this widget, or to a child of this widget.
Keyboard focus was moved from this widget to another widget.
The user pressed the Enter key. You can bind to virtually all keys on the keyboard: The special keys are Cancel (the Break key), BackSpace, Tab, Return(the Enter key), Shift_L (any Shift key), Control_L (any Control key), Alt_L (any Alt key), Pause, Caps_Lock, Escape, Prior (Page Up), Next (Page Down), End, Home, Left, Up, Right, Down, Print, Insert, Delete, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Num_Lock, and Scroll_Lock.
The user pressed any key. The key is provided in the char member of the event object passed to the callback (this is an empty string for special keys).
a The user typed an "a" key. Most printable characters can be used as is. The exceptions are space () and less than (). Note that 1 is a keyboard binding, while <1> is a button binding.
The user pressed the Up arrow, while holding the Shift key pressed. You can use prefixes like Alt, Shift, and Control.
The size of the widget changed. The new size is provided in the width and height attributes of the event object passed to the callback. On some platforms, it can mean that the location changed.

GitHub - telegramdesktop/tdesktop: Telegram Desktop messaging app

13. Tree and List Widgets — Python GTK+ 3 Tutorial 3.4 documentation

html5print · PyPI

TreeView

Python Examples of gtk.FileChooserDialog

file-search · GitHub Topics · GitHub

treeview - Creating a simple file browser using python and gtkTreeView - Stack Overflow

19. Popovers — Python GTK+ 3 Tutorial 3.4 documentation

Python Examples of gtk.TreeView

13. Tree and List Widgets — Python GTK+ 3 Tutorial 3.4 documentation

Get a binary from a .py file

To install:
pip install pyinstaller
Then, go to your program’s directory and run:
pyinstaller yourprogram.py
This will generate the bundle in a subdirectory called dist.

How to create executable of your Python application for Linux / Windows / Mac | by Ganesh Chandrasekaran | Analytics Vidhya | Medium

Easy way to create a Debian package and local package repository - LinuxConfig.org

linux - How can I get a binary from a .py file - Unix & Linux Stack Exchange

File Manager

Search · GTK File Manager · GitHub

GitHub - Antracen/GTK-File-Manager

 

Nuitka Home

 

gtk3 - How to display a context menu on Gtk.TreeView right click? - Stack Overflow

python - Sort a column in a treeview by default or programmatically - Stack Overflow

Gtk.TextView - Classes - Gtk 3.0

BitLocker Encryption

Breaking BitLocker Encryption: Brute Forcing the Backdoor (Part I) | ElcomSoft blog

BitCracker
Elcomsoft Distributed Password Recovery
Elcomsoft Forensic Disk Decryptor
Passware Kit
Thegrideon BitLocker Password

Other

pelson (Phil Elson) · GitHub

Executing Javascript from Python - Stack Overflow

Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript

https://www.pythonforbeginners.com/dictionary/how-to-use-dictionaries-in-python/

PySimpleGUI: The Simple Way to Create a GUI With Python – Real Python

Python & D3.js

GitHub - areski/python-nvd3: Python Wrapper for NVD3 - It's time for beautiful charts

Combining python and d3.js to create dynamic visualization applications | by Kanishka Narayan | Towards Data Science

Other

Sequence Database: 1, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608


Articles
Digital Media
Humanities
IT Management
Coumputer
Miscellaneous
Product & Services
About Fadak
Management
Contemporary Management Journal
Managerial Verses
Photography Quotes
Photo is written
Management Researcher Bank
Management articles titles
Educational Resources (Seminary & University)
Studies
Observatory - Personalities
Observatory - Cultural
Observatory - Academic
Observatory - Media
Observatory - scientific events
Language
Dictionary
Russian Language Test
Russian Proverb
English Proverb
Four language sentences
logo-samandehi
About | Contact With Us | Privacy Policy | Terms | Cookies Policy |
Version (Pre-Alpha) 2000-2022 CMS Fadak. ||| Version : 5.2 ||| By: Fadak Solutions Old Version