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 | 이는 }} 내 친구
>> 철수는 내 친구
>> 지민이는 내 친구

필터 종류

  • 은는, 은, 는, eun_neun, eun, neun
  • 이가, 가, e_ga, ga
  • 을를, 을, 를, eul_reul, eul, reul
  • 과와, 과, 와, gwa_wa, gwa, wa
  • 으로, 로, eu_ro, ro
  • 아야, 아, 야, a_ya, a, ya
  • 이, 이랑, 랑, 이며, 며, 이다, 다, e, e_rang, rang, e_myeo, myeo, e_da, da

라이선스

MIT

Metadata

Release files for jinja2-josa-filter 0.3.0

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.3.0
File Size Uploaded Provenance Actions
jinja2_josa_filter-0.3.0.tar.gz 17.7 kB Without provenance Details for jinja2_josa_filter-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.4 kB

Release files / jinja2_josa_filter-0.3.0.tar.gz

Download URL jinja2_josa_filter-0.3.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b1d7eee50cdf6d99b29075be66d8c0764227e408f2d6b63be67f8707d23bad02
BLAKE2b-256 checksum
How to use checksums
c8a63888cea7fe2c23bd1804262e1203c497183b9d6ba0d436ed4ad1d352e4ed
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.3.0-py3-none-any.whl

Download URL jinja2_josa_filter-0.3.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c033d910ca1acc17ab5365ced9ec2cb82f26b86c9302029a47b746f4c6f72c71
BLAKE2b-256 checksum
How to use checksums
2bbae735d3621f95213c6487e57813207937037ea75bdc2eeba918eec68e73e3
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.3.0

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