A somewhat curated list of links to various topics in application security.
Link | Excerpt | Word Count |
---|---|---|
Awesome Python | Inspired by awesome-php. Libraries for administrative interfaces. | 2319 |
Garbage collection in Python: things you need to know | This article describes garbage collection (GC) in Python 3.9. Usually, you do not need to worry about memory management. When objects (variables) are no longer needed, Python automatically reclaims memory from them. | 2091 |
Solve Real World Problems Using Python | Join 47575 Pythonistas and start coding ... Wether you aspire to become a web developer, data scientist, DevOps or cybersecurity engineer, good chance you will greatly benefit from being well versed in Python! | 1241 |
VIM and Python – A Match Made in Heaven | It has come to my attention that somebody ‘round these parts has been preaching the gospel of Sublime Text 3. As the resident senior developer (err, old fogey), I feel it’s my duty to tell you about the only TRUE Python development environment you will ever need: VIM. That’s right. | 2654 |
Python's Instance, Class, and Static Methods Demystified | Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: OOP Method Types in Python: @classmethod vs @staticmethod vs Instance Methods | 2171 |
Primer on Python Decorators | Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Python Decorators 101 In this tutorial on Python decorators, you’ll learn what they are and how to create and use them. | 8970 |
Python Docker Tutorials – Real Python | What Is Docker? Docker is a containerization tool used for spinning up isolated, reproducible application environments. It is a popular development tool for Python developers. | 79 |
Modern Functions in Python 3 | Python has thrived over the past few decades as the language which lets you work quickly and effectively. Like many modern companies, we use Python quite extensively for a majority of our stack, but in many cases, continue to live on Python 2.7. The harsh reality is that Python 2. | 1419 |
pikepdf/pikepdf | Python + qpdf = "py" + "qpdf" = "pyqpdf", which looks like a dyslexia test. Say it out loud, and it sounds like "pikepdf". For users who want to build from source, see installation. | 358 |
Python Concurrency Quiz | In this quiz you’ll review topics covered in the Speed Up Your Python Program With Concurrency tutorial. The quiz contains 8 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. | 51 |
Jupyter Notebook: An Introduction | Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Using Jupyter Notebooks | 2884 |
Pandas DataFrames 101 | Learn the basics of working with the Data Frame data structure in Pandas. We will touch on how to create new columns from existing data, delete unneeded data, how to import data from a CSV file, as well as a few examples of group-bys. We will be using basketball data from basketball-reference.com | 121 |
Python Concurrency & Parallel Programming | With this learning path you’ll gain a deep understanding of concurrency and parallel programming in Python. You can use these newfound skills to speed up CPU or IO-bound Python programs. Learn what concurrency means in Python and why you might want to use it. | 331 |
Your Guide to the CPython Source Code | Are there certain parts of Python that just seem magic? Like how are dictionaries so much faster than looping over a list to find an item. | 23442 |
Introduction to Git and GitHub for Python Developers | What is Git, what is GitHub, and what’s the difference? Learn the basics of Git and GitHub from the perspective of a Pythonista in this step-by-step video course. Paul studies ways to leverage technology to empower business and make life better. | 105 |
Create a Flask Application With Google Login | Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Using Google Login With Flask You’ve probably seen the option for Google Login on various websites. | 5136 |
Thonny: The Beginner-Friendly Python Editor (Overview) | Are you a Python beginner looking for a tool that can support your learning? This course is for you! Every programmer needs a place to write their code. This course will cover an awesome tool called Thonny that will enable you to start working with Python in a beginner-friendly environment. | 230 |
Swing in Python Burp Extensions - Part 1 | TL;DR: What I learned from creating handcrafted GUIs for Python Burp extensions using Swing. Code is at: In April 2019, I had just joined Electronic Arts and I wanted to make a Burp extension. I saw only tutorials on creating a GUI in Jython. | 2067 |
Python Lambda Functions Quiz | Python lambdas are little, anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions. Test your understanding on how you can use them better! Take this quiz after reading our How to Use Python Lambda Functions tutorial. | 76 |
Implementing an Interface in Python | Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Python Interfaces: Object-Oriented Design Principles Interfaces play an important role in software engineering. | 3413 |
geophile/marcel | You can assign the value of a Python expression to a variable, e.g. assigns 11 to the variable x. The RHS, (5 + 6) is shorthand for (lambda: 5 + 6). In other words, the function inside the parens is invoked, and the resulting value is assigned. | 1506 |
adbar/trafilatura | Trafilatura is a cutting-edge Python package and command-line tool designed to gather text on the Web and simplify the process of turning raw HTML into structured, meaningful data. | 909 |
Python mmap: Improved File I/O With Memory Mapping | Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Python mmap: Doing File I/O With Memory Mapping The Zen of Python has a lot of wisdom to offer. | 4238 |
Start Using Annotations In Your Python Code | This article gives you detailed information on what function and type annotation are with real life examples and use cases. | 0 |
Filters in Django – filter(A, B) vs filter(A).filter(B) | In this article, we’re going to cover quite an advanced topic in Django ORM. And after reading the article, you’re going to understand how Django ORM works a little bit better, especially how it handles joins. Now, let’s play a little bit with Django ORM and let’s use the filter method. | 1366 |
Deep Dive Into Flask Guide | This article looks at Flask 2.0's new async functionality and how to leverage it in your Flask projects. | 23 |
Operator Overloading in Python | <center> Operator Overloading in Python === *Written by [Alejandro](https://twitter.com/asanchezyali). Published 2021-06-15 on the [Monadical blog](https://monadical.com/blog.html). | 1405 |
Use Exceptions To Write Better Python Programs | Exceptions are usually raised when a program encounters an unexpected error. For example, if you divide by zero, or if you pass a string to a function that needed a number. But what are exceptions exactly? They are just objects, and they are all subclasses of the general Exceptionclass. | 1227 |
Top Python Tricks That Will Boost Your Skills | Python is my favorite language from the start of my programming career. I always try to find shorthands and tricks to boost my skills and save time. I ended up searching on different tech forums and websites like StackOverflow and medium. | 184 |
Python 101 – How to Generate a PDF | The Portable Document Format (PDF) is a very popular way to share documents across multiple platforms. The goal of the PDF is to create a document that will look the same on multiple platforms and that will print the same (or very similar) on various printers. | 2850 |
RegEx in Python: Introduction and The use of Backslash | Lets say, you have sorted out the ways an email address can be written and also you have a list of thousands of email addresses which may or may not be valid. | 844 |
https://towardsdatascience.com/intro-to-webhooks-and-how-to-receive-them-with-python-d5f6dd634476 | 0 | |
Introduction To Python's Functools Module | The functools module is part of Python's standard library and was implemented for higher-order functions. A higher-order function is a function that acts on or returns another function or multiple functions. | 3036 |
Best version of python: now can beat all languages | The idea is to bring another update in python that will make it faster than all languages. Another version of python will also include efficient memory consumption, fast in mobile devices & easy to access database. | 883 |
Heap in Python: Min & Max Heap Implementation (with code) | Python is versatile with a wide range of data structures. One such is the heap. While they are not as commonly used, they can be incredibly useful in certain scenarios. In this article, we will learn what a heap is in Python. | 1611 |
Run Your Python Code as Quickly as C++ | It is critical for my profession as an AI researcher to quickly code up a concept to check if it works or not. Python is a fantastic tool for doing precisely that. It helps you to concentrate on the concept rather than on boilerplate code and other boring tasks. | 854 |
Callable Protocol in Python | One of the great strengths of Python is the expressive power it contains through its protocols. Have you ever come across a new class that allows its instances to be called like a function and at the same time have other functionalities that are not standard for “function” objects? | 1105 |
A Python project template | Creating a Python project is tiresome work. There are numerous repeated steps as creating setup.py, configuring MyPy, Pytests, and automating other stuff. Usually, you copy-paste everything from the previous project, modify it a little bit and make it work for the new project. | 885 |
Context Managers | Context managers are an incredibly useful tool in Python. They allow you to create a block of code with defined variables that are defined in the block declaration. | 485 |
Knowing These Python Techniques Helped me in 2022 | Python-like all other programming language is easier if we learn the Pythonic ways to do stuff. I have listed 10 Python techniques that a Python Developer should know. Let’s get started — | 214 |
Class in Python : All you need to know | Today, we gonna introduce a fundamental principe in python: class. Class is everywhere, and almost all in python is a class, but first, we might take a look of what python is. Python is a high level language and an OOP language, an oriented object programming language. | 926 |
https://towardsdev.com/4-ways-to-annoy-your-colleagues-with-your-python-code-3d365c745d9b | 0 | |
How to Convert HTML to PDF in Python | Before we get started, have you tried our new Python Code Assistant? It's like having an expert coder at your fingertips. Check it out! There are a lot of online tools that provide converting HTML to PDF documents, and most of them are free. | 966 |
https://towardsdev.com/multithreaded-http-requests-in-python-453f07db98e1 | 0 | |
yield from | We now know what a generator is, how to send values to a generator, and how to close a generator. This article is looking at how we can have two-way communications using caller, sub-generator using yield from , yield and send. We know how we can generate and consume values. For eg. | 442 |
https://medium.com/geekculture/an-introduction-to-asyncio-in-python-5d3e19a02263 | 0 | |
https://link.medium.com/sITiYXVzKob | 0 | |
The single most useful Python Decorator @cache | Python is well known for its simplicity and many resources that can help you. Not only do we have many different resources in our community but we also have a lot of helpful resources inside Python standard libraries. | 210 |
https://betterprogramming.pub/sharing-code-using-a-setup-py-b6a596646532 | 0 | |
Automate WhatsApp Messages with Python in 3 Steps | Python is probably one of the coolest languages. And this fascinating about it is that you can automate day-to-day tasks. One of such tasks we do every day is sending messages on WhatsApp. | 506 |
https://medium.com/@heisrotich/functional-programming-in-python-ef0a04669941 | 0 | |
Fake webcam for your online meetings, with Python | Picture this. You’re in an online meeting, and for one reason or another you don’t really feel like putting your webcam on. But you see that everybody else has it on. | 1450 |
https://aabidalisofi.medium.com/how-and-when-to-use-slots-in-python-ac1ca167f2d | 0 | |
https://betterprogramming.pub/this-is-why-you-should-use-tortoise-orm-in-your-python-projects-a3897dc5309e | 0 | |
Avaiga/taipy | Turns Data and AI algorithms into production-ready web applications in no time. - Avaiga/taipy | 0 |
Python mmap: Doing File I/O With Memory Mapping | The Zen of Python has a lot of wisdom to offer. One especially useful idea is that “There should be one—and preferably only one—obvious way to do it.” Yet there are multiple ways to do most things in Python, and often for good reason. | 236 |
Getting Started Remote Debugging Python Apps in PyCharm | Python really needs no introduction, but Google’s search algorithms demand it. Python is essential for its versatility and low barrier of entry for new users. | 1641 |
The Impossible Web Scraping | To do data science we need data, of course. But getting the data is not always an easy task. One way data scientists get data is through web scraping, which is the process of extracting data from a webpage. But some websites seem impossible to scrape, until we find a way to do it. | 1382 |
microsoft/picologging | Warning This project is in beta. There are some incomplete features (see Limitations). Picologging is a high-performance logging library for Python. picologging is 4-17x faster than the logging module in the standard library. | 621 |
https://blog.devgenius.io/python-best-practices-for-writing-functions-b56a86d43fb6 | 0 | |
https://aabidalisofi.medium.com/4-books-that-will-make-you-a-python-ninja-943fe882249f | 0 | |
5 Killer Python Scripts to Automate Your Problems | Did you ever think about automating your daily routine task like Excel work, Creating Qr images of links, extract valuable data from PDF? Well in this article I present you with 5 killer Python scripts for automation. So sit back and let's get started. | 163 |
Python Multiprocessing: The Complete Guide | Python Multiprocessing provides parallelism in Python with processes. The multiprocessing API uses process-based concurrency and is the preferred way to implement parallelism in Python. With multiprocessing, we can use all CPU cores on one system, whilst avoiding Global Interpreter Lock. | 20136 |
Docstrings in Python | Let's talk about docstrings in Python. We wrote that message when we defined this function. | 946 |
Python Best Practices | Best practices for writing better code in Python. This blog will help the beginners in python to write efficient and neat code. Even if you are an intermediate level programmer in python, I do recommend you to go through this blog you may find some new tricks and tips. | 909 |
Python Stacks, Queues, and Priority Queues in Practice | Queues are the backbone of numerous algorithms found in games, artificial intelligence, satellite navigation, and task scheduling. They’re among the top abstract data types that computer science students learn early in their education. | 21001 |
Memory Management in Python | Memory management is the process of efficiently managing computer memory (RAM). It involves allocating a piece of memory at run-time to the program when the program requests it and freeing the allocated memory for re-use when the program no longer needs it. | 273 |
https://medium.com/@bobbykboseoffice/deep-dive-into-lambda-functions-in-python-b6955aca4232 | 0 | |
https://medium.com/@richestsoft/python-web-development-framework-in-2022-74361934fb8e | 0 | |
https://pythonians.medium.com/i-made-a-python-bot-to-send-good-night-texts-to-my-gf-7c290273a01a | 0 | |
https://python.plainenglish.io/7-things-i-knew-about-python-only-after-5-years-83408647d05c | 0 | |
Cleaner Python Code with Partials | I’ve been spending a lot of time lately trying to be lazy. It’s become my mantra as a data scientist: How can I do less work? In my quest for slacker nirvana I’ve discovered the concept of partial functions in Python. | 594 |
https://d-hanshew.medium.com/python-requests-library-caused-a-production-outage-fe6299eae519 | 0 | |
https://medium.com/python-point/python-10-common-beginner-mistakes-c786a3ac12b5 | 0 | |
Python With An Asterisk | Python is a popular programming language, used in a variety of applications, from data science to web development. It has many nice features, it’s easy to learn, and you can create a nice application with just a couple of lines. | 155 |
https://python.plainenglish.io/7-pip-commands-python-that-make-your-life-easier-e800edde1cec | 0 | |
https://medium.com/mlearning-ai/best-code-editors-and-ide-for-python-developers-d908e5f46b5a | 0 | |
Mastering Python Development: Essential Guidelines and Best Practices. | Being able to write aesthetic, readable, reusable, and structured code is vital in the field of software engineering. An unstructured, unreadable and unoptimized code is difficult to debug and is not accepted for deployment. | 1900 |
DATETIME IN PYTHON | Datetime is a library provided in python programming to access date and time. Generally datetime is denoted yyyy-mm-dd hh:mm:ss. There are two ways to call it: The difference in how to call the datetime above can be seen from the form of the datetime function call. | 1226 |
5 Python Features That Has Made Me Less Miserable | Don’t get me wrong — programming in Python is fun (more than other languages in my opinion). But certain aspects will probably be quite frustrating/annoying if these features didn’t exist. | 166 |
https://medium.com/@ascoolarobban/whip-up-a-stunning-dashboard-with-python-streamlit-c9dd8c224367 | 0 | |
https://medium.com/geekculture/top-ides-for-python-in-2022-19cfbf2d6c57 | 0 | |
Four Tricks In Python You Don’t Know | but what about if we want to get a list of the max numbers? this is the purpose of this article. let us keep goinig a little to see how to do it. | 458 |
4 Python Questions Not Many Can Solve In One Line Of Code | Here are 4 questions that are usually easy to solve under normal circumstances, but get pretty difficult once we try to solve them in only one line of code. Note — I’ve tested them out before, and all 4 are definitely solvable in one line of code (just not easy). Good luck! | 183 |
https://medium.com/@patirishavnath/python-features-that-i-was-unaware-even-existed-8465a50a6378 | 0 | |
Python : My Favorite Python Tricks for LeetCode Questions | I've been spending a lot of time practicing on LeetCode recently, so I thought I'd share some of my favorite intermediate-level Python trick... | 0 |
https://python.plainenglish.io/10-python-scripts-to-automate-your-daily-stuff-e52a3d47fedf | 0 | |
https://python.plainenglish.io/7-useful-python-libraries-you-should-use-in-your-next-project-a18e45a4bb0d | 0 | |
10 Python Scripts For Automating Your Everyday Problems | Automating your everyday tasks is an awesome way to save most of your time from doing them manually. Imagine the tasks you do manually like fetching movies from IMDB, editing PDF files, reading daily headlines, and many more. | 172 |
These tools boost my development productivity while using my Mac, maybe it will help you too | Maccy is a simple yet essential tool for me. It is a clipboard manager that helps manage my copy and paste. I often do API testing in various environments, local, dev, and production. When it comes to API, copying and pasting the bearer token wasn’t the most pleasant thing to do. | 193 |
https://medium.com/ntust-aivc/advanced-syntax-of-class-in-python-635db6b423ef | 0 | |
https://python.plainenglish.io/6-more-things-i-didnt-know-about-python-until-recently-e6f6415235ba | 0 | |
7 Useful Python Libraries You Should Use in Your Next Project | Why write custom functionality when a library can do it for you? Libraries are the best friends and life savors of developers. In my opinion, a good project makes use of some of the best libraries available. | 144 |
How to Create Callable Objects in Python: Python OOP Complete Course | Have you ever tried to call your class objects?? When you write your Python code, you can usually call your predefined functions and methods, but not your class objects. | 169 |
https://medium.com/@sunilrana123/python-init-vs-new-c639b03423c0 | 0 | |
Improve Python Class Performance with “__slots__" | When we create an object from a class, the attributes of the object will be stored in a dictionary called __dict__. We use this dictionary to get and set attributes. It allows us to dynamically create new attributes after the creation of the object. Let’s create a simple class InventoryItem. | 198 |
How to Protect Text Input from XML External Entity (XXE) Attacks using Python | Effective XML External Entity attacks look to interfere with your application’s processing of serialized data. Without a countermeasure to check XML text strings, such attacks can infect files and wreak havoc on your system internally. | 316 |
I finally found the best note taking app after trying multiple apps within the past year | Before I begin this article I want to say that in the past couple of months I have been switching apps every now and then with the hopes to find the best note-taking app. While trying these different apps I found out that within each of the app there was something that I was missing. | 242 |
https://python.plainenglish.io/10-killer-automation-scripts-for-your-daily-problems-8bd8afce4566 | 0 | |
https://medium.com/@KhalilAfridii/a-guid-to-python-libraries-for-pentesters-ethical-hackers-and-system-administrators-918b5302f016 | 0 | |
4 smart ways to write Python program | Do you want to print “Hello World” without using print statement? Do you want to give multiple inputs in single line? | 195 |
Two Tips With Coding In Python Changed My Life | Mohammad Al Jadallah·Follow--4ListenShareEvery day we want to know more about python to develop our knowledge until we reach the professional stage and I am sure there are a lot of things in python we didn’t see ever but this is not a drawback in our brain, this is what makes us learn and search | 499 |
Understanding async Python for the web | Recently Django 4.1 was released, and the thing most people seem interested in is the expanded async support. Meanwhile, for the last couple years the Python web ecosystem as a whole has been seeing new frameworks pop up which are fully async, or support going fully async, from the start. | 4076 |
https://parfeniukink.medium.com/python-generators-when-to-use-59a96ec933ec | 0 | |
Python & Variables + Confusion About Memory Addresses | Variables like in the previous article are names that represent a value stored in memory. So if we have variable, alpha and “I am human” in memory address id1009 then alpha represents id1009 which contains “I am human”. So that’s simple. | 633 |
Python Web development in 2022: Which web frameworks are the most popular by Github stars? | TL;DR: Django is the most popular web framework with 65,687 stars. The second place is Flask with 60,217 and the newcomer is FastAPI with 44,121 on the third place. The above chart shows that Django is in the lead with over 5,000 Stars, but fastapi is grown strong. | 706 |
https://medium.com/@coder033/python-decorator-made-easy-d6be1b7240a3 | 0 | |
https://pythonians.medium.com/python-3-cheat-sheet-598b51371809 | 0 | |
A Practical 12-Week Course to Learn to Automate Stuff with Python | One of the coolest things you can do with Python is automating tasks. | 205 |
https://link.medium.com/IjckBt2PFsb | 0 | |
https://link.medium.com/L8xP8t6PFsb | 0 | |
I Made A Python Cheat Sheet for Data Structures and Algorithms (Useful for Leetcode) | Get a PDF of this sheet at the end of the article. If you’d like to see similar content consider following me to be updated with other such Cheat Sheets. | 1775 |
https://link.medium.com/iIv59odQFsb | 0 | |
https://link.medium.com/Fgjd8JgQFsb | 0 | |
https://link.medium.com/n6mvQhmQFsb | 0 | |
https://link.medium.com/sOrhO2uQFsb | 0 | |
Spice up your terminal with Rich | Ever thought of bringing whatever you see on the browser to your console? I felt the need for the same when I was working on my pet (truly pet :)) project WagginTails. I was not a UI/UX person as it requires a lot of patience and perseverance, hence I prefer to work on the middle layer. | 436 |
Python Simple HTTP Server With SSL Certificate (Encrypted Traffic) | The simple HTTP server is a feature from python that allows us to create an HTTP server in a simple way. In another way, usually, hackers or penetration testers use this method to transfer files between the attacker machine (Kali Linux) to the victim machine. | 490 |
Python Multiprocessing Pool: The Complete Guide | The Python Multiprocessing Pool provides reusable worker processes in Python. The Pool is a lesser-known class that is a part of the Python standard library. | 20776 |
10 Python Scripts for Automating Your Daily Problems | The repetitive task is always boring and time-consuming but why not make them automated with your favorite programming language? Think of tasks like sending and Fetching Emails, checking spells and grammar, and much more. | 173 |
Web Scraping With Python For Beginners: How To Get Started | Web scraping is the process of using programming tools to extract data from a website. | 3254 |
Pygoat | The purpose is to give both developers and testers a platform for learning how to test applications and how to code securely. PyGoat is written in python and used Django web framework as a platform. It has both traditional web application vulnerabilities (i.e. XSS, SQLi) as well. | 100 |
https://pythonians.medium.com/13-advanced-python-scripts-for-everyday-programming-8de4c6dba476 | 0 | |
https://pknerd.medium.com/getting-started-with-rocksdb-and-python-96082bd72354 | 0 | |
Implementing a domain-specific language in Python with a few simple techniques. | 0 | |
Having trouble using iterators in Python? Here's a quick guide on iterators and when you should consider using them. | # Python iterators # Python iterators are objects that allow us to iterate over a sequence of values. They are an essential part of many common Pyt | 662 |
Context Managers and Python's with Statement | The with statement in Python is a quite useful tool for properly managing external resources in your programs. | 202 |
Python Basics: File System Operations | So far, you’ve written programs that get their input from one of two sources: the user or the program itself. Program output has been limited to displaying some text in IDLE’s interactive window. This is where files come in. You’ve likely been working with computer files for a long time. | 312 |
https://systemweakness.com/creating-an-advanced-network-packet-sniffer-in-python-a-step-by-step-guide-d6f3ceae36d4 | 0 | |
https://systemweakness.com/build-an-arp-spoofer-from-scratch-1d9d3cc9483 | 0 | |
Building a vulnerability scanner using python | Vulnerability scanning is a crucial aspect of maintaining the security of computer systems and networks. It is the process of identifying and analyzing the security weaknesses and vulnerabilities present in a network or computer system. | 1409 |
So many interesting, fun, and powerful Python libraries | Python is a concise, readable, and extensible language, and is widely used for research both domestically and abroad. Python is known for its rich third-party libraries. It is too difficult for one person to find so many interesting, fun, and powerful libraries. | 1538 |
Profiling and Multiprocessing in Python | Before optimizing your code, it’s crucial to spot the bottlenecks slowing you down. Let’s say your app can be broken down into two parts: A and B. They don’t necessarily require the same computation time, either because they do different things or process different inputs. | 174 |
4 SSH Alternatives That Are Better Than The Original | We’ve all had to use SSH at some point in our lives as developers. Whether it’s connecting to a development machine, pushing code or managing remote equipment. SSH has a sacred place in our hearts. Sadly, there haven’t been a ton of features added to it over the years. | 208 |
Don’t Run Loops in Python, Instead, Use These! | As Data science practitioners we always deal with large datasets and often we need to modify one or multiple columns. Using a loop for that kind of task is slow. In this blog, I will take you through a few alternative approaches which are faster than loops in python. | 1395 |
How to write a generator expression | Let's make a generator expression. This will turn our list comprehension into a generator expression. | 768 |
Real Multithreading is Coming to Python — Learn How You Can Use It Now | Python is 32 years old language, yet it still doesn’t have proper, true parallelism/concurrency. This is going to change soon, thanks to the introduction of a “Per-Interpreter GIL” (Global Interpreter Lock) which will land in Python 3.12. While the release of Python 3. | 188 |
How to Launch an HTTP Server in One Line of Python Code | Traditionally, if you wanted to handle HTTP requests and serve static content from files, then you had to set up a full-fledged web server like Apache or NGINX, which could be a tedious process. | 6266 |
Using the NumPy Random Number Generator | Random numbers are a very useful feature in many different types of programs, from mathematics and data analysis through to computer games and encryption applications. You may be surprised to learn that it’s actually quite difficult to get a computer to generate true randomness. | 6178 |
Python's Self Type: How to Annotate Methods That Return self | Have you ever found yourself lost in a big repository of Python code, struggling to keep track of the intended types of variables? Without the proper use of type hints and annotations, uncovering variable types can become a tedious and time-consuming task. | 3340 |
Distributive-Network/PythonMonkey | PythonMonkey is a Mozilla SpiderMonkey JavaScript engine embedded into the Python Runtime, using the Python engine to provide the Javascript host environment. | 2513 |
Running Untrusted Python Code | For a side-project, I needed to run some untrusted Python code. I would usually sandbox untrusted code inside a virtual machine. Either with a managed service like Fargate, Lambda, or Fly Machines; or if there were specific requirements (e.g. | 1165 |
Running async code from sync in Python asyncio | So, you're doing some sync stuff. But you also need to do some async stuff, without making everything async. | 1723 |
python quirks | A little girl goes into a pet show and asks for a wabbit. The shop keeper looks down at her, smiles and says: "Would you like a lovely fluffy little white rabbit, or a cutesy wootesly little brown rabbit?" "Actually", says the little girl, "I don't think my python would notice. | 323 |
Irit Katriel- opening keynote: Error Handling: From Charles Babbage to Python 3.11 | This talk introduces the new error handling features of Python 3.11, while placing them within their historical perspective. | 0 |
Build a REST API with FastAPI and MongoDB | FastAPI MongoDB REST API in Python | CRUD Operations | Swagger | PyMongoIn this tutorial we are going to create REST API with FastAPI framework in python and... | 25 |
Solving a simple puzzle using SymPy | It’s about a square that gets partitioned into rectangles of equal area (some sources call this "floorplan" ). One of the sides of these smaller rectangles is given and the problem asks for the area of the large square. | 270 |
Attribute Management using @property in Python: A Basic Guide With Examples | To manage class attributes more effectively in Python, developers can use properties. These properties encapsulate the attributes and control their access and modification. | 170 |
Python: Just write SQL | I have been writing a lot more Go this past year. For those not familiar, Go favours a non-ORM, non-query-builder approach to interacting with databases. This comes naturally due to the sql package: A common interface to be used alongside database drivers. | 967 |
What Are Python Asterisk and Slash Special Parameters For? | Whenever you think of Python’s asterisk operator (*), you most likely think of multiplication or exponentiation. Similarly, you probably associate the forward slash operator (/) with division. But you can also use the bare asterisk and slash as special parameters in function headers. | 3580 |
Process Images Using the Pillow Library and Python | When you look at an image, you see the objects and people in it. However, when you read an image programmatically with Python or any other language, the computer sees an array of numbers. | 300 |
Introducing Immortal Objects for Python | At Meta, we use Python (Django) for our frontend server within Instagram. To handle parallelism, we rely on a multi-process architecture along with asyncio for per-process concurrency. | 746 |
Building a blog in Django | We launched the Datasette Cloud blog today. The Datasette Cloud site itself is a Django app - it uses Django and PostgreSQL to manage accounts, teams and soon billing and payments, then launches dedicated containers running Datasette for each customer. | 1723 |
How CPython Implements Reference Counting: Dissecting CPython Internals | This week we are diverting from AI and machine learning to discuss a more intense CS topic — memory management in Python. Memory management refers to the techniques used by the programming language runtime to allocate and free memory as programs execute. | 2764 |
How to implement CommandBus in Python | In my previous blogpost, I compared services and command handlers. In today’s blogpost, I want to show you how to use commands and command handlers in connection with CommandBus. CommandBus is the last missing bit in this whole puzzle. | 934 |
Containerized PDF Summarizer with FastAPI and Hamilton | Screenshot of PDF summarizer app. Image by author. Skip learning convoluted LLM-specific frameworks and write your first LLM application using regular Python functions and Hamilton! In this post, we’ll present a containerized PDF summarizer powered by the OpenAI API. | 2145 |
Build a Code Image Generator With Python | If you’re active on social media, then you know that images and videos are popular forms of content. As a programmer, you mainly work with text, so sharing the content that you create on a daily basis may not seem intuitive. That’s where a code image generator can come in handy for you! | 10161 |
Introducing Python in Excel: The Best of Both Worlds for Data Analysis and Visualization | Python in Excel is gradually rolling out to Enterprise, Business, Education, and Family and Personal users running Current Channel (Preview) builds on Windows. This feature is rolling out to Excel for Windows, starting with Version 2406 (Build 17726.20016). | 1018 |
Asyncio, twisted, tornado, gevent walk into a bar... | Concurrency has a lot to do with sharing one resource, and Python has dedicated tools to deal with that depending on the resource you must share. If you have to share one CPU while waiting on the network, then the specialized tools for this are asyncio, twisted, trio, gevent, etc. | 4520 |
.XYZ TLD Domain Names | Built for those that value freedom and versatility online, .xyz domains are the future of the internet. The .xyz domain extension has become the domain of choice for websites around the globe, from personal and business use to the blockchain, Web3, and cryptocurrency communities! | 187 |
Click and Python: Build Extensible and Composable CLI Apps | You can use the Click library to quickly provide your Python automation and tooling scripts with an extensible, composable, and user-friendly command-line interface (CLI). | 11454 |
Create a Basic Dashboard with Dash & Plotly in Python | learn how to create a simple dashboard using the Python libraries Dash & Plotly. We created a a dashboard in less than 75 lines of code. The tutorial is a good | 29 |
Pygoat - Learn Django security the hard way | Learn to secure your Django apps by attacking (and then securing) Pygoat - An intentionally vulnerable Python Django application. Explore the OWASP top 10 vulnerabilities and understand how to mitigate them from Django apps. | 32 |
Create a Python Wordle Clone With Rich | In this video course, you’ll build your own Wordle clone for the terminal. Since Josh Wardle launched Wordle in October 2021, millions of people have played it. | 244 |
Python is (mostly) made of syntactic sugar | "Sugar" is, to a certain extent, in the eye of the beholder—at least when it comes to syntax. Programming languages are often made up of a (mostly) irreducible core, with lots of sugary constructs sprinkled on top—the syntactic sugar. | 2147 |
Hidden Features of Python | Python is a powerful programming language that's easy to learn and fun to play with. But beyond the basics, there are plenty of hidden features and tricks that can help you write more efficient and more effective Python code. | 1804 |
An Intro to Protocol Buffers with Python | Protocol buffers are a data serialization format that is language agnostic. They are analogous to Python’s own pickle format, but one of the advantages of protocol buffers is that they can be used by multiple programming languages. | 1241 |
Writing a C compiler in 500 lines of Python | A few months ago, I set myself the challenge of writing a C compiler in 500 lines of Python1, after writing my SDF donut post. How hard could it be? The answer was, pretty hard, even when dropping quite a few features. | 5116 |
Class Concepts: Object-Oriented Programming in Python | Python includes mechanisms for doing object-oriented programming, where the data and operations on that data are structured together. The class keyword is how you create these structures in Python. | 193 |
Inheritance and Internals: Object-Oriented Programming in Python | Python includes mechanisms for writing object-oriented code where the data and operations on that data are structured together. The class keyword is how you create these structures in Python. | 223 |
The easy way to concurrency and parallelism with Python stdlib | Concurrency and parallelism are hard, plus Python could do better in that regard. For those, Python actually comes with pretty decent tools: the pool executors. | 2258 |
Let’s create a Python Debugger together: Part 1 | Have you ever wondered how debuggers work? What happens when you set a breakpoint and hit it later? Debuggers are tools that we as developers use daily in our work, but few know how they are actually implemented. This program computes a Fibonacci number. | 2252 |
OOP in Python | When people first learn Python, OOP (object-oriented programming) is one of those things they start to use before fully understanding it. That makes sense, because OOP is a huge topic. You really have to use it for a while before you can fully understand it in any real depth. | 563 |
OOP in Python: Why is object-oriented programming so important? | Note: This is the first post in a series about OOP in Python. The next post discusses the role of self, and why it’s important in object-oriented code. When people start to learn Python, object-oriented programming (OOP) is often one of the first topics they struggle to grasp. | 747 |
Exploring Wordle | What can we deduce from the first three rows of guesses, JUDGE=....e CHEST=c.E.. WRECK=..Ec.? There is a set of valid letters, C and E, that are either present (yellow 🟨) or correct (green 🟩). Both E and C start out as present, but E later finds its correct position, while C does not. | 4603 |
5 Ways to Measure Execution Time in Python | You can benchmark the execution of Python code using the “time” module in the standard library. In this tutorial, you will discover how to time the execution of Python code using a suite of different techniques. | 3284 |
New Features You Need To Know In Python 3.12 | 💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. Python 3.12 is just around the corner, and I couldn't be more excited! 🎉🐍 In this video, I'll not only dive into the thrilling new features and improvements coming our way in Python 3.12 but also discuss some | 0 |
How to store your users' API keys securely in Django 🔑 | When building your bespoke AI-powered cat joke generator (CatGPT 🐈), you'll want to store your users' external API keys, e.g., their OpenAI keys. How should you do this in a secure way? | 988 |
Fadi002/de4py | this project has been officially archived. It has been a rewarding experience to develop and share this project with the community. However, I’ve noticed that many users lack the necessary coding or reverse engineering experience to fully benefit from the project. | 571 |
How to Use Type Hints for Multiple Return Types in Python | In Python, type hinting is an optional yet useful feature to make your code easier to read, reason about, and debug. With type hints, you let other developers know the expected data types for variables, function arguments, and return values. | 4752 |
Building a Python compiler and interpreter | In this tutorial series we will build a Python compiler and interpreter from scratch. We start with simple arithmetic expressions. In this series of articles we will be implementing the Python programming language, from scratch, in Python. | 6576 |
https://medium.com/@ayush-thakur02/python-decorators-that-can-reduce-your-code-by-half-b19f673bc7d8 | 0 | |
Two kinds of threads pools, and why you need both | When you’re doing large scale data processing with Python, threads are a good way to achieve parallelism. This is especially true if you’re doing numeric processing, where the global interpreter lock (GIL) is typically not an issue. | 1201 |
paulpierre/markdown-crawler | | | __ `__ \ _` | __| __| _` | \ \ \ / | _ \ __| | | | ( | ( | ( | \ \ \ / | __/ | _| _| _| \__._| \___| _| \__. | 800 |
GitHub OAuth in your Python Flask app | In this guide we'll learn how to quickly build an OAuth2.0 integration into a simple Flask app using Supabase-py. This will enable your users to login to your web app using their GitHub account. This article assumes you are familiar with creating an application in Flask. | 699 |
CPython Object System Internals: Understanding the Role of PyObject | In the past, I’ve written a few articles covering the internals of CPython and they have been received quite well. I want to write more in this area, but in a more systematic way, so that we have a solid foundation when we dive deeper in future articles. | 2121 |
Python, Asyncio and Footguns | If you’ve been using Python in the last few years you will probably have come into contact with `asyncio`. For the uninitiated, `asyncio` is the latest attempt at providing a sane concurrency framework in the language, dancing on the grave of `concurrent. | 548 |
Single and Double Underscores in Python Names | Python has a few important naming conventions that are based on using either a single or double underscore character (_). These conventions allow you to differentiate between public and non-public names in APIs, write safe classes for subclassing purposes, avoid name clashes, and more. | 6591 |
Serialize Your Data With Python | Whether you’re a data scientist crunching big data in a distributed cluster, a back-end engineer building scalable microservices, or a front-end developer consuming web APIs, you should understand data serialization. | 23090 |
Python's Magic Methods: Leverage Their Power in Your Classes | As a Python developer who wants to harness the power of object-oriented programming, you’ll love to learn how to customize your classes using special methods, also known as magic methods or dunder methods. A special method is a method whose name starts and ends with a double underscore. | 9225 |
Python 3.13 gets a JIT | Happy New Year everyone! In late December 2023 (Christmas Day to be precise), CPython core developer Brandt Bucher submitted a little pull-request to the Python 3.13 branch adding a JIT compiler. | 2113 |
Python Requests Cheatsheet | Requests is a HTTP library for Python that allows you to send HTTP requests easily. Some key features of requests: requests - The most popular library. Simple, intuitive API, powerful features, works for most cases. Lacks async support. | 1680 |
Creating DSL in Python with textx library | To describe objects and processes in terms of business logic, configure and define structure and logic in complex systems, a popular approach is to use domain specific languages (Domain Specific Language – DSL), which are implemented either through the syntactic features of a programming lan | 1471 |
Full To Do App in Python Flet & SQLite3 | Python Tutorial | Learn how to build a complete to-do application in Python using Flet as the UI and SQLite3 as the back-end. SQLite3 is a built-in library in Python, fast, and l | 30 |
Writing API exploits in Python | At some point in your API hacking journey, you will probably have to write a proof of concept (PoC) API exploit. Your peers in the dev group or someone on the security triage team you are engaging with will want to see how the vulnerability you found can be exploited. | 1720 |
Asyncio Patterns in Python | Recently I needed to run millions of API calls to an internal service. API calls are IO blocking. This means that when my service calls the API, it does nothing until it gets a response. | 1553 |
Python Sequences: A Comprehensive Guide | A phrase you’ll often hear is that everything in Python is an object, and every object has a type. This points to the importance of data types in Python. However, often what an object can do is more important than what it is. | 7650 |
Asyncio Run Multiple Concurrent Event Loops | We can run multiple concurrent asyncio event loops by starting and running each new event loop in a separate thread. Each thread can host and manage one event loop. | 1677 |
How Python Asyncio Works: Recreating it from Scratch | Right now, asyncio is one of the trendier topics in Python, and rightfully so – It’s a great way to handle I/O-bound programs! When I was learning about asyncio, It took me a while to understand how it actually worked. | 2271 |
Functions vs Methods in Python - What's the Difference? | Demystify Python's functions and methods. Learn the key differences, when to use each, and how they impact code structure and object-oriented design. | 0 |