Skip to content

Commit

Permalink
🐍 python client
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Dec 26, 2024
1 parent 8e37e00 commit 45e282d
Show file tree
Hide file tree
Showing 148 changed files with 22,837 additions and 0 deletions.
30 changes: 30 additions & 0 deletions clients/python/.github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: lunchable Python package

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Test with pytest
run: |
pytest --cov={{packageName}}
66 changes: 66 additions & 0 deletions clients/python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
venv/
.venv/
.python-version
.pytest_cache

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints
31 changes: 31 additions & 0 deletions clients/python/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.gitlab.com/ee/ci/README.html
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml

stages:
- test

.pytest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=lunchable

pytest-3.8:
extends: .pytest
image: python:3.8-alpine
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
pytest-3.12:
extends: .pytest
image: python:3.12-alpine
23 changes: 23 additions & 0 deletions clients/python/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
146 changes: 146 additions & 0 deletions clients/python/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
.github/workflows/python.yml
.gitignore
.gitlab-ci.yml
.openapi-generator-ignore
.travis.yml
README.md
docs/AccountTypeEnum.md
docs/CategoriesApi.md
docs/CategoryObject.md
docs/CreateCategoryRequestObjectChildrenInner.md
docs/CreateNewTransactions201Response.md
docs/CreateNewTransactionsRequest.md
docs/CurrencyEnum.md
docs/DeleteCategoryResponseWithDependenciesDependents.md
docs/DeleteTagResponseWithDependenciesDependents.md
docs/DeleteTransactionsRequest.md
docs/ErrorResponseObject.md
docs/GetAllCategories200Response.md
docs/GetAllManualAccounts200Response.md
docs/GetAllPlaidAccounts200Response.md
docs/GetAllRecurring200Response.md
docs/GetAllTags200Response.md
docs/GetAllTransactions200Response.md
docs/GroupTransactions201Response.md
docs/GroupTransactionsRequest.md
docs/InsertTransactionObjectAmount.md
docs/ManualAccountObject.md
docs/ManualAccountsApi.md
docs/MeApi.md
docs/PlaidAccountObject.md
docs/PlaidAccountsApi.md
docs/RecurringApi.md
docs/RecurringObject.md
docs/RecurringObjectMatches.md
docs/RecurringObjectMatchesFoundTransactionsInner.md
docs/RecurringObjectOverrides.md
docs/RecurringObjectTransactionCriteria.md
docs/SplitTransactionObjectAmount.md
docs/SplitTransactionRequest.md
docs/TagObject.md
docs/TagsApi.md
docs/TransactionObject.md
docs/TransactionsApi.md
docs/TransactionsBulkApi.md
docs/TransactionsGroupApi.md
docs/TransactionsSplitApi.md
docs/UserObject.md
git_push.sh
lunchable/__init__.py
lunchable/api/__init__.py
lunchable/api/categories_api.py
lunchable/api/manual_accounts_api.py
lunchable/api/me_api.py
lunchable/api/plaid_accounts_api.py
lunchable/api/recurring_api.py
lunchable/api/tags_api.py
lunchable/api/transactions_api.py
lunchable/api/transactions_bulk_api.py
lunchable/api/transactions_group_api.py
lunchable/api/transactions_split_api.py
lunchable/api_client.py
lunchable/api_response.py
lunchable/configuration.py
lunchable/exceptions.py
lunchable/models/__init__.py
lunchable/models/account_type_enum.py
lunchable/models/category_object.py
lunchable/models/create_category_request_object_children_inner.py
lunchable/models/create_new_transactions201_response.py
lunchable/models/create_new_transactions_request.py
lunchable/models/currency_enum.py
lunchable/models/delete_category_response_with_dependencies_dependents.py
lunchable/models/delete_tag_response_with_dependencies_dependents.py
lunchable/models/delete_transactions_request.py
lunchable/models/error_response_object.py
lunchable/models/get_all_categories200_response.py
lunchable/models/get_all_manual_accounts200_response.py
lunchable/models/get_all_plaid_accounts200_response.py
lunchable/models/get_all_recurring200_response.py
lunchable/models/get_all_tags200_response.py
lunchable/models/get_all_transactions200_response.py
lunchable/models/group_transactions201_response.py
lunchable/models/group_transactions_request.py
lunchable/models/insert_transaction_object_amount.py
lunchable/models/manual_account_object.py
lunchable/models/plaid_account_object.py
lunchable/models/recurring_object.py
lunchable/models/recurring_object_matches.py
lunchable/models/recurring_object_matches_found_transactions_inner.py
lunchable/models/recurring_object_overrides.py
lunchable/models/recurring_object_transaction_criteria.py
lunchable/models/split_transaction_object_amount.py
lunchable/models/split_transaction_request.py
lunchable/models/tag_object.py
lunchable/models/transaction_object.py
lunchable/models/user_object.py
lunchable/py.typed
lunchable/rest.py
pyproject.toml
requirements.txt
setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_account_type_enum.py
test/test_categories_api.py
test/test_category_object.py
test/test_create_category_request_object_children_inner.py
test/test_create_new_transactions201_response.py
test/test_create_new_transactions_request.py
test/test_currency_enum.py
test/test_delete_category_response_with_dependencies_dependents.py
test/test_delete_tag_response_with_dependencies_dependents.py
test/test_delete_transactions_request.py
test/test_error_response_object.py
test/test_get_all_categories200_response.py
test/test_get_all_manual_accounts200_response.py
test/test_get_all_plaid_accounts200_response.py
test/test_get_all_recurring200_response.py
test/test_get_all_tags200_response.py
test/test_get_all_transactions200_response.py
test/test_group_transactions201_response.py
test/test_group_transactions_request.py
test/test_insert_transaction_object_amount.py
test/test_manual_account_object.py
test/test_manual_accounts_api.py
test/test_me_api.py
test/test_plaid_account_object.py
test/test_plaid_accounts_api.py
test/test_recurring_api.py
test/test_recurring_object.py
test/test_recurring_object_matches.py
test/test_recurring_object_matches_found_transactions_inner.py
test/test_recurring_object_overrides.py
test/test_recurring_object_transaction_criteria.py
test/test_split_transaction_object_amount.py
test/test_split_transaction_request.py
test/test_tag_object.py
test/test_tags_api.py
test/test_transaction_object.py
test/test_transactions_api.py
test/test_transactions_bulk_api.py
test/test_transactions_group_api.py
test/test_transactions_split_api.py
test/test_user_object.py
tox.ini
1 change: 1 addition & 0 deletions clients/python/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.10.0
17 changes: 17 additions & 0 deletions clients/python/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
# uncomment the following if needed
#- "3.12-dev" # 3.12 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
- "pip install -r requirements.txt"
- "pip install -r test-requirements.txt"
# command to run tests
script: pytest --cov=lunchable
Loading

0 comments on commit 45e282d

Please sign in to comment.