Python tutorials

Custom Python Strings: Inheriting From str vs UserString

The Python str class has many useful features that can help you out when you’re processing text or strings in your code. However, in some situations, all these great features may not be enough for you. You may need to create custom string-like classes. To do this in Python, you can inherit from the built-in str class directly or subclass UserString, which lives in the collections module. In this tutorial, you’ll learn how to: Create custom string-like classes by inheriting […]

Read more

Demystifying Search

Search is a function or process of finding letters, words, files, web pages, or other data. Many operating systems, software programs, and websites contain a search or find feature to locate data. Search can vary from user to user. For Example, If a Software Developer searches Python on google. It gets the search results    

Read more

Sneaky REST APIs With Django Ninja

Many web projects have moved to the single-page application model. To use this model with Django, you build a project where Django is the back end accessed through a REST API. The Django Ninja library is a FastAPI-inspired tool kit for turning Django views into REST API endpoints with very little extra code. Along the way, you’ll be using curl, a command-line tool that allows you to grab the contents of a web page. If you’d like to quickly build […]

Read more

Reading Pcap File with Python

If you ever work with something related to computer networking, you probably know what is Wireshark. It is a tool to collect network packets and it also allows you to analyze them. It is an awesome tool but it is not suitable to analyze more than one pcap file and use the data you collected to train a model. There are some Python packages(Scapy, Pyshark) to get information from pcap files but they are generally slow. As an alternative to […]

Read more

The Software Engineer: An Unexpected Journey (how to learn to code and get a job)

If you’re late for the bus, need to finish your latest side project or (god forbid) go on a date with a real human (not AI) I’ll save you some time. TL;DR stop watching YouTube tutorials and stop using boot camps (for the most part) and just make something fun. Can’t think of something fun? Steal something fun from elsewhere. Here, make a terminal website like I did with a programming language you think it would be cool to learn […]

Read more
1 76 77 78 79 80 181