Python
Articles about Python
Category articles "Python"
Study all materials on this topic
JWT Tokens with python-jose
python-jose is a library for working with JSON Web Tokens (JWT).
asyncio.gather, create_task and TaskGroup: Concurrency in Practice
Three ways to run multiple coroutines concurrently. Each has its own niche.
The datetime Module: Working with Dates and Times
datetime is Python's standard module for working with dates and times. It's part of the standard library — no installation...
.env Files and Environment Variables: Keeping Secrets Out of Code
Imagine you wrote a program with an API key hardcoded in the source and pushed it to GitHub. An hour...
Python Virtual Environments: Why and How
When you start a second Python project and run pip install requests — that library gets installed globally, for the...
argparse: Command-Line Arguments in Python
When a script grows from a toy into a real tool, input() becomes inconvenient. Professional CLI programs accept arguments at...
Generators in Python: Lazy Evaluation and Streaming
When an API returns a large response — text spanning thousands of tokens — waiting for the full response is...
JSON: Persisting Data
Goal: Learn to save and load data in JSON format.
map() — Transform Every Element!
Returns a map object — wrap it in list() to get a list.
filter() — Pick What You Need!
filter(None, data) removes all "falsy" values: None, False, 0, "", [], {}.
Lambda Functions
A lambda is a small, anonymous, single-line function.
reduce() — Fold Everything into One!
The accumulator (acc) collects the result at each step.
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!