Python

Showing 28-36 of 56 results
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 ChevronTechnology

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 ChevronTechnology

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
EngineeringIcon ChevronTechnology

The Rise Of Automated Trading: Machines Trading the S&P 500

by Andrea Nalon

More than 60 percent of trading activities with different assets rely on automated trading and machine learning instead of human traders. Today, specialized programs based on particular algorithms and learned patterns automatically buy and sell assets in various markets, with a goal to achieve a positive return in the long run. In this article, Toptal Freelance Data Scientist Andrea Nalon explains how to predict, using machine learning and Python, which trade should be made next on the S&P 500 to get a positive gain.

22 minute readContinue Reading
EngineeringIcon ChevronTechnology

Clustering Algorithms: From Start To State Of The Art

by Lovro Iliassich

Clustering algorithms are very important to unsupervised learning and are key elements of machine learning in general. These algorithms give meaning to data that are not labelled and help find structure in chaos. But not all clustering algorithms are created equal; each has its own pros and cons. In this article, Toptal Freelance Software Engineer Lovro Iliassich explores a heap of clustering algorithms, from the well known K-Means algorithm to the elegant, state-of-the-art Affinity Propagation technique.

11 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

How to Create a Simple Python WebSocket Server Using Tornado

by Jongwook Kim

The threaded model and global interpreter lock has always been in the way of Python handling thousands of concurrent long-lived connections. Modern web frameworks, such as Tornado, use non-blocking network I/O to make Python feasible for implementing WebSocket servers. In this article, Toptal engineer Jongwook Kim walks us through the process of implementing a simple WebSocket-based web application in Python using the Tornado web framework.

8 minute readContinue Reading
EngineeringIcon ChevronTechnology

To Python 3 and Back Again: Is It Worth the Switch?

by Dario Bertini

Since its debut in 2008, Python 3 has come a long way. Gone are the days when it lacked support for almost all useful libraries and tools. Python 3 offers many improvements and amazing new features that make writing robust code in Python easier than ever. In this article, Toptal engineer Dario Bertini discusses some of the improvements and features that Python 3 has to offer, and explains whether switching to Python 3 is a smart choice right now.

10 minute readContinue Reading
EngineeringIcon ChevronTechnology

An Introduction to Robot Operating System: The Ultimate Robot Application Framework

by Adnan Ademovic

Robot Operating System, a framework for building robot applications, allows developers to assemble a complex system by connecting existing solutions for small problems. In this article, Toptal engineer Adnan Ademovic gives us a step-by-step tutorial to building software for an onboard computer that allows us to remotely control and monitor a robot and running it in a simulated world using Robot OS.

15 minute readContinue Reading
EngineeringIcon ChevronTechnology

Service Oriented Architecture with AWS Lambda: A Step-by-Step Tutorial

by Andrew Crosio

AWS Lambda offers a relatively thin service with a rich set of ancillary configuration options, making it possible to implement easily scalable and maintainable applications leveraging these services. In this article, Toptal engineer Andrew Crosio gives us a step-by-step tutorial for building an image uploading and resizing service and demonstrates how AWS Lambda can be used as a platform to easily build service oriented architecture applications.

16 minute readContinue Reading

Join the Toptal® community.