Python 기초

2021. 3. 24. 17:39python

728x90
반응형

1. 파이썬 표준 라이브러리

가. 내장함수

docs.python.org/3/library/functions.html

 

Built-in Functions — Python 3.9.2 documentation

Built-in Functions The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. abs(x) Return the absolute value of a number. The argument may be an integer, a floating poin

docs.python.org

나. 표준 라이브러리

  • 텍스트 프로세싱 : string, re, difflib
  • 데이터타입 : datetime, calendar, collections, array
  • 수 계산 및 수학관련 : numbers, math, random
  • 함수형 프로그래밍 : itertools, functools, operator
  • 데이터 영속성 (persistence) : pickle, marshal, sqlite3
  • 데이터압축 : zlib, gzip, bz2
  • 암호화 : hashlib, hmac
  • 동시성 : threading, multiprocessing
  • 인터넷 데이터 핸들링 : email, json, base64
  • 인터넷 프로토콜 : webbrowser, urllib, http, imaplib

2. PyPI

가. 개요

  • 파이썬 소프트웨어 패키지에 대한 정보를 저장
  • 패키지를 릴리스
  • 각 패키지는 고유한 이름과 버전을 가짐

나. 설치도구

  • pip : PyPI에 등록된 Python 패키지를 설치
  • virtualenv, pyvenv : 애플리케이션의 의존성 문제를 피하기 위해 격리
  • pip wheel : 차후의 설치속도를 높이기 위하여 wheel 배포본의 캐시를 생성
  • 통합된 소프트웨어 스택 관리
    • buildout : 웹개발에 특화
    • Hashdist
    • conda : 과학 커뮤니티를 주 대상으로 함

다. PIP (Pip Installs Python)

  • PIP Python 2.7.9 이상, 3.4 이상에 기본으로 포함.
  • PyPI로부터의 설치를 지원
  • 패키지 설치

$ pip install SomePackage #latest version

$ pip install SomePackage==1.0.4 # specific version

$ pip install SomePackage>=1.0.4 # minimum version

  • 패키지 설치삭제

$ pip uninstall SomePackage

  • 설치된 패키지 목록

$ pip list

  • 패키지 검색

$ pip search hangul

라. 패키징 도구

• setuptools: 프로젝트를 정의하고 소스 배포본을 생성

• bdist_wheel setuptools: wheel을 생성. 바이너리 익스텐션을 포 함할 경우에 특히 유용함

• twine: 배포본을 PyPI에 업로드

3. 파이썬 언어의 구현체 및 배포본

가. SciPy

• 수학, 과학, 공학을 위한 배포본

• 다음의 모듈 포함

  • NumPy (다차원 배열 패키지)

  • SciPy Library (과학 컴퓨팅을 위한 기반 라이브러리)

  • Matplotlib (2D, 3D 플로팅)

  • IPython (편리한 대화식 콘솔)

  • Sympy (symbolic mathematics)

  • Pandas (데이터 구조 및 분석)

나. Anaconda

• 대규모 데이터 처리, 과학 컴퓨팅

• 주요 패키지 포함(NumPy, SciPy, Pandas, IPython, Matplotlib, …)

• Python 2 & 3 • 패키지 관리자(conda)

• Cpython + conda + packages + α

https://store.continuum.io/cshop/anaconda/

 

Anaconda | Individual Edition

Anaconda's open-source Individual Edition is the easiest way to perform Python/R data science and machine learning on a single machine.

www.anaconda.com

 

4. Python 커뮤니티, 소식

• 한국의 Python 사용자 그룹

    • https://www.facebook.com/groups/pythonkorea/

    • https://www.facebook.com/pyladieseoul

    • https://www.djangogirls.org/seoul/

• 소식

    • http://www.pythonweekly.com/

    • http://weeklypythonkr.tumblr.com

5. PyCon

6. 온라인 파이썬 강좌

  • edx.org
  • coursera.org
  • codecademy.com

 

728x90
반응형

'python' 카테고리의 다른 글

Python入門  (0) 2021.03.31
[Python]문자열로된 날짜 datetime으로 변환  (0) 2021.03.26
Interactive Learning Sites for Python  (0) 2021.03.25
금융데이터이해와 분석 with python  (0) 2021.03.25
파이썬 강의 자료  (0) 2021.03.24