Skip to content

Commit 2bf0952

Browse files
committed
Initial Commit
0 parents  commit 2bf0952

27 files changed

+32510
-0
lines changed

.github/workflows/build-sdk.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Generate clients
2+
on: push
3+
jobs:
4+
generate-clients:
5+
runs-on: ubuntu-latest
6+
name: Example
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: Set up Python 3.11
10+
uses: actions/setup-python@v1
11+
with:
12+
python-version: 3.11
13+
14+
- name: Install
15+
run: >-
16+
python -m
17+
pip install -r requirements.txt
18+
--user
19+
20+
- name: Install swagger-cli
21+
run: npm install -g swagger-cli
22+
23+
- name: Merge OpenAPI specs
24+
run: |
25+
swagger-cli bundle specs/*.yml -o specs/openapi.yaml
26+
27+
- name: Generate unified client
28+
uses: openapi-generators/openapitools-generator-action@v1
29+
with:
30+
generator: python
31+
openapi-file: ./specs/openapi.yaml
32+
additional-properties: |
33+
packageName=ls_zoho_billing,
34+
projectName=ls-zoho-billing,
35+
packageVersion=1.0.0,
36+
packageDescription="Python client for Zoho Billing",
37+
packageAuthor="Letstream",
38+
packageAuthorEmail=support@theletstream.com,
39+
packageUrl="https://www.theletstream.com?utm_source=github-zohobillingclient",
40+
licenseName=MIT,
41+
hideGenerationTimestamp=true
42+
43+
- name: Commit new client
44+
run: |
45+
git config --global user.name 'Letstream Bot'
46+
git config --global user.email 'support@theletstream.com'
47+
git add python-client/
48+
git commit -am "Update python client"
49+
git push

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Zoho Billing Python Client
2+
3+
⚠️ This is not an official python client for [Zoho Billing](https://www.zoho.com/billing/api/v1/introduction/#overview).
4+
5+
This repository contains an auto-generated Python client for the Zoho Billing API, built from OpenAPI specifications available at https://www.zoho.com/billing/api/v1/openapi-all.zip
6+
7+
## Installation
8+
9+
You can install the latest version of the client directly from this repository using pip:
10+
11+
```
12+
pip install git+https://github.com/letstream/zoho-billing-python-sdk.git@master#subdirectory=python-client
13+
```
14+
15+
This package is yet not available in Pip package repository.
16+
17+
## Usage
18+
19+
After installation, you can import and use the client in your Python code:
20+
21+
```python
22+
from python_client import ApiClient, Configuration
23+
# ... use the client as per the generated docs ...
24+
```
25+
26+
Refer to the generated documentation in the `python-client/` directory for detailed usage instructions.
27+
28+
## Updating the Client
29+
30+
The client is automatically regenerated and updated whenever the OpenAPI specs in the `specs/` directory are changed and pushed to the repository.
31+
32+
---
33+
34+
This repository is maintained by [Letstream](https://www.theletstream.com?utm_source=github-zohobillingclient)

0 commit comments

Comments
 (0)