wrapper
UK: ˈræpə | US: ˈræpər
n. a covering or enclosure, often made of paper or plastic, used to protect or conceal something
n. (computing) a program or code that encapsulates another component to simplify its use
n. (informal) an outer garment, such as a loose coat or robe
The word "wrapper" originates from the verb "wrap" (Middle English wrappen, meaning "to cover or enfold"), combined with the agent suffix "-er," which denotes a person or thing that performs an action. The term evolved from describing physical coverings (e.g., paper wrappers) to metaphorical or functional encapsulations (e.g., software wrappers). The logic follows the literal act of wrapping extended to abstract contexts.
She removed the colorful wrapper from the chocolate bar.
The API acts as a wrapper for the underlying database functions.
He wore a thin wrapper over his pajamas to stay warm.
The gift wrapper was torn at the edges.
This library provides a Python wrapper for the C++ code.