Working with Binary Data in Python 3
Master the fundamentals of computer science! Learn to read, write, and manipulate data with bits and bytes. Build a foundation for tech careers.
Course Content
Working with Binary Data in Python 3 is an intermediate-level Udemy course taught by John Leon. It runs 1h 42m, is taught in English, and includes a certificate of completion. Learners rate it 4.5 out of 5 from 78 reviews, with 287 students enrolled. It is a paid course, last updated March 2021.
Unlock the power of raw data with Python 3! This course dives deep into working with binary data in Python, a fundamental skill for a wide range of programming applications. Understanding how computers represent information as bytes is crucial, and this course provides the tools to manipulate data at this core level.
Whether you're a web developer, data scientist, game developer, security analyst, reverse engineer, or penetration tester, proficiency in handling binary data is invaluable. Learn to effectively interact with the underlying structure of information, opening up possibilities for advanced tasks.
Here's a glimpse of what you'll master:
- Reading and Writing Bytes: Efficiently read and write bytes to buffer streams and disk, essential for working with binary files and network communication.
- Byte Stream Formatting: Format bytes for easy viewing in hexadecimal or raw binary formats, simplifying debugging and analysis.
- Python Objects to Bytes & Back: Convert between Python objects and raw bytes, enabling data storage, loading, and interoperability across different systems. Ideal for creating save game files or transmitting data over a network.
- Encoding and Decoding Bytes: Seamlessly switch between raw bytes for storage and transfer, and usable Python objects. Learn to encode and decode for tasks like data transmission and file persistence.
- Struct Packing & Unpacking: Master struct packing and unpacking to create TCP/IP packet headers and extract data from proprietary file formats.
- Bitwise Operations: Perform essential bitwise operations (AND, OR, XOR, Ones Complement) for tasks like network masking and basic cryptography.
Course Syllabus:
- Introduction: Course overview and essential concepts.
- Basics of Bytes: Understanding the fundamental bytes type in Python.
- Bytearray Type: Working with mutable sequences of bytes.
- BytesIO Class: Utilizing the
BytesIOclass for in-memory binary data streams. - Formatting Output: Displaying bytes in readable formats.
- Bitwise Operations: A comprehensive exploration of bitwise operations.
- AND
- OR
- XOR
- Ones Complement
- Bit Shifting
- Conversion: Converting between different data types.
- Integers
- Bytes
- Binary strings
- Hexadecimal strings
- Working with Files: Reading and writing bytes to files.
Seekposition- Get metadata about a file
- Struct Packing:
- What is struct packing?
- Struct packing
- Struct unpacking
- Encoding:
- ASCII
- UTF-8
- Base64
This course provides a solid foundation for manipulating binary data in Python, empowering you to tackle complex programming challenges and unlock new possibilities.
Need a web app built? Hire the team behind TutorialSearch.io
We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.