Metadata-Version: 2.4
Name: eddmPrint
Version: 0.1.0
Summary: 색상과 위치 정보가 포함된 개선된 프린트 라이브러리
Home-page: https://github.com/eddmpython/eddmPrint
Author: eddmpython
Author-email: eddmpython@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# eddmPrint

[![GitHub release](https://img.shields.io/github/v/release/eddmpython/eddmPrint?style=flat-square)](https://github.com/eddmpython/eddmPrint/releases)
[![PyPI version](https://img.shields.io/pypi/v/eddmPrint?style=flat-square)](https://pypi.org/project/eddmPrint/)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/eddmpython/eddmPrint/release.yml?branch=main&style=flat-square&label=build)](https://github.com/eddmpython/eddmPrint/actions)

개선된 print 함수로 파일명, 함수명, 라인 번호를 자동으로 표시합니다.

![eddmPrint 사용 예시](images/example.png)

## 설치 방법

```bash
pip install eddmPrint
```

## 기본 사용법

```python
from eddmPrint import EddmPrint

# 기본 설정으로 시작
printer = EddmPrint()
printer.start()

# 이제 print는 자동으로 위치 정보를 포함합니다
print("Hello, World!")  # [파일명: example.py | 함수명: <module> | 라인: 7] Hello, World!

# 원래 print 함수로 복원
printer.restore()
```

## 색상 사용자 지정

```python
from eddmPrint import EddmPrint, Colors

printer = EddmPrint(color=Colors.GREEN)
printer.start()

print("녹색으로 표시됩니다")

# 중간에 색상 변경
printer.setColor(Colors.RED)
print("이제 빨간색으로 표시됩니다")
```

![색상 예시](images/colors.png)

## 템플릿 사용자 지정

```python
from eddmPrint import EddmPrint, Templates

# 간단한 템플릿 사용
printer = EddmPrint(prefixTemplate=Templates.SIMPLE)
printer.start()

print("간단한 템플릿으로 표시됩니다")  # [file.py:10] 간단한 템플릿으로 표시됩니다

# 사용자 정의 템플릿
custom_template = "위치: {file}의 {line}번째 줄"
printer.setPrefixTemplate(custom_template)
print("사용자 정의 템플릿으로 표시됩니다")  # 위치: file.py의 14번째 줄 사용자 정의 템플릿으로 표시됩니다
```

![템플릿 예시](images/templates.png)

## 개발자 정보

### 새 버전 릴리스하기

이 프로젝트는 GitHub Actions를 사용하여 자동으로 릴리스를 생성하고 PyPI에 배포합니다.
새 버전을 릴리스하려면 다음 단계를 따르세요:

1. 코드를 수정하고 커밋합니다.
2. 버전 태그를 생성합니다:
   ```bash
   git tag v0.1.0
   git push origin v0.1.0
   ```
3. GitHub Actions가 자동으로 릴리스를 생성하고 PyPI에 배포합니다.

## 라이센스

이 프로젝트는 MIT 라이센스를 따릅니다. 자세한 내용은 [LICENSE](LICENSE)를 참조하세요. 
