safety-law-mapper (안전법규 매핑 엔진)
작업 상황을 입력하면 적용되는 한국 안전 법령·조항을 찾아주는 규칙 기반 오픈소스 매핑 엔진입니다.
기존 법령 검색 도구는 전부 "법령 → 내용" 방향입니다. 이 프로젝트는 "작업 상황 → 적용 조항"이라는 역방향 매핑을 구조화된 오픈 데이터(YAML)로 만들고, 이를 검색하는 CLI/라이브러리를 제공합니다.
⚠️ 본 도구는 법률 자문이 아닙니다. 모든 결과는 참고용이며 법적 판단을 대체하지 않습니다.
설치
pip install safety-law-mapper
Python 3.11 이상이 필요합니다.
사용법
# 키워드로 적용 법령·조항 검색
slm search 밀폐공간 용접
# 작업 분류·근로자 수 조건 추가
slm search 용접 --category hot-work --employees 30
# 매핑 상세 조회
slm show confined-space-welding
# 데이터 검증 (스키마 + 참조 무결성)
slm validate
종료 코드: 0 정상, 1 결과 없음, 2 검증 오류.
라이브러리로 사용
from safety_law_mapper.loader import load_dataset
from safety_law_mapper.matcher import Query, match
ds = load_dataset()
results = match(list(ds.mappings.values()), Query(keywords=["밀폐공간", "용접"]))
for r in results:
print(r.mapping.work_type.name_ko, r.score)
제품 원칙
- 규칙 기반, AI 추론 배제 — 명시적 데이터로만 답하므로 왜 그 법이 적용되는지 누구나 검증할 수 있습니다.
- 핵심 자산은 코드가 아니라 데이터 — 검증된 상황→조항 매핑은 커뮤니티가 함께 키우는 오픈 데이터입니다.
- 인용은 절대 지어내지 않습니다 — 모든 조항 인용에
source_url(law.go.kr) 필수. 미검증 항목은last_verified: null로 표시됩니다.
데이터 기여
매핑 데이터 추가 방법은 CONTRIBUTING.md를 참고하세요. 템플릿 복사 → 채우기 → slm validate → PR, 10분이면 충분합니다.
라이선스
⚠️ 본 결과는 참고용이며 법적 판단을 대체하지 않습니다.
Metadata
Release files for safety-law-mapper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| safety_law_mapper-0.1.0.tar.gz | 32.4 kB | With provenance | Details for safety_law_mapper-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| safety_law_mapper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for safety_law_mapper-0.1.0-py3-none-any.whl |
Total release size: 66.5 kB
Release files / safety_law_mapper-0.1.0.tar.gz
| Download URL | safety_law_mapper-0.1.0.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d389cf416e8aadd5cb0890d1a3528af58e7137cf46bdbce9a8880364c15d69a
|
|
BLAKE2b-256 checksum How to use checksums |
6756699b10a9894540a67d43f814dddff83ddccad944ba513f327eb20977857f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 26, 2026.
Transparency logRelease files / safety_law_mapper-0.1.0-py3-none-any.whl
| Download URL | safety_law_mapper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 34.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7dd7e10b631ba283eab2b305a124857ebc0b56116e6c72086ea6dd80daa68da
|
|
BLAKE2b-256 checksum How to use checksums |
89da0f67c62f8c643abd5c369cd9288b03d8c1441ff860b3a3c21a39a2449488
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 26, 2026.
Transparency logSecurity for safety-law-mapper 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
Both files in this release have been uploaded with provenance metadata.
Attestation for safety_law_mapper-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 Aug 26, 2026.
Transparency logA 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.