Docs

Build a Script

py.space allows you to build and run simple python scripts on the web. You can easily install any Python packages you need and run your script without needing to set up an environment. Because py.space scripts run on the web and are easy to set up, they are the perfect place to fetch data from web APIs.

This quick tutorial will show you how to create a py.space script that uses the requests library to fetch and print data from a weather API.

Example: Which City is Warmer?

This py.space script uses an API to fetch the current temperature of three different cities and tells you which one is warmer: