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.1.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.1.0
File Size Uploaded Provenance Actions
jinja2_josa_filter-0.1.0.tar.gz 13.3 kB With provenance Details for jinja2_josa_filter-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.9 kB

Release files / jinja2_josa_filter-0.1.0.tar.gz

Download URL jinja2_josa_filter-0.1.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8b5fc44275c6d9002ed8ac4ad91a4bec975fb5fd7c1d8d9dcf9f89df9cf7d4e4
BLAKE2b-256 checksum
How to use checksums
275ae4072ada8a31fa501291f1e02bfa19dd70f69a20e67282f13bf3119ea1fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.

Transparency log

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

Download URL jinja2_josa_filter-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cf3da445539762626fa6c753bc9f48e9a8e94ff57760fe912718d0bd25c633d
BLAKE2b-256 checksum
How to use checksums
2e10638e8ccdbefd065437874351e0d10164174e8addbe2c09ac50f790da9d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.

Transparency log

Security for jinja2-josa-filter 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jinja2_josa_filter-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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