TagBytes Class — flask Architecture
Architecture documentation for the TagBytes class in tag.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 0731c46c_1d2a_6f61_2146_c0658509b5f8["TagBytes"] a0222544_1c8a_9b62_d419_e9d66bd3544a["JSONTag"] 0731c46c_1d2a_6f61_2146_c0658509b5f8 -->|extends| a0222544_1c8a_9b62_d419_e9d66bd3544a 5e2eed77_f23f_513d_2d00_d39ce63b14ab["tag.py"] 0731c46c_1d2a_6f61_2146_c0658509b5f8 -->|defined in| 5e2eed77_f23f_513d_2d00_d39ce63b14ab 34e3859e_101d_d5d1_5ae7_5fd804dda5d0["check()"] 0731c46c_1d2a_6f61_2146_c0658509b5f8 -->|method| 34e3859e_101d_d5d1_5ae7_5fd804dda5d0 572b9e5b_6e72_8d0a_f765_5681dd60b710["to_json()"] 0731c46c_1d2a_6f61_2146_c0658509b5f8 -->|method| 572b9e5b_6e72_8d0a_f765_5681dd60b710 c5cce5a8_460e_2582_2b0f_5de5599e2b75["to_python()"] 0731c46c_1d2a_6f61_2146_c0658509b5f8 -->|method| c5cce5a8_460e_2582_2b0f_5de5599e2b75
Relationship Graph
Source Code
src/flask/json/tag.py lines 159–170
class TagBytes(JSONTag):
__slots__ = ()
key = " b"
def check(self, value: t.Any) -> bool:
return isinstance(value, bytes)
def to_json(self, value: t.Any) -> t.Any:
return b64encode(value).decode("ascii")
def to_python(self, value: t.Any) -> t.Any:
return b64decode(value)
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the TagBytes class?
TagBytes is a class in the flask codebase, defined in src/flask/json/tag.py.
Where is TagBytes defined?
TagBytes is defined in src/flask/json/tag.py at line 159.
What does TagBytes extend?
TagBytes extends JSONTag.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free