#52: Call your APIs with uplink and test them in the tavern
Published Thu, Nov 16, 2017,
recorded Wed, Nov 15, 2017
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/
- Incorrect indentation, tabs and spaces
- Using a Mutable Value as a Default Value
- Write a lot of comments and docstrings
- Scoping
- Edge cases first (let’s go easy on the indents)
- Copying
- Creating count-by-one errors on loops (range is half closed)
- Wrong capitalization
- Using class variables incorrectly
Our news
Michael:
- Flash briefing?
- Firefox Quantum!