Epython Lab
6.44K subscribers
660 photos
31 videos
104 files
1.22K links
Welcome to Epython Lab, where you can get resources to learn, one-on-one trainings on machine learning, business analytics, and Python, and solutions for business problems.

Buy ads: https://telega.io/c/epythonlab
Download Telegram
What is WSGI?

WSGI stands for Web server Gate way interface that is a simple calling convention for web servers to forward requests to web applications or frameworks written in the Python programming language.

#keynote #python #webapp
Python Basics: A Practical Introduction to Python 3 - Real Python

📖 Book

@epythonlab #pythonbooks
Reproducible_Bioinformatics_with_Python_by_Ken_Youens_Clark_Ken.pdf
6.2 MB
How to write flexible, documented, tested Python code for Research computing

Reproducible Bioinformatics with Python - 2021


@epythonlab #pythonbooks #bioinformatics
SQLAlchemy Database Migrations for Flask Applications using Alembic

Code: https://github.com/miguelgrinberg/Flask-Migrate

https://morioh.com/p/9bcd13dbee9f

@epythonlab #article
Auto joining and messaging telegram groups.
💻 Code Better with Type Hints

Explicit is better than implicit. The zen of Python.

https://pybit.es/articles/code-better-with-type-hints-part-1/

@epythonlab #article
Epython Lab
Photo
This is a log message that stores incoming message in the log file.
Forwarded from Epython Lab (Asibeh Tenager)
#CODE_CHALLENGE #PYTHON_LIST #LOOPS #FUNCTIONS

1. Write a function called delete_starting_evens() that has a parameter named lst.

The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst.

For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15].

Make sure your function works even if every element in the list is even!

POST YOUR SOLUTION @PYTHONETHBOT
Forwarded from Epython Lab
Compilers and interpreters are programs that help convert the high level language (Source Code) into machine codes to be understood by the computers. Computer programs are usually written on high level languages. A high level language is one that can be understood by humans.

However, computers cannot understand high level languages as we humans do. They can only understand the programs that are developed in binary systems known as a machine code. To start with, a computer program is usually written in high level language described as a source code. These source codes must be converted into machine language and here comes the role of compilers and interpreters.

Differences between Interpreter and Compiler

!. Interpreter translates just one statement of the program at a time into machine code where as Compiler scans the entire program and translates the whole of it into machine code at once.

2. An interpreter takes very less time to analyze the source code. However, the overall time to execute the process is much slower. A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster.

3. An interpreter does not generate an intermediary code. Hence, an interpreter is highly efficient in terms of its memory. A compiler always generates an intermediary object code. It will need further linking. Hence more memory is needed.

4. Keeps translating the program continuously till the first error is confronted. If any error is spotted, it stops working and hence debugging becomes easy. A compiler generates the error message only after it scans the complete program and hence debugging is relatively harder while working with a compiler.

5. Interpreters are used by programming languages like Ruby and Python for example. Compliers are used by programming languages like C and C++ for example.
🔝 Write an SQL query builder in 150 lines of Python!

https://death.andgravity.com/query-builder-how

Join @epythonlab for information #sql #article #python #code
This video shows the demo of how to read list of telegram groups links and auto joining and sending message to each group from the list.
Functions:
1. It will jump if there is found that the channel is private or you are banned from it
2. It will jump if you are restricted to write message
3. reading list of links from the file etc.
https://youtu.be/RER4vFGvzf0

Join @epythonlab
Telegram scraper and adder

The adder script doing the following jobs:
1. Reading credentials from txt file
2. Reading message from txt and send to telegram group randomly when 20 members are added
3. Reading csv file that contains members profile and adding to the target group
4. Once added the first 20-50 members, the file will be deleted automatically and start adding members from another file automatically(Here you can stop the script and change the credentials and run again to add members from another file)
5. Report how many members are added

The scraper doing the following:
1. reading credentials from txt file(you have the opportunity to modify the credentials)
2. scraping members from the selected group
3. Save the members into separate files(50 members in one file)
4. Excluding bots
5. Scraping active users only.
Join @epythonlab
cpython-internals.pdf
11 MB
CPython Internals: Your Guide to the Python 3 Interpreter

@epythonlab #pythonbooks