Python

Showing 46-54 of 80 results
EngineeringIcon ChevronBack-end

A Guide to Performance Testing and Optimization With Python and Django

By Iulian Gulea

Donald Knuth said that "premature optimization is the root of all evil." But there comes a time, usually in mature projects with high loads, when the need to optimize presents itself. In this article, Toptal Freelance Software Engineer Iulian Gulea talks about five common methods to optimize a web project’s code using principles that can be used in Django as well as other frameworks and languages. Using these principles, he demonstrates how to reduce the response time of a query from 77 to 3.7 seconds.

12 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

Maximum Flow and the Linear Assignment Problem

By Dmitri Ivanovich Arkhipov

The Hungarian graph algorithm solves the linear assignment problem in polynomial time. By modeling resources (e.g., contractors and available contracts) as a graph, the Hungarian algorithm can be used to efficiently determine an optimum way of allocating resources.

25+ minute readContinue Reading
EngineeringIcon ChevronBack-end

Orchestrating a Background Job Workflow in Celery for Python

By Rustem Kamun

In this article, I will try to give you a good understanding of which scenarios could be covered by Celery. Not only will you see interesting examples, but will also learn how to apply Celery with real world tasks such as background mailing, report generation, logging and error reporting. I will share my own way of testing tasks beyond emulation and explain a few tricks that go beyond the official documentation and took me hours of research to discover myself.

15 minute readContinue Reading
EngineeringIcon ChevronBack-end

How to Build an Email Sentiment Analysis Bot: An NLP Tutorial

By Shanglun Wang

Build a bot that analyzes the sentiment of incoming email messages using Recursive Neural Tensor Networks from the Stanford NLP library.

10 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

Twitter Data Mining: A Guide to Big Data Analytics Using Python

By Anthony Sistilli

Twitter is a goldmine of data. Unlike other social platforms, almost every user’s tweets are completely public and pullable. In this tutorial, Toptal Freelance Software Engineer Anthony Sistilli will be exploring how you can use Python, the Twitter API, and data mining techniques to gather useful data.

8 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

Apache Spark Streaming Tutorial: Identifying Trending Twitter Hashtags

By Hanee' Medhat Shousha

Social networks are among the biggest sources of data today, and this means they are an extremely valuable asset for marketers, big data specialists, and even individual users like journalists and other professionals. Harnessing the potential of real-time Twitter data is also useful in many time-sensitive business processes. In this article, Toptal Freelance Software Engineer Hanee' Medhat explains how you can build a simple Python application to leverage the power of Apache Spark, and then use it to read and process tweets to identify trending hashtags.

10 minute readContinue Reading
EngineeringIcon ChevronTechnology

Top 10 Mistakes That Django Developers Make

By Alexandr Shurigin

In this tutorial, we will look at some common mistakes that are often made by Django developers and ways to avoid them. This tutorial is useful even if you’re a skilled Django developer because these mistakes aren’t just limited to new developers taking their first stab at Django.

12 minute readContinue Reading
EngineeringIcon ChevronBack-end

How to Integrate OAuth 2 Into Your Django/DRF Back-end Without Going Insane

By Peter Goodspeed-Niklaus

So you've implemented user authentication. Now, you want to allow your users to log in with Twitter, Facebook, or Google. No problem. You're only a few lines of code away from doing so. But while there are hundreds of OAuth 2 packages that pip knows, only a few actually do what they’re supposed to do. In this article, Toptal Software Engineer Peter Goodspeed-Niklaus explains how to integrate OAuth 2 into your Django or Django Rest Framework using Python Social Auth.

11 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

A Comprehensive Introduction To Your Genome With the SciPy Stack

By Zhuyi Xue

Genome data is one of the most widely analyzed datasets in the realm of Bioinformatics. The SciPy stack offers a suite of popular Python packages designed for numerical computing, data transformation, analysis and visualization, which is ideal for many bioinformatic analysis needs. In this tutorial, Toptal Software Engineer Zhuyi Xue walks us through some of the capabilities of the SciPy stack. He also answers some interesting questions about the human genome, including: How much of the genome is incomplete? How long is a typical gene?

23 minute readContinue Reading

Join the Toptal® community.