Skip to main content

jinja2-josa-filter

Jinja2 호환 템플릿 환경에서 사용할 수 있는 한국어 조사 필터 패키지입니다. tjosa 라이브러리를 바탕으로 만들었습니다.

요구 사항

Python 3.12 이상이 필요합니다.

참고

이 패키지는 Jinja2에 직접 의존하지 않습니다. 일반 Python callable과 필터 매핑을 제공하며, 애플리케이션이나 프레임워크가 제공하는 Jinja2 호환 환경에 등록해서 사용합니다.

등록

이 패키지는 개별 필터 함수와 JINJA_FILTERS 매핑을 내보냅니다. 다음과 같이 런타임에 필터를 등록해 사용할 수 있습니다. 자세한 등록 방법은 사용하고자 하는 프레임워크의 도움말을 참고하세요.

from jinja2_josa_filter import JINJA_FILTERS

app_or_framework_jinja_env.filters.update(JINJA_FILTERS)

개별 필터 함수도 직접 import할 수 있습니다.

from jinja2_josa_filter import eun_neun, e_ga, eul_reul

사용

템플릿에서는 다음처럼 사용할 수 있습니다.

{{ food | 는 }} 맛있다.
>> 사과는 맛있다.
>> 파인애플은 맛있다.

{{ building | 은 }} 크다.
>> 집은 크다.
>> 학교는 크다.

{{ animal | 이 }} 잔다.
>> 고양이가 잔다.
>> 표범이 잔다.

{{ drink | 를 }} 마신다.
>> 물을 마신다.
>> 콜라를 마신다.

{{ tools[0] | 과 }} {{ tools[1] }}
>> 책과 깃펜
>> 컴퓨터와 마우스

말은 {{ horse | 로 }}, 사람은 {{ human | 으로 }}
>> 말은 제주로, 사람은 서울로

{{ friend | 야 }}, 안녕~
>> 철수야, 안녕~
>> 지민아, 안녕~

{{ friend | 이는 }} 내 친구
>> 철수는 내 친구
>> 지민이는 내 친구

필터 종류

  • 은는, 은, 는
  • 이가, 가
  • 을를, 을, 를
  • 과와, 과, 와
  • 으로, 로
  • 아야, 아, 야
  • 이, 이랑, 랑, 이며, 며, 이다, 다

라이선스

MIT

Metadata

Release files for jinja2-josa-filter 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jinja2-josa-filter 0.2.1
File Size Uploaded Provenance Actions
jinja2_josa_filter-0.2.1.tar.gz 17.0 kB Without provenance Details for jinja2_josa_filter-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jinja2-josa-filter 0.2.1
File Interpreter ABI Platform Actions
jinja2_josa_filter-0.2.1-py3-none-any.whl Python 3 none any Details for jinja2_josa_filter-0.2.1-py3-none-any.whl

Total release size: 21.7 kB

Release files / jinja2_josa_filter-0.2.1.tar.gz

Download URL jinja2_josa_filter-0.2.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6c911af37866c04fc5e33c3cc2ef5c519020ebbe490d424f56dd9410638a565b
BLAKE2b-256 checksum
How to use checksums
d674c1091308cc1e25ddbc67c5ff231f04397f50b5c41fd57cccc6f049a29aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / jinja2_josa_filter-0.2.1-py3-none-any.whl

Download URL jinja2_josa_filter-0.2.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d05a750f83ad14d1d1d624b4e085b64af47bbce0a56e65812de3ce42a90a2639
BLAKE2b-256 checksum
How to use checksums
1c0b15774f2ff66aadcf155e778aa8fe8d25d50ab6cae19a5f6b96e0e2fc9ff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for jinja2-josa-filter 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page