Skip to the content
  • "The more that you read, the more things you will know. The more that you learn, the more places you'll go." - Dr. Seuss
Get Started
Imagine
Digital Landscapes for your personal wonder
  • About
  • Blog
  • CS Knowledge Base
  • Ebooks
  • Embed Link
  • Home
  • Imagine Blog
  • Links
  • OmniVision
  • About
  • Blog
  • CS Knowledge Base
  • Ebooks
  • Embed Link
  • Home
  • Imagine Blog
  • Links
  • OmniVision

CS Knowledge Base

  • Home
  • CS Knowledge Base
Python logo

Previous topic

rlcompleter — Completion function for GNU readline

Next topic

struct — Interpret bytes as packed binary data

This page

  • Report a bug
  • Improve this page
  • Show source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.6 Documentation »
  • The Python Standard Library »
  • Binary Data Services
  • |
  • |

Binary Data Services¶

The modules described in this chapter provide some basic services operations for manipulation of binary data. Other operations on binary data, specifically in relation to file formats and network protocols, are described in the relevant sections.

Some libraries described under Text Processing Services also work with either ASCII-compatible binary formats (for example, re) or all binary data (for example, difflib).

In addition, see the documentation for Python’s built-in binary data types in Binary Sequence Types — bytes, bytearray, memoryview.

  • struct — Interpret bytes as packed binary data
    • Functions and Exceptions
    • Format Strings
      • Byte Order, Size, and Alignment
      • Format Characters
      • Examples
    • Applications
      • Native Formats
      • Standard Formats
    • Classes
  • codecs — Codec registry and base classes
    • Codec Base Classes
      • Error Handlers
      • Stateless Encoding and Decoding
      • Incremental Encoding and Decoding
        • IncrementalEncoder Objects
        • IncrementalDecoder Objects
      • Stream Encoding and Decoding
        • StreamWriter Objects
        • StreamReader Objects
        • StreamReaderWriter Objects
        • StreamRecoder Objects
    • Encodings and Unicode
    • Standard Encodings
    • Python Specific Encodings
      • Text Encodings
      • Binary Transforms
      • Standalone Codec Functions
      • Text Transforms
    • encodings — Encodings package
    • encodings.idna — Internationalized Domain Names in Applications
    • encodings.mbcs — Windows ANSI codepage
    • encodings.utf_8_sig — UTF-8 codec with BOM signature

Previous topic

rlcompleter — Completion function for GNU readline

Next topic

struct — Interpret bytes as packed binary data

This page

  • Report a bug
  • Improve this page
  • Show source
«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.14.6 Documentation »
  • The Python Standard Library »
  • Binary Data Services
  • |
  • |
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Jun 20, 2026 (17:02 UTC). Found a bug?
Created using Sphinx 8.2.3.

Search

Recent Posts

  • Digital Art by Dasha K.
  • Music Lab: Jam Session by Simon S.
  • AP Computer Science Principles A – Slide Decks
  • What determines our intelligence
  • The Learning Zone

Archives

  • September 2025
  • July 2025
  • June 2025

Quick contact info

Lorem ipsum dolor sit amet, the administration of justice, I may hear, finally, be expanded on, say, a certain pro cu neglegentur. Mazim.Unusual or something.

2130 Fulton Street, San Francisco
support@test.com
+(15) 94117-1080

Categories

  • Artificial Intelligence
  • CodeHS
  • Computer Science
  • Digital Art
  • Education
  • Growth Mindset
  • Java
  • micro:bit
  • Minecraft Education
  • Python
  • Uncategorized
  • What Mr. Goldstein is currently working on
  • WordPress

Archives

  • September 2025
  • July 2025
  • June 2025
Copyright © 2025 | Powered by WordPress | formula theme by A WP Life