Topic

Python

17 articles

Showing 17 of 17
The GitHub Blog

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.

Rizel Scarlett16 min read
Engineering at Meta

Programming languages endorsed for server-side use at Meta

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…

6 min read
The Cloudflare Blog

Bringing Python to Workers using Pyodide and WebAssembly

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

26 min read
Engineering at Meta

Inside Bento: Jupyter Notebooks at Meta

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…

3 min read
Slack Engineering

Rewriting the Slack Python SDK

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,…

18 min read
Spotify Engineering

Snakebite: a pure Python HDFS client | Spotify Engineering

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 .

Wouter de Bie3 min read
Shopify Engineering

Making Apps using Python, Django and App Engine - Shopify

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

4 min read