Metadata-Version: 2.1
Name: openai-billing
Version: 0.1.0a2
Summary: Fetch openai billing info from command line
Home-page: https://github.com/ffreemt/openai-billing-playwright
License: MIT
Author: ffreemt
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: charset-normalizer (>=3.2.0,<4.0.0)
Requires-Dist: loguru (>=0.7.0,<0.8.0)
Requires-Dist: playwright (>=1.37.0,<2.0.0)
Requires-Dist: pyperclip (>=1.8.2,<2.0.0)
Requires-Dist: rich (>=13.5.2,<14.0.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Project-URL: Repository, https://github.com/ffreemt/openai-billing-playwright
Description-Content-Type: text/markdown

# openai-billing-playwright
[![pytest](https://github.com/ffreemt/openai-billing-playwright/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/openai-billing-playwright/actions)[![python](https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue)](https://www.python.org/downloads/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/openai_billing.svg)](https://badge.fury.io/py/openai-billing)

Fetch openai billing info from command line

## Install it
Download [the latest release](https://github.com/ffreemt/openai-billing-playwright/releases) and unzip.

## Use it
Run `openai-billing.exe` from command line.
```bash
openai-billing.exe --help

openai-billing.exe u@gmai.com pw1 u2@gmai.com pw2

# check two pairs
openai-billing.exe u@gmai.com pw1 u2@gmai.com pw2

# or when special characters (&, * etc) are in passwords
openai-billing.exe "u@gmai.com pw*1 u2@gmai.com pw2&"

# check pairs in clipboard
openai-billing.exe openai_billing

# check pairs in a file
openai-billing.exe --filename email-pw-pairs.txt

# use a proxy
openai-billing.exe --proxy soscks5://127.0.0.1:1080 u@gmai.com pw1 u2@gmai.com pw2

# turn on browser: to see the whole thing in action
openai-billing.exe u@gmai.com pw1 --headful

# turn on debug
set LOGURU_LEVEL=TRACE
openai-billing.exe u@gmai.com pw1 --headful
```

## Use it with python
```shell
pip install openai-billing
# pip install git+https://github.com/ffreemt/openai-billing-playwright
# poetry add git+https://github.com/ffreemt/openai-billing-playwright
# git clone https://github.com/ffreemt/openai-billing-playwright && cd openai-billing-playwright
```

```bash
python -m openai_billing

# or
openai-billing

# help
python -m openai_billing --help

# check two pairs
python -m openai_billing u@gmai.com pw1 u2@gmai.com pw2

# or special characters (&, * etc) in passwords
python -m openai_billing "u@gmai.com pw*1 u2@gmai.com pw2&"

# check pairs in clipboard
python -m openai_billing

# check pairs in a file
python -m openai_billing --filename email-pw-pairs.txt

# use a proxy
python -m openai_billing --proxy soscks5://127.0.0.1:1080 u@gmai.com pw1 u2@gmai.com pw2

# turn on browser: to see the whole thing in action
python -m openai_billing u@gmai.com pw1 --headful

# turn on debug
set LOGURU_LEVEL=TRACE
python -m openai_billing u@gmai.com pw1 --headful

```

