Sercher - Grok Web検索ツール
GrokのAPIを使用してWeb検索を実行するコマンドラインツールです。
インストール
PyPI からインストール(推奨)
pip install sercher
ソースからインストール
git clone https://github.com/sugarkwork/sercher.git
cd sercher
pip install -e .
セットアップ
-
XAI APIキーを取得:
- XAI Console でアカウントを作成
- APIキーを生成
-
環境変数を設定:
# .envファイルを作成(.env.exampleを参考に) cp .env.example .env # .envファイルを編集してAPIキーを設定
または環境変数として直接設定:
export XAI_API_KEY=your_api_key_here
使用方法
基本的な使用方法
sercher "検索キーワード"
モジュール形式で実行
python -m sercher "検索キーワード"
オプション
-v, --verbose: 詳細な出力を表示-h, --help: ヘルプメッセージを表示
使用例
# 基本的な検索
sercher "フランスの首都は何ですか?"
# 詳細出力付き
sercher -v "最新のAI技術について教えて"
# モジュール形式で実行
python -m sercher "今日の天気は?"
開発者向け
パッケージのビルド
python -m build
PyPI へのアップロード
python -m twine upload dist/*
ライセンス
MIT License - 詳細は LICENSE ファイルを参照してください。
貢献
プルリクエストやイシューの報告を歓迎します。
Metadata
Release files for sercher 1.0.1
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 |
|---|---|---|---|---|
| sercher-1.0.1.tar.gz | 4.8 kB | Without provenance | Details for sercher-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sercher-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for sercher-1.0.1-py3-none-any.whl |
Total release size: 9.2 kB
Release files / sercher-1.0.1.tar.gz
| Download URL | sercher-1.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7963ee9b13f2ebf44c5e2b48f695c96cf59492224f925fe449780ae67578a310
|
|
BLAKE2b-256 checksum How to use checksums |
025780da5f60b13fdf706cecb6efcdbe31c5d1b08575b773d9bc12b552a4d8ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Release files / sercher-1.0.1-py3-none-any.whl
| Download URL | sercher-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c5d03cc15dba888220c860f30586c1256b769f42f1c96cbcd91d950a0f00c99
|
|
BLAKE2b-256 checksum How to use checksums |
8954d2f92145b44ec8ac2c630d02c5135acff65e34c0bc43dcc468382a7b7b6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Security for sercher 1.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.