Metadata-Version: 2.1
Name: openapi-client-builder
Version: 0.1.41
Summary: A tool that automatically generates client-side APIs based on the OpenAPI specification. Simplify the process of interacting with APIs by creating client libraries from OpenAPI definitions, enabling seamless integration and communication with backend services. The tool generates TypeScript request files and currently supports Nuxt framework, with plans to extend support to SvelteKit in the future.
Author: AnsonCar
Author-email: anson1tsang@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: requests (>=2.32.3,<3.0.0)
Requires-Dist: typer (>=0.12.5,<0.13.0)
Description-Content-Type: text/markdown

# openapi_client_builder

A tool that automatically generates client-side APIs based on the OpenAPI specification. Simplify the process of interacting with APIs by creating client libraries from OpenAPI definitions, enabling seamless integration and communication with backend services. 

> The tool generates TypeScript request files and currently supports Nuxt framework, with plans to extend support to SvelteKit in the future.

**Usage**:

```console
$ api-cli [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `api`
* `type`

## `api-cli api`

**Usage**:

```console
$ api-cli api [OPTIONS]
```

**Options**:

* `--host TEXT`: [default: 127.0.0.1]
* `--port TEXT`: [default: 8000]
* `--path TEXT`: [default: /api/openapi.json]
* `--url TEXT`
* `--output TEXT`: [default: ./dist]
* `--name TEXT`: [default: db_api.d.ts]
* `--help`: Show this message and exit.

## `api-cli type`

**Usage**:

```console
$ api-cli type [OPTIONS]
```

**Options**:

* `--host TEXT`: [default: 127.0.0.1]
* `--port TEXT`: [default: 8000]
* `--path TEXT`: [default: /api/openapi.json]
* `--url TEXT`
* `--output TEXT`: [default: ./dist]
* `--name TEXT`: [default: api.types.d.ts]
* `--help`: Show this message and exit.

