Ultimate Python
/
Python Versions
Fundamentals(11)
  • Variable
  • Expression
  • String
  • List
  • Tuple
  • Set
  • Dict
  • Conditional
  • Loop
  • Function
  • Comprehension
OOP(11)
  • Basic Class
  • Dataclass
  • Inheritance
  • Encapsulation
  • Property
  • Enum
  • Abstract Class
  • Exception Class
  • Iterator Class
  • Mixin
  • Mro
Data Structures(5)
  • Deque
  • Namedtuple
  • Ordereddict
  • Defaultdict
  • Heap
Standard Library(5)
  • File Handling
  • Regex
  • Data Format
  • Date Time
  • Itertools
Advanced(9)
  • Decorator
  • Context Manager
  • Meta Class
  • Weak Ref
  • Walrus Operator
  • Arg Enforcement
  • Dict Union
  • Pattern Matching
  • Template Strings
Concurrency(4)
  • Thread
  • Process
  • Async
  • Subinterpreters
Engineering(5)
  • Mocking
  • Benchmark
  • Memory Profile
  • Logger
  • Bitwise

No matching lessons found

Chapter5 Lessons

Standard Library

Essential Python standard library modules. Master file handling, regular expressions, structured data serialization (JSON & CSV), and precise date and time arithmetic.

Start Chapter: File Handling

Chapter Lessons

01

File Handling

File handling is a fundamental concept in Python that involves opening, reading, writing, and appending to files. This module demonstrates both traditional and modern approaches using pathlib.

View Code
02

Regex

Using regular expressions is a robust way to search for text. Implementing them is difficult but Python provides a package for us to use them easily. This module shows a few examples of how to use the `re` package to search predefined text snippets stored in module-level constants.

View Code
03

Data Format

One of the reasons people use Python is that it simplifies parsing and converting data to serialized objects for further analysis. This module shows how to parse and process these data formats: JSON, XML and CSV.

View Code
04

Date Time

The `datetime` class is one of the core classes we encounter when tracking events at a given date and time. By default, creating an instance with `datetime.now` means that an offset-naive datetime object is produced in the host's local timezone.

View Code
05

Itertools

The `itertools` module provides a suite of fast, memory-efficient tools for constructing and manipulating iterators.

View Code
Previous ChapterData StructuresNext ChapterAdvanced