Metadata-Version: 2.3
Name: zaim-sqlite
Version: 0.2.3
Summary: ZaimのデータをSQLite DBに格納するPythonパッケージ
Project-URL: Homepage, https://github.com/ryohidaka/zaim-sqlite
Project-URL: Repository, https://github.com/ryohidaka/zaim-sqlite
Project-URL: Issues, https://github.com/ryohidaka/zaim-sqlite/issues
Project-URL: Changelog, https://github.com/ryohidaka/blob/main/zaim-sqlite/CHANGELOG.md
Author-email: ryohidaka <39184410+ryohidaka@users.noreply.github.com>
License: MIT License
        
        Copyright (c) 2024 日高 凌
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: japan,japanese,sqlite,zaim
Requires-Python: >=3.8
Requires-Dist: pandas>=2.2.2
Requires-Dist: pyzaim>=1.1.0
Requires-Dist: sqlalchemy>=2.0.31
Requires-Dist: tqdm>=4.66.2
Description-Content-Type: text/markdown

# zaim-sqlite

[![PyPI version](https://badge.fury.io/py/zaim-sqlite.svg)](https://badge.fury.io/py/zaim-sqlite)
![build](https://github.com/ryohidaka/zaim-sqlite/workflows/Build/badge.svg)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

Zaim のデータを SQLite DB に格納する Python パッケージ

## Installation

You can install this library using PyPI:

```shell
pip install zaim-sqlite
```

## 使用方法

```py
from zaim_sqlite import ZaimSqlite

database = "sqlite:///db/zaim.db"

# Zaim2Sqlite クラスのインスタンスを作成
app = ZaimSqlite(
    database,
    consumer_id,
    consumer_secret,
    access_token,
    access_token_secret,
    oauth_verifier,
)

# 口座一覧を挿入する
app.upsert_accounts()

# カテゴリ一覧を挿入する
app.upsert_categories()

# カテゴリの内訳一覧を挿入する
app.upsert_genres()

# 入出金履歴を挿入する
app.upsert_money()
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
