WebTg - Web Telegram

#ID: deliciouspy

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

View In Telegram

                    Websockets in Django by default

                    [#PacktPub] Mastering Python Regular Expressions
                    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:

    __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")
other queries demo:

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

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.
                    FREE Python books

And they are 100% legal:

                    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:

                    Our Channel has been approved!

                    Python advices:

A friend gives daily advices:
                    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
                    FREE Python courses

A hand-picked collection! Enjoy!

👉 take me

courteously yours,
                    courteously yours,
The py channel where you can expect the unexpected
                    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
                    The hell of a read: How Python deals with suuuuuuper long integers


                    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
                    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
                    Predicting Earthquakes With Python

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

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

                    Download Manager With Python

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


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 💥