
devnorsai/devnors-data-python
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
devnorsai/devnors-data-python은 [[T0]에서 임포트한 MCP 서버 후보입니다.
개요
devnorsai/devnors-data-python은 [[T0]에서 임포트한 MCP 서버 후보입니다.
개요(AI 번역)
简体中文 | 영어
파이썬의 Devnors 데이터를 하나의 API 키로 사용하세요.
법적 사건, 법률, 기업 데이터, 콘텐츠 색인, 학술 연구 등에 전화하세요
(논문 / 특허 / 학술지 / 학자들), 명시 추적 등 다양한 기능을 통해
단일 POST /v1/data/query 게이트웨이. 모든 히트는 AI 에이전트를 위해 설계되었으며,
해당 시 공식 출처 추적성.
설치
퀵 스타트
API 키를 생성합니다. 그렇다면 개발자 콘솔:
비동기:
토큰
Devnors 데이터 API 키를 다음과 같은 방식으로 활용하세요:
또는 :
선택적 프라이빗/셀프 호스팅 기본 URL:
당신이 할 수 있는 일들
재시도와 페이지 설정
429/5xx/ 연결 오류에 대한 자동 재시도 (유한한 지수 함수) 백오프).400/401/402/501같은 재시도 불가능한 오류는 절대 발생하지 않습니다 재시도.DevnorsData(..., max_retries=0)로 비활성화.- 페이지네이션 도우미:
paginate(...)는total_hits를 사용해 페이지를 이동시킵니다.
청구 및 오류
- 성공적인 호출은
units(토큰 충전)과request_id를 반환합니다. - 잔액 부족은
DevnorsDataError(code="insufficient_balance", status=402)를 인상합니다. - 요금 한도 상승
code="rate_limited"(429).
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Devnors Data Python SDK
简体中文 | English
Use Devnors Data from Python with one API Key.
Call legal cases, laws, enterprise data, content indexes, academic research
(papers / patents / journals / scholars), express tracking, and more through a
single POST /v1/data/query gateway. Every hit is designed for AI agents, with
official-source traceability where applicable.
Install
pip install devnors-data
Quick Start
Create an API Key in the developer console, then:
from devnors_data import DevnorsData
client = DevnorsData(api_key="devnors_sk_live_xxx") # or set DEVNORS_API_KEY
# Legal judgment documents
res = client.legal_cases("民间借贷 利息", top_k=10)
for hit in res["hits"]:
print(hit.get("case_no"), hit.get("title"))
# Law articles
laws = client.legal_laws("合同解除 违约金")
# Unified entry for any domain / type
res = client.query(domain="legal", type="case", query="劳动争议", top_k=5)
print(res["units"], "tokens used")
Async:
import asyncio
from devnors_data import AsyncDevnorsData
async def main():
client = AsyncDevnorsData(api_key="devnors_sk_live_xxx")
res = await client.legal_cases("交通事故 责任认定")
print(res["total_hits"])
asyncio.run(main())
Token
Use your Devnors Data API Key in one of these ways:
DevnorsData(api_key="devnors_sk_live_xxx")
or:
DEVNORS_API_KEY=devnors_sk_live_xxx
Optional private / self-hosted base URL:
DEVNORS_DATA_BASE_URL=https://data.devnors.com
Things You Can Do
Search Chinese legal judgment documents for private lending disputes.
Look up current PRC law articles about contract termination and liquidated damages.
Query company registration details with a credit code or company name.
Check whether a company is on the dishonest judgment debtor list.
Get Baidu suggest keywords for "lawyer".
Track a parcel with company code and tracking number.
Search academic papers, patents, journals, or scholars, then fetch a detail by ID.
Paginate legal case hits until I have 100 results.
Retry and Pagination
- Automatic retry for
429/5xx/ connection errors (bounded exponential backoff). Non-retryable errors such as400/401/402/501are never retried. Disable withDevnorsData(..., max_retries=0). - Pagination helper:
paginate(...)walks pages usingtotal_hits.
for hit in client.paginate("legal", "case", "借贷纠纷", page_size=20, max_items=100):
print(hit.get("case_no"))
Billing and Errors
- Successful calls return
units(tokens charged) andrequest_id. - Insufficient balance raises
DevnorsDataError(code="insufficient_balance", status=402). - Rate limit raises
code="rate_limited"(429). - Each
DevnorsDataErrorincludescode/retryable/next_action/request_id.
Data Domains
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →