반응형

 파린이(파이썬 + 어린이)들이 처음 코딩을 접하다보면, 가장 헷갈리는 것은 아무래도 용어다. 나 역시 처음에 '라이브러리'라는 용어를 접했을 때 미세한 혼미함을 느꼈다. 사실 별 거 아니다. 말 그대로 라이브러리는 한국어로 '도서관'이란 뜻으로, 전 세계의 파이썬 사용자들이 만든 유용한 프로그램을 모아 놓은 곳을 말한다.

 파이썬이 프로그래밍 언어로 강자의 지위를 얻게 된 데에도 이 풍부한 라이브러리 생태계를 주요 원인으로 꼽기도 한다. 라이브러리는 외부에서 가져오는 라이브러리(써드파티 라이브러리)도 있지만, 파이썬에서 기본으로 제공하는 표준 라이브러리도 있다.

 초보자들은 외부 라이브러리는 커녕 표준 라이브러리도 소화가 어려울 것이다. 우선 파이썬 홈페이지(https://docs.python.org/ko/3/library/index.html)에서 영문으로 소개된 표준 라이브러리 소개를 번역해보았다. 한국어 번역이 있긴 한데, 용어도 익힐겸 직접 번역을 했다. 

[영문]

"While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.

 

Python’s standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below. The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.

 

The Python installers for the Windows platform usually include the entire standard library and often also include many additional components. For Unix-like operating systems Python is normally provided as a collection of packages, so it may be necessary to use the packaging tools provided with the operating system to obtain some or all of the optional components.

 

 In addition to the standard library, there is a growing collection of several thousand components (from individual programs and modules to packages and entire application development frameworks), available from the Python Package Index."

 

 

한글

" 1)파이썬 언어 레퍼런스는 파이썬 언어의 정확한 문법과 의미를 설명하는 반면, 이 2)라이브러리 레퍼런스는 파이썬에 (기본적으로) 함께 배포되는 표준 라이브러리를 설명합니다. 또한 파이썬에 기본적으로 포함되어 있는 옵션 요소 중 일부를 설명합니다.

 

파이썬의 표준 라이브러리는 매우 광범위하여, 하기의 길게 표시된 목차에서 보듯이 매우 넓은 기능을 제공합니다. (캡쳐 화면 아래로 List가 존재함) 라이브러리에는 C언어로 작성되어 I/O처럼 시스템으로의 접근을 제공하지만 파이썬 프로그래머는 접근이 불가한 내장형 모듈을 포함하고 있습니다. 또한 파이썬 언어로 작성되어 프로그래밍에서 많이 발생하는 문제의 표준화된 해결책을 제공하는 모듈도 포함합니다. (중략)

 

 윈도우 플랫폼용 파이썬 설치 프로그램에는 일반적으로 전체 표준 라이브러리가 포함되어 있으며, 추가 구성 요소도 많이 포함되어 있습니다. 유닉스 계열 운영 체제의 경우 파이썬은 일반적으로 패키지의 모음 형태로 제공되기 때문에 옵션 구성 요소(의 일부 또는 전부)를 얻기 위해 운영 체제와 함께 제공된 패키지 도구를 사용해야 할 수도 있습니다.

 

 표준 라이브러리 외에도 Python Package Index를 통해 접근 가능한 수천 개의 구성요소들이 1)개별 프로그램은 물론 2)모듈 및 3)패키지, 4)애플리케이션 개발 프레임워크에 이르기까지 광범위하게 점점 더 많이 수집되고 있습니다"

반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기