Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pyreinfolib

Latest version: v0.10.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: matsudan
2 Stars
0 Forks
2 Versions
216 Downloads
Python Repo language

Scan summary

pyreinfolib was last scanned on 29 Nov 2026 at version 0.10.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.10.0.
  • Downloads: 216 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.10.0 LATEST 29 Nov 2026 No rules fired
0.9.0 31 Oct 2026 No rules fired

No rules fired in 0.10.0

Findings

Findings for v0.10.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.10.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

pyreinfolib

PyPI Python versions ci License: MIT

日本語 | English

国土交通省の不動産情報ライブラリ API を利用する Python クライアントです。対応する API は対応エンドポイントに一覧があります。

API 仕様はAPI操作説明を参照してください。API キーはAPI利用申請で取得します。

Installation

pip install pyreinfolib

Quick start

import os

from pyreinfolib import Client

client = Client(api_key=os.environ["REINFOLIB_API_KEY"])

# 2024年第1四半期、渋谷区の不動産取引価格
result = client.get_real_estate_prices(year=2024, quarter=1, city="13113")

for record in result["data"]:
    print(record["Type"], record["TradePrice"], record["Area"])

多くのデータは地図のタイル座標を指定して取得します。緯度・経度からの変換には pyreinfolib.tiles を使います。

from pyreinfolib import tiles

tile = tiles.containing(lon=139.7016, lat=35.6580, z=15)

for feature in client.get_use_districts(*tile)["features"]:
    print(feature["properties"]["use_area_ja"])

Endpoints

タイル座標を使わない API

XIT001 では year と、area・city・station のいずれか1つ以上が必須です。XIT002 では area、XCT001 では表にある3つの引数がすべて必須です。その他の引数は任意です。

データ メソッド ID 引数
不動産価格(取引価格・成約価格)情報 get_real_estate_prices XIT001 year、price_classification、quarter、area、city、station、language
都道府県内市区町村一覧 get_municipalities XIT002 area、language
鑑定評価書情報 get_appraisal_reports XCT001 year、area、division
タイル座標を使う API

すべてのメソッドで z、x、y が必須です。XPT001 では period_from と period_to、XPT002 では year も必須です。表の「追加引数」にあるその他の引数は任意で、省略するとその条件では絞り込みません。

データ メソッド ID ズーム 追加引数
不動産価格のポイント get_real_estate_prices_point XPT001 11〜15 period_from(必須)、period_to(必須)、price_classification、land_type_code
地価公示・地価調査のポイント get_land_market_value_publication_and_research_point XPT002 13〜15 year(必須)、price_classification、use_category_code
都市計画区域/区域区分 get_city_planning_areas_and_area_classification XKT001 11〜15 —
用途地域 get_use_districts XKT002 11〜15 —
立地適正化計画 get_location_normalization_plans XKT003 11〜15 —
小学校区 get_elementary_school_districts XKT004 11〜15 administrative_area_code
中学校区 get_junior_high_school_districts XKT005 11〜15 administrative_area_code
学校 get_schools XKT006 13〜15 —
保育園・幼稚園等 get_nursery_schools_and_kindergartens_etc XKT007 13〜15 —
医療機関 get_medical_institutions XKT010 13〜15 —
福祉施設 get_welfare_facilities XKT011 13〜15 administrative_area_code、welfare_facility_class_code、welfare_facility_middle_class_code、welfare_facility_minor_class_code
将来推計人口250mメッシュ get_population_projections_in_250m_grid_squares XKT013 11〜15 —
防火・準防火地域 get_fire_prevention_districts_and_quasi_fire_prevention_districts XKT014 11〜15 —
駅別乗降客数 get_number_of_passengers_per_station XKT015 11〜15 —
災害危険区域 get_disaster_risk_areas XKT016 11〜15 administrative_area_code
図書館 get_libraries XKT017 13〜15 administrative_area_code
市区町村役場及び集会施設等 get_municipal_offices_and_meeting_facilities_etc XKT018 13〜15 —
自然公園地域 get_natural_park_areas XKT019 9〜15 prefecture_code、district_code
大規模盛土造成地マップ get_large_scale_developed_embankments XKT020 11〜15 —
地すべり防止地区 get_landslide_prevention_districts XKT021 11〜15 prefecture_code、administrative_area_code
急傾斜地崩壊危険区域 get_steep_slope_failure_hazard_areas XKT022 11〜15 prefecture_code、administrative_area_code
地区計画 get_district_plans XKT023 11〜15 —
高度利用地区 get_high_level_use_districts XKT024 11〜15 —
地形区分に基づく液状化の発生傾向図 get_liquefaction_tendency_based_on_topographical_classification XKT025 11〜15 —
洪水浸水想定区域(想定最大規模) get_expected_flood_inundation_areas_at_maximum_scale XKT026 14〜15 —
高潮浸水想定区域 get_expected_storm_surge_inundation_areas XKT027 13〜15 —
津波浸水想定 get_expected_tsunami_inundation XKT028 14〜15 —
土砂災害警戒区域 get_sediment_disaster_alert_areas XKT029 11〜15 —
都市計画道路 get_city_planning_roads XKT030 11〜15 —
人口集中地区 get_densely_inhabited_districts XKT031 9〜15 administrative_area_code
雨水出水(内水)浸水想定区域 get_expected_stormwater_flooding_inundation_areas XKT032 13〜15 —
指定緊急避難場所 get_designated_emergency_evacuation_sites XGT001 11〜15 —
災害履歴 get_disaster_history XST001 9〜15 disastertype_code
特別注視区域 get_special_monitored_areas XNT001 11〜15 —

引数の形式とコード表は各メソッドの docstring に記載しています。

Tile coordinates

点を含むタイル(containing)
from pyreinfolib import tiles

tile = tiles.containing(lon=139.7016, lat=35.6580, z=15)
# Tile(z=15, x=29099, y=12905)

client.get_number_of_passengers_per_station(*tile)

Tile は z, x, y の順なので、タイル系メソッドにそのまま展開できます。緯度と経度はどちらも float で順序の間違いを型では検出できないため、containing にはキーワード引数で渡します。

利用できるズームレベルはエンドポイントごとに異なります。範囲外を渡すと、利用できる範囲を示す ValueError が発生します。

指定範囲を覆うタイル(covering / count_covering)
box = {"west": 139.665, "south": 35.640, "east": 139.724, "north": 35.679}

print(tiles.count_covering(**box, z=15))  # 30

for tile in tiles.covering(**box, z=15):
    client.get_real_estate_prices_point(*tile, period_from=20241, period_to=20242)

1タイルにつき1リクエストになるため、実行前に count_covering() で枚数を確認してください。東京付近では、ズーム15のタイルはおよそ1 km四方です。

タイルの範囲(bounds)
tiles.bounds(tile)
# Bounds(west=139.691162109375, south=35.65729624809628, east=139.7021484375, north=35.66622234103478)

Bounds は GeoJSON の bbox と同じく west, south, east, north の順です。

Filtering

コードを使う引数

コードを受け取る引数には、単一のコードまたはコードのシーケンスを渡せます。

client.get_elementary_school_districts(z=11, x=1819, y=806, administrative_area_code="13102")
client.get_elementary_school_districts(z=11, x=1819, y=806, administrative_area_code=["01101", "13102"])

price_classification、division、land_type_code、use_category_code には pyreinfolib.enums の enum を渡します。

from pyreinfolib.enums import LandTypeCode, PriceClassification

client.get_real_estate_prices_point(
    z=15,
    x=29099,
    y=12905,
    period_from=20241,
    period_to=20242,
    price_classification=PriceClassification.CONTRACT_PRICE,
    land_type_code=[LandTypeCode.LAND, LandTypeCode.LAND_AND_BUILDING],
)

API 上ではどちらも priceClassification ですが、XIT001/XPT001 と XPT002 ではコード体系が異なります。別の型にしてあるため、取り違えは型チェックで検出できます。

enum 対象 コード
PriceClassification 不動産価格(XIT001、XPT001) 01 不動産取引価格情報 / 02 成約価格情報
LandPriceClassification 地価公示・地価調査(XPT002) 0 地価公示 / 1 都道府県地価調査

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases pyreinfolib

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229