Skip to main content

Query Japanese open data on Queria (data.queria.io) from the terminal, Python, and MCP

Project description

queria

Query Japanese open data on Queria from the terminal, Python, and MCP.

Queria が公開する日本のオープンデータ(e-Stat、国土数値情報、EDINET、気象庁ほか)を、ターミナル・Python・MCP から read-only で探索するクライアントです。データは DuckLake 形式で公開されており、計算はすべて手元の DuckDB で行われます。

インストール

uvx queria list          # インストール不要で実行
pip install queria       # または通常インストール

Python 3.10+ が必要です。

使い方

queria list                              # データセット一覧
queria search 人口                        # キーワード検索
queria schema e_stat                     # テーブル一覧
queria columns e_stat mart_population    # カラム一覧
queria sql "SELECT * FROM zipcode.main.zipcodes LIMIT 10"
queria sql "SELECT * FROM zipcode.main.zipcodes" --out zipcodes.parquet

テーブルは <dataset>.<schema>.<table> で参照します。参照したデータセットは自動的に ATTACH されます。

Python API

import queria

with queria.connect() as conn:
    conn.sql("SELECT * FROM catalog.main.mart_datasets").show()

MCP サーバー

Claude Code / Claude Desktop / Cursor などの MCP クライアントから使えます:

{
  "mcpServers": {
    "queria": {
      "command": "uvx",
      "args": ["--from", "queria[mcp]", "queria", "mcp"]
    }
  }
}

ドキュメント

https://docs.queria.io/

License

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

queria-0.1.0.tar.gz (108.4 kB view details)

Uploaded Source

Built Distribution

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

queria-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file queria-0.1.0.tar.gz.

File metadata

  • Download URL: queria-0.1.0.tar.gz
  • Upload date:
  • Size: 108.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for queria-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3343a724c4728ab829ad6f3809630c9001ccd058137f56db3b7a9c6efbf8ddc4
MD5 4909c2faf5e44d22e34feac9284e234e
BLAKE2b-256 f457957160b4dee127d4ab5a9736649c78409bc4ff1c5101dace41ac8c5a5369

See more details on using hashes here.

Provenance

The following attestation bundles were made for queria-0.1.0.tar.gz:

Publisher: release.yml on queria-io/queria-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file queria-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: queria-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for queria-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8df4c54014028fa6709ea26d82b9e1df680faf18a37e84800ab64dc687ca32b
MD5 a64cdefd18a332751b4b6044ef66597d
BLAKE2b-256 ede42f211957e11e5a343a1b23d8475e310a3bdd40932f9d8f06b36b4209be92

See more details on using hashes here.

Provenance

The following attestation bundles were made for queria-0.1.0-py3-none-any.whl:

Publisher: release.yml on queria-io/queria-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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