Skip to main content

Google Patents metadata fetcher — command-line tool

Project description

google-patent-cli

Google Patents에서 특허 메타데이터를 조회하는 커맨드라인 도구입니다.

설치

# pipx (권장 — 격리된 환경)
pipx install google-patent-cli

# uv
uv tool install google-patent-cli

# pip
pip install google-patent-cli

사용법

특허 조회

# 기본 (JSON 출력)
gpc lookup US20250350789

# 텍스트 형식
gpc lookup US12514139B2 --format text

# TSV 형식
gpc lookup US20250350789 --format tsv

# 단일 필드만 출력
gpc lookup US20250350789 --field title

# 여러 필드 선택
gpc lookup US20250350789 --fields title,assignee,filing_date

# 파일로 저장
gpc lookup US12514139B2 --output-dir ./output
gpc lookup US12514139B2 --format text --output-dir ./output

사용 가능한 필드 목록

gpc fields
필드명 설명
publication_number 공개번호 (예: US12514139B2)
number_without_kind Kind code 제외 번호
application_number 출원번호
kind_code Kind code (예: B2, A1)
country 국가 코드
title 발명의 명칭
abstract 요약
inventors 발명자 목록
assignee 출원인 / 양수인
filing_date 출원일
publication_date 공개일
cpc_codes CPC 분류 코드 목록
claims 청구항 목록
description 상세설명 전문

프록시 / SSL 설정

사내 네트워크나 프록시 환경에서는 설정 파일을 사용합니다.

gpc configure

설정은 ~/.patent-cli.toml 에 저장됩니다.

[proxy]
https = "http://proxy.example.com:8080"
http  = "http://proxy.example.com:8080"

[ssl]
ca_bundle = "/path/to/ca-bundle.crt"

옵션

gpc lookup --help

Options:
  -f, --format [json|text|tsv]  출력 형식 (기본: json)
  --field FIELD                  단일 필드 값만 출력
  --fields F1,F2,...             쉼표 구분 필드 목록
  -t, --timeout INTEGER          HTTP 타임아웃 (초, 기본: 15)
  -o, --output-dir DIR           결과 파일 저장 폴더
  -v, --verbose                  디버그 로그 출력

python -m 으로 실행

python -m google_patent_cli lookup US12514139B2

면책 조항

이 도구는 Google Patents 공개 웹 페이지를 스크래핑합니다. Google 이용 약관을 준수하여 사용하세요. 과도한 요청은 IP 차단으로 이어질 수 있습니다.

라이선스

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_patent_cli-0.1.2.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_patent_cli-0.1.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file google_patent_cli-0.1.2.tar.gz.

File metadata

  • Download URL: google_patent_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for google_patent_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4646411574ae0fcd525dde01a9e6e15c0cdfaa0fad2eda1123cfa35872afda77
MD5 a886825201ab06d0d086833d1cb438ce
BLAKE2b-256 0709c4e0dbbda389b671a2a2bd6aa045f8cc0321114fa686c5767841b60abb15

See more details on using hashes here.

File details

Details for the file google_patent_cli-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for google_patent_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e7b3a1b8d7c1236955e60aa73fc83e1e98261b9c9d04952d7464d57e43de18a
MD5 ae4ebbe8ead336f72c0a9dac547abd88
BLAKE2b-256 5d6dcc4ffd93eebe77ef63f3750889707b26f8b45ce584167a38e94d41b3ce85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page