Python

Showing 28-36 of 49 results
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
EngineeringIcon ChevronBack-end

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.

24 minute readContinue Reading
EngineeringIcon ChevronBack-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 ChevronBack-end

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 ChevronBack-end

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.

16 minute readContinue Reading
EngineeringIcon ChevronBack-end

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
EngineeringIcon ChevronBack-end

Python Design Patterns: For Sleek And Fashionable Code

by Andrei Boyanov

Python is a powerful, object-based, high-level programming language with dynamic typing and binding. Due to its flexibility and power, developers often employ certain rules, or Python design patterns. What makes them so important and what do does this mean for the average Python developer? In this post, Toptal Senior Software Engineer Andrei Boyanov explains why Python is great for design patterns, and how they can be used to unlock even more potential, or to streamline development and make code more maintainable.

14 minute readContinue Reading
EngineeringIcon ChevronBack-end

WSGI: The Server-Application Interface for Python

by Leandro Lima

Nowadays, almost all Python frameworks use WSGI as a means, if not the only means, to communicate with their web servers. This is how Django, Flask, and many other popular frameworks do it. This article intends to provide readers with a glimpse into how WSGI works and allow them to build a simple WSGI application or server.

9 minute readContinue Reading

Join the Toptal® community.