Tag: python
8 resources tagged with "python" on StackPractices.
Handle Errors in APIs
Patterns for consistent, predictable API error handling across multiple languages and frameworks.
JWT Authentication
How to generate, validate, and refresh JSON Web Tokens for stateless API authentication.
Call a REST API
How to make HTTP requests to a REST API and handle the JSON response in multiple languages.
Parse JSON
How to parse JSON strings into native data structures across multiple programming languages.
Sort an Array
How to sort arrays and lists in ascending, descending, and custom order across multiple languages.
Unit Testing
How to write fast, deterministic unit tests with mocks and assertions in Python, JavaScript, and Java.
Read and Write Files
How to read from and write to files safely across multiple programming languages.
Factory Pattern
Create objects without specifying the exact class to instantiate. A creational design pattern for flexible object creation.