Skip to content

Commit f6cac70

Browse files
committed
🐍 python client
1 parent 3b0aa80 commit f6cac70

File tree

148 files changed

+22795
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+22795
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: lunchable Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
pip install -r test-requirements.txt
28+
- name: Test with pytest
29+
run: |
30+
pytest --cov={{packageName}}

clients/python/.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints

clients/python/.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=lunchable
16+
17+
pytest-3.8:
18+
extends: .pytest
19+
image: python:3.8-alpine
20+
pytest-3.9:
21+
extends: .pytest
22+
image: python:3.9-alpine
23+
pytest-3.10:
24+
extends: .pytest
25+
image: python:3.10-alpine
26+
pytest-3.11:
27+
extends: .pytest
28+
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.travis.yml
5+
README.md
6+
docs/AccountTypeEnum.md
7+
docs/CategoriesApi.md
8+
docs/CategoryObject.md
9+
docs/CreateCategoryRequestObjectChildrenInner.md
10+
docs/CreateNewTransactions201Response.md
11+
docs/CreateNewTransactionsRequest.md
12+
docs/CurrencyEnum.md
13+
docs/DeleteCategoryResponseWithDependenciesDependents.md
14+
docs/DeleteTagResponseWithDependenciesDependents.md
15+
docs/DeleteTransactionsRequest.md
16+
docs/ErrorResponseObject.md
17+
docs/GetAllCategories200Response.md
18+
docs/GetAllManualAccounts200Response.md
19+
docs/GetAllPlaidAccounts200Response.md
20+
docs/GetAllRecurring200Response.md
21+
docs/GetAllTags200Response.md
22+
docs/GetAllTransactions200Response.md
23+
docs/GroupTransactions201Response.md
24+
docs/GroupTransactionsRequest.md
25+
docs/InsertTransactionObjectAmount.md
26+
docs/ManualAccountObject.md
27+
docs/ManualAccountsApi.md
28+
docs/MeApi.md
29+
docs/PlaidAccountObject.md
30+
docs/PlaidAccountsApi.md
31+
docs/RecurringApi.md
32+
docs/RecurringObject.md
33+
docs/RecurringObjectMatches.md
34+
docs/RecurringObjectMatchesFoundTransactionsInner.md
35+
docs/RecurringObjectOverrides.md
36+
docs/RecurringObjectTransactionCriteria.md
37+
docs/SplitTransactionObjectAmount.md
38+
docs/SplitTransactionRequest.md
39+
docs/TagObject.md
40+
docs/TagsApi.md
41+
docs/TransactionObject.md
42+
docs/TransactionsApi.md
43+
docs/TransactionsBulkApi.md
44+
docs/TransactionsGroupApi.md
45+
docs/TransactionsSplitApi.md
46+
docs/UserObject.md
47+
git_push.sh
48+
lunchable/__init__.py
49+
lunchable/api/__init__.py
50+
lunchable/api/categories_api.py
51+
lunchable/api/manual_accounts_api.py
52+
lunchable/api/me_api.py
53+
lunchable/api/plaid_accounts_api.py
54+
lunchable/api/recurring_api.py
55+
lunchable/api/tags_api.py
56+
lunchable/api/transactions_api.py
57+
lunchable/api/transactions_bulk_api.py
58+
lunchable/api/transactions_group_api.py
59+
lunchable/api/transactions_split_api.py
60+
lunchable/api_client.py
61+
lunchable/api_response.py
62+
lunchable/configuration.py
63+
lunchable/exceptions.py
64+
lunchable/models/__init__.py
65+
lunchable/models/account_type_enum.py
66+
lunchable/models/category_object.py
67+
lunchable/models/create_category_request_object_children_inner.py
68+
lunchable/models/create_new_transactions201_response.py
69+
lunchable/models/create_new_transactions_request.py
70+
lunchable/models/currency_enum.py
71+
lunchable/models/delete_category_response_with_dependencies_dependents.py
72+
lunchable/models/delete_tag_response_with_dependencies_dependents.py
73+
lunchable/models/delete_transactions_request.py
74+
lunchable/models/error_response_object.py
75+
lunchable/models/get_all_categories200_response.py
76+
lunchable/models/get_all_manual_accounts200_response.py
77+
lunchable/models/get_all_plaid_accounts200_response.py
78+
lunchable/models/get_all_recurring200_response.py
79+
lunchable/models/get_all_tags200_response.py
80+
lunchable/models/get_all_transactions200_response.py
81+
lunchable/models/group_transactions201_response.py
82+
lunchable/models/group_transactions_request.py
83+
lunchable/models/insert_transaction_object_amount.py
84+
lunchable/models/manual_account_object.py
85+
lunchable/models/plaid_account_object.py
86+
lunchable/models/recurring_object.py
87+
lunchable/models/recurring_object_matches.py
88+
lunchable/models/recurring_object_matches_found_transactions_inner.py
89+
lunchable/models/recurring_object_overrides.py
90+
lunchable/models/recurring_object_transaction_criteria.py
91+
lunchable/models/split_transaction_object_amount.py
92+
lunchable/models/split_transaction_request.py
93+
lunchable/models/tag_object.py
94+
lunchable/models/transaction_object.py
95+
lunchable/models/user_object.py
96+
lunchable/py.typed
97+
lunchable/rest.py
98+
pyproject.toml
99+
requirements.txt
100+
setup.cfg
101+
setup.py
102+
test-requirements.txt
103+
test/__init__.py
104+
tox.ini
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.10.0

clients/python/.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "3.8"
5+
- "3.9"
6+
- "3.10"
7+
- "3.11"
8+
- "3.12"
9+
# uncomment the following if needed
10+
#- "3.12-dev" # 3.12 development branch
11+
#- "nightly" # nightly build
12+
# command to install dependencies
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
16+
# command to run tests
17+
script: pytest --cov=lunchable

0 commit comments

Comments
 (0)