mboek 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mboek-0.1.0/.github/workflows/ci.yml +49 -0
- mboek-0.1.0/.github/workflows/publish.yml +49 -0
- mboek-0.1.0/.gitignore +6 -0
- mboek-0.1.0/LICENSE +674 -0
- mboek-0.1.0/PKG-INFO +709 -0
- mboek-0.1.0/README.md +679 -0
- mboek-0.1.0/mboek/__init__.py +115 -0
- mboek-0.1.0/mboek/_client.py +303 -0
- mboek-0.1.0/mboek/_exceptions.py +63 -0
- mboek-0.1.0/mboek/_parsers.py +351 -0
- mboek-0.1.0/mboek/models/__init__.py +128 -0
- mboek-0.1.0/mboek/models/_enums.py +86 -0
- mboek-0.1.0/mboek/models/administraties.py +105 -0
- mboek-0.1.0/mboek/models/auth.py +22 -0
- mboek-0.1.0/mboek/models/auto_booking_rules.py +181 -0
- mboek-0.1.0/mboek/models/boekingen.py +226 -0
- mboek-0.1.0/mboek/models/boekjaren.py +88 -0
- mboek-0.1.0/mboek/models/btw_aangifte.py +87 -0
- mboek-0.1.0/mboek/models/btw_codes.py +127 -0
- mboek-0.1.0/mboek/models/dagboeken.py +116 -0
- mboek-0.1.0/mboek/models/export_import.py +45 -0
- mboek-0.1.0/mboek/models/grootboekrekeningen.py +169 -0
- mboek-0.1.0/mboek/models/reports.py +86 -0
- mboek-0.1.0/mboek/resources/__init__.py +29 -0
- mboek-0.1.0/mboek/resources/_admin_scope.py +134 -0
- mboek-0.1.0/mboek/resources/_base.py +36 -0
- mboek-0.1.0/mboek/resources/_boekjaar_scope.py +159 -0
- mboek-0.1.0/mboek/resources/_dagboek_scope.py +99 -0
- mboek-0.1.0/mboek/resources/administraties.py +91 -0
- mboek-0.1.0/mboek/resources/auth.py +59 -0
- mboek-0.1.0/mboek/resources/auto_booking_rules.py +99 -0
- mboek-0.1.0/mboek/resources/boekingen.py +65 -0
- mboek-0.1.0/mboek/resources/boekjaren.py +134 -0
- mboek-0.1.0/mboek/resources/btw_aangifte.py +93 -0
- mboek-0.1.0/mboek/resources/btw_codes.py +112 -0
- mboek-0.1.0/mboek/resources/dagboeken.py +141 -0
- mboek-0.1.0/mboek/resources/export_import.py +88 -0
- mboek-0.1.0/mboek/resources/grootboekrekeningen.py +182 -0
- mboek-0.1.0/mboek/resources/import_.py +67 -0
- mboek-0.1.0/mboek/resources/maintenance.py +22 -0
- mboek-0.1.0/mboek/resources/reports.py +53 -0
- mboek-0.1.0/pyproject.toml +56 -0
- mboek-0.1.0/tests/__init__.py +0 -0
- mboek-0.1.0/tests/conftest.py +150 -0
- mboek-0.1.0/tests/test_administraties.py +95 -0
- mboek-0.1.0/tests/test_auth.py +120 -0
- mboek-0.1.0/tests/test_boekingen.py +88 -0
- mboek-0.1.0/tests/test_boekjaren.py +103 -0
- mboek-0.1.0/tests/test_btw_codes.py +74 -0
- mboek-0.1.0/tests/test_dagboeken.py +87 -0
- mboek-0.1.0/tests/test_grootboekrekeningen.py +132 -0
- mboek-0.1.0/tests/test_reports.py +55 -0
- mboek-0.1.0/uv.lock +415 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: ["main"]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
name: Test (Python ${{ matrix.python-version }})
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Install uv
|
|
23
|
+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
|
|
27
|
+
- name: Install the project
|
|
28
|
+
run: uv sync --locked --all-extras --dev
|
|
29
|
+
|
|
30
|
+
- name: Run tests
|
|
31
|
+
run: uv run pytest --tb=short -q
|
|
32
|
+
|
|
33
|
+
lint:
|
|
34
|
+
name: Lint
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@v4
|
|
39
|
+
|
|
40
|
+
- name: Install uv
|
|
41
|
+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
42
|
+
with:
|
|
43
|
+
python-version: 3.12
|
|
44
|
+
|
|
45
|
+
- name: Install ruff
|
|
46
|
+
run: uv venv && uv pip install ruff
|
|
47
|
+
|
|
48
|
+
- name: Run ruff
|
|
49
|
+
run: . .venv/bin/activate && ruff check mboek/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
name: Build distribution
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Install uv
|
|
16
|
+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
17
|
+
with:
|
|
18
|
+
python-version: 3.12
|
|
19
|
+
|
|
20
|
+
- name: Build package
|
|
21
|
+
run: uv build
|
|
22
|
+
|
|
23
|
+
- name: Upload dist artifacts
|
|
24
|
+
uses: actions/upload-artifact@v4
|
|
25
|
+
with:
|
|
26
|
+
name: dist
|
|
27
|
+
path: dist/
|
|
28
|
+
|
|
29
|
+
publish:
|
|
30
|
+
name: Publish to PyPI
|
|
31
|
+
needs: build
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
|
|
34
|
+
environment:
|
|
35
|
+
name: pypi
|
|
36
|
+
url: https://pypi.org/project/mboek/
|
|
37
|
+
|
|
38
|
+
permissions:
|
|
39
|
+
id-token: write # required for OIDC trusted publishing
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
- name: Download dist artifacts
|
|
43
|
+
uses: actions/download-artifact@v4
|
|
44
|
+
with:
|
|
45
|
+
name: dist
|
|
46
|
+
path: dist/
|
|
47
|
+
|
|
48
|
+
- name: Publish to PyPI
|
|
49
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|