Why Python keeps growing, explained
A deep dive into why more people are using Python than ever, its key use cases, and why it’s still so popular 30-plus years after it was first released.
Topic
17 articles
A deep dive into why more people are using Python than ever, its key use cases, and why it’s still so popular 30-plus years after it was first released.
Supporting a programming language at Meta is a very careful and deliberate decision. We’re sharing our internal programming language guidance that helps our engineers and developers choose the best…
GitHub and the Python Package Index (PyPI) are collaborating to help protect you from leaked PyPI API tokens. From today, GitHub will scan every commit to a public repository for…
Introducing Cloudflare Workers in Python, now in open beta! We've revamped our systems to support Python, from the runtime to deployment. Learn about Python Worker's lifecycle, dynamic linking, and memory snapshots in this post
Today we are announcing an alpha version of Pyrefly, an open source Python type checker and IDE extension crafted in Rust. Pyrefly is a static type checker that analyzes Python code to ensure type …
This episode of the Meta Tech Podcast is all about Bento, Meta’s internal distribution of Jupyter Notebooks, an open-source web-based computing platform. Bento allows our engineers to mix code, tex…
We’ve just open sourced , Spotify’s framework for adding effects to audio in Python. Pedalboard makes it easy to use studio-quality audio effects in your code, rather than just in your digital audio workstation (DAW).
What it is: Hydra is a lightweight framework that simplifies the development of Python applications, especially complex ones, by introducing the ability to compose and override configurations. Hydr…
Have you ever been given a relatively inactive project and asked to fix a bug? What about having to update code that’s used by thousands of projects without the guidance of the original author? I stepped into a circumstance like that when I joined the Developer Relations Tools Team at Slack. At the start of 2019,…
Introducing Pyleus: An Open-source Framework for Building Storm Topologies in Pure Python Patrick L., Software Engineer Oct 15, 2014 Yelp loves Python, and we use it at scale to power...
Today, we are sharing details about Pysa, an open source static analysis tool we’ve built to detect and prevent security and privacy issues in Python code. Last year, we shared how we built Zoncola…
Have you ever been frustrated with the complicated experience of making charts in Python? We have, so we created , an open-source Python library that wraps to make it easier for data scientists to create charts.
The most frequent question we heard at this weekend, was how do we use Python at Spotify. Hopefully this post answers the question!
A few of us at Spotify are infatuated with – a RESTful API Modeling Language described as “a simple and succinct way of describing practically-RESTful APIs”, extremely similar goal of .
As we all know, Hadoop is great and here at Spotify we are big fans of it. We use it to process data for a lot of different purposes like business intelligence, recommendations and reporting. But even though Hadoop is great at crunching data, interacting with it can be hard sometimes. For example, creating complex data pipelines is non-trivial and for that we created .
We recently announced the release of our Python adaptor for the Shopify API. Now we would like to inform you that we have got it working well with the popular Django web framework and Google App Engine hosting service. But don't just take my word for it, you can see a live example on App Engine and check out the example's source code on GitHub. The example application isn't limited to Google App Engine, it can run as a regular Django application allowing you to explore other hosting options. The shopify_app directory in the example contains the reusable Django app code. This directory contains views for handling user login, authentication, and saves the Shopify session upon finalization. Middleware is included which loads session to automatically re-initialize the Python Shopify API for each request. There is also a @shop_login_required decorator for view functions that require login, which will redirect logged out users to the login page. As a result, your view function can be as simple as the following to display basic information about the shop's products and orders. @shop_login_required def index(request): products = shopify.Product.find(limit=3) orders = shopify.Order.find(limit=3, order="created_at DESC") return render_to_response('home/index.html', { 'products': products, 'orders': orders, }, context_instance=RequestContext(request)) Getting Started for Regular Django App Install the dependancies with this command: easy_install Django ShopifyAPI PyYAML pyactiveresource Download and unzip the zip file for the example application Getting Started for Google App Engine Install the App Engine SDK Download and unzip the example application zip file for App Engine which includes all the dependancies. Create an application with Google App Engine, and modify the application line in app.yaml with the application ID registered with Google App Engine. Develop Create a Shopify app through the Shopify Partner account with the Return URL set to http://localhost:8000/login/finalize, and modify shopify_settings.py with the API-Key and Shared Secret for the app. Start the server: python manage.py runserver Visit http://localhost:8000 to view the example. Modify the code in the home directory. Deploy Update the return URL in your Shopify partner account to point to your