#52 Call your APIs with uplink and test them in the tavern

Python Bytes - A podcast by Michael Kennedy and Brian Okken - Lunedì

Categorie:

Sponsored by DigitalOcean. They just launched Spaces, get started today with a free 2 month trial of Spaces by going to do.co/python

Brian #1: Restful API testing with Tavern

Michael #2: Uplink

  • RESTful client API via decorators
  • Create a class to represent the API
  • Add methods with arguments, map to API calls.
  • e.g.
    @get("/users/{username}")
    def get_user(self, username):
       """Get a single user."""        
  • Uplink includes support for concurrent requests with asyncio (for Python 3.4+)
  • Twisted (for all supported Python versions)
  • Not production ready, but very exciting.

Brian #3: Using json-schema for REST API endpoint tests

Sponsor DIGITAL OCEAN SPACES Get started today with a free 2 month trial of Spaces by going to do.co/python

Michael #4: Live coding to music!

  • via Ian Watt
  • Talk at PyCon UK by Ryan Kirkbride called “Programming Music for Performance: Live coding with FoxDot”

Brian #5: Weekly Python Chat

Michael #6: 10 common beginner mistakes in Python

  • Via checkIO: https://py.checkio.org/
  1. Incorrect indentation, tabs and spaces
  2. Using a Mutable Value as a Default Value
  3. Write a lot of comments and docstrings
  4. Scoping
  5. Edge cases first (let’s go easy on the indents)
  6. Copying
  7. Creating count-by-one errors on loops (range is half closed)
  8. Wrong capitalization
  9. Using class variables incorrectly

Our news

Michael:

  • Flash briefing?
  • Firefox Quantum!

Visit the podcast's native language site