Python
Excerpt
Section titled “Excerpt”Python is a programming language that lets you work quickly and integrate systems more effectively.
Resources
Section titled “Resources”- Python Social Auth
Python Social Auth is an easy to setup social authentication/registration mechanism with support for several frameworks and auth providers.
- awesome-python
A curated list of awesome Python frameworks, libraries, software and resources
- The Python Tutorial
- strftime reference cheatsheet - formatting codes for rendering datetimes as strings
- Using % and .format() for great good!
- strftime reference and sandbox
- Jupyter Notebooks are documents that, similar to the interactive shell, enable incremential experimentation using the power of Python.
Use aiohttp and asyncio to run I/O coroutines concurrently
Section titled “Use aiohttp and asyncio to run I/O coroutines concurrently”Example:
import aiohttpimport asyncio
async def get_9(): async with aiohttp.ClientSession() as session: async with session.get('https://httpbin.org/delay/9') as response: await response.text() print("9 finished")
async def get_3(): async with aiohttp.ClientSession() as session: async with session.get('https://httpbin.org/delay/3') as response: await response.text() print("3 finished")
async def main(): await asyncio.gather(get_9(), get_3())
asyncio.run(main())What is the “Zen of Python”?
Section titled “What is the “Zen of Python”?”