Metadata-Version: 2.1
Name: query_quiver
Version: 0.0.4
Summary: Support brainstorming for technical blog using your Google Chrome history.
Home-page: https://github.com/marutaku
Author: marutaku
Author-email: satouredstone@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
Requires-Dist: fire (>=0.5.0,<0.6.0)
Requires-Dist: openai (>=1.6.1,<2.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: tiktoken (>=0.5.2,<0.6.0)
Project-URL: Repository, https://github.com/marutaku/QueryQuiver
Description-Content-Type: text/markdown

![QueryQuiver](https://raw.githubusercontent.com/marutaku/QueryQuiver/main/logos/query_quiver_banner.png)

<div style="display: flex; gap: 8px">

[![Check code](https://github.com/marutaku/QueryQuiver/actions/workflows/ci.yml/badge.svg)](https://github.com/marutaku/QueryQuiver/actions/workflows/ci.yml)

![PyPI - Version](https://img.shields.io/pypi/v/query_quiver)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/query_quiver)

![PyPI - Wheel](https://img.shields.io/pypi/wheel/query_quiver)

</div>

# QueryQuiver

QueryQuiver estimates your interests based on your past Google Chrome search history and suggests technical article ideas that you might be comfortable writing about.

## Install

<!-- ```shell
pip install queryquiver
```

or If you want to install from source code, you can install it as follows.
 -->

```shell
pip install git+https://github.com/marutaku/QueryQuiver
```

## Usage

Please close Google Chrome before using this tool.

The tool references the SQLite database used internally by Google Chrome.

While using GoogleChrome, this SQLite database will be locked and an error will occur.

```shell
queryquiver generate
```

### Options

```shell
queryquiver generate --help

NAME
    queryquiver generate - Generate idea of tech articles from Google Chrome history

SYNOPSIS
    queryquiver generate <flags>

DESCRIPTION
    Generate idea of tech articles from Google Chrome history

FLAGS
    -q, --query_history_limit=QUERY_HISTORY_LIMIT
        Type: int
        Default: 20
    -n, --number_of_ideas=NUMBER_OF_IDEAS
        Type: int
        Default: 5
    -c, --chrome_history_path=CHROME_HISTORY_PATH
        Type: Optional[str | None]
        Default: None
    -o, --openai_api_key=OPENAI_API_KEY
        Type: Optional[str | None]
        Default: None
    -d, --debug=DEBUG
        Type: bool
        Default: False
    -l, --language=LANGUAGE
        Type: str
        Default: 'en'
    -u, --use_gpt4=USE_GPT4
        Type: bool
        Default: False
```

## Developer information

### setup

```shell
make setup
```

### test

```shell
make test
```

### lint

```shell
make lint
```

### format

```shell
make format
```

