WebTg - Web Telegram

#ID: deliciouspy

Your daily dose of Python tutorials, tips and tricks. Get help on your projects!

View In Telegram

#deliciouspy-414
                    Websockets in Django by default

https://jaydenwindle.com/writing/django-websockets-zero-dependencies/
                
#deliciouspy-413
                    [#PacktPub] Mastering Python Regular Expressions
                
#deliciouspy-412
                    What is an ORM?

ORM stands for Object Relational Mapper. It allows you to create and manage your databases easily using models.


A typical model in SQLalchemy might be like that:


 Article(Base):
    __tablename__ = 'articles'

    id = Column(Integer, primary_key=True)
    title = Column(String)
    author = Column(String)
The advantages are:

- You don't have to use SQL codes
- You don't have to create the table
- Easy CRUD operations.


Adding a record is as easy as

record = Article(title="Religion And Civilisation", author="A. True Scholar")
session.add(record)
other queries demo:

session.query(Task).filter(record.id == some_id).first()
session.query(Task).like(search).all()

To Note:

- You might still need SQL for complex operations
- Change in models require the change to propagate. This is achieved using migrations which we'll cover later on.
                
#deliciouspy-411
                    FREE Python books

And they are 100% legal:

https://www.pythonmembers.club/2020/01/29/legally-free-python-books-list/
                
#deliciouspy-410
                    The answer is True. 

I was surprised by the number of correct answers. 84% got it right.

Normally in Object Oriented Programming, classes have attributes and methods. But in Python since everything is an object, even functions, they too can have attributes and methods. This is further illustrated in the article below:

https://dev.to/abdurrahmaanj/using-python-functions-as-classes-10j0
                
#deliciouspy-407
                    Our Channel has been approved!

https://telegramchannels.me/channels/deliciouspy
                
#deliciouspy-406
                    Python advices:

A friend gives daily advices:
@iamluminousmen
                
#deliciouspy-405
                    Above i really recommend:

Advanced Algorithmics and Graph Theory with Python

It starts graph theory from the basics and goes at a speed you would understand. I'm going out of my way of messaging on this channel to tell you this. 

It assumes you know only basic programming. It's the course of a lifetime. I read many books etc, but i appreciated this course much. Take it guys, it's one of the best investments you'll ever make.

And of course, it's free
                
#deliciouspy-404
                    FREE Python courses

A hand-picked collection! Enjoy!

👉 take me

courteously yours,
@deliciouspy
                
#deliciouspy-403
                    courteously yours,
The py channel where you can expect the unexpected
@deliciouspy
                
#deliciouspy-401
                    Craving For A Bite
Alone, face to screen with the PC, you covet new tutos


By now you've pretty much seen everything about the Python country side. Rotating your phone some 10° you might be asking: What i am learning Python for? It's just a hobby most probably or i'm just curious you might think. Well, thoughts remain thoughts, high up in the sky ☁️. We need actions. We decided today to help end worldwide hunger 🥦 and plant more trees 🌳. We decided to help YOU make that possible.

👉 show me how

courteously yours,
The py channel where you can expect the unexpected
@deliciouspy
                
#deliciouspy-400
                    The hell of a read: How Python deals with suuuuuuper long integers

https://www.codementor.io/@arpitbhayani/how-python-implements-super-long-integers-12icwon5vk

@deliciouspy
                
#deliciouspy-399
                    How are dictionaries built?

Brandon Rhodes explains how dictionaries are built including why they seemingly print in random order but are not so.

📹 https://youtu.be/oMyy4Sm0uBs

For Python tutos and tips, follow
@deliciouspy
                
#deliciouspy-398
                    Django Tutorial by Mozilla !!!

Django has become one of the most popular back end technologies. Follow this tutorial by the more than famous Js reference company: Mozilla

🧤 https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django

Boost your learning
@deliciouspy
                
#deliciouspy-397
                    Predicting Earthquakes With Python

Someone living within the premises of earthquakes decided to use Python to predict them

🧤 https://towardsdatascience.com/earthquake-prediction-faffd7160f98

@deliciouspy
                
#deliciouspy-396
                    Download Manager With Python

If you want a cool project to get your hands dirty in Python, this project should help you get started:

https://github.com/pyIDM/pyIDM

Suggesting that you 

❤️ try to plan a basic download manager
❤️ get it to work
❤️ add additional features

In case you get stuck on developing certain features, you can always refer to the project.

Technical side, parallel downloads makes it a huge win to implement 💥

@deliciouspy