Testing Third-Party APIs with Mocks

The following tutorial demonstrates how to test the use of an external API using Python mock objects. Integrating with a third-party application is a great way to extend the functionality of your product. However, the added value also comes with obstacles. You do not own the external library, which means that you cannot control the […]

Read More

Python Virtual Environments – a primer

In this article, we’ll show how to use virtual environments to create and manage separate environments for your Python projects, each using different versions of Python for execution, as well as how Python dependencies are stored and resolved. Why the need for virtual environments? Python, like most other modern programming languages, has its own unique […]

Read More

Python for Social Scientists

This is a guest blog post by Nick Eubank​, a Ph.D. Candidate in Political Economy at the Stanford Graduate School of Business Python is an increasingly popular tool for data analysis in the social scientists. Empowered by a number of libraries that have reached maturity, R and Stata users are increasingly moving to Python in […]

Read More