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.
Files changed (53) hide show
  1. mboek-0.1.0/.github/workflows/ci.yml +49 -0
  2. mboek-0.1.0/.github/workflows/publish.yml +49 -0
  3. mboek-0.1.0/.gitignore +6 -0
  4. mboek-0.1.0/LICENSE +674 -0
  5. mboek-0.1.0/PKG-INFO +709 -0
  6. mboek-0.1.0/README.md +679 -0
  7. mboek-0.1.0/mboek/__init__.py +115 -0
  8. mboek-0.1.0/mboek/_client.py +303 -0
  9. mboek-0.1.0/mboek/_exceptions.py +63 -0
  10. mboek-0.1.0/mboek/_parsers.py +351 -0
  11. mboek-0.1.0/mboek/models/__init__.py +128 -0
  12. mboek-0.1.0/mboek/models/_enums.py +86 -0
  13. mboek-0.1.0/mboek/models/administraties.py +105 -0
  14. mboek-0.1.0/mboek/models/auth.py +22 -0
  15. mboek-0.1.0/mboek/models/auto_booking_rules.py +181 -0
  16. mboek-0.1.0/mboek/models/boekingen.py +226 -0
  17. mboek-0.1.0/mboek/models/boekjaren.py +88 -0
  18. mboek-0.1.0/mboek/models/btw_aangifte.py +87 -0
  19. mboek-0.1.0/mboek/models/btw_codes.py +127 -0
  20. mboek-0.1.0/mboek/models/dagboeken.py +116 -0
  21. mboek-0.1.0/mboek/models/export_import.py +45 -0
  22. mboek-0.1.0/mboek/models/grootboekrekeningen.py +169 -0
  23. mboek-0.1.0/mboek/models/reports.py +86 -0
  24. mboek-0.1.0/mboek/resources/__init__.py +29 -0
  25. mboek-0.1.0/mboek/resources/_admin_scope.py +134 -0
  26. mboek-0.1.0/mboek/resources/_base.py +36 -0
  27. mboek-0.1.0/mboek/resources/_boekjaar_scope.py +159 -0
  28. mboek-0.1.0/mboek/resources/_dagboek_scope.py +99 -0
  29. mboek-0.1.0/mboek/resources/administraties.py +91 -0
  30. mboek-0.1.0/mboek/resources/auth.py +59 -0
  31. mboek-0.1.0/mboek/resources/auto_booking_rules.py +99 -0
  32. mboek-0.1.0/mboek/resources/boekingen.py +65 -0
  33. mboek-0.1.0/mboek/resources/boekjaren.py +134 -0
  34. mboek-0.1.0/mboek/resources/btw_aangifte.py +93 -0
  35. mboek-0.1.0/mboek/resources/btw_codes.py +112 -0
  36. mboek-0.1.0/mboek/resources/dagboeken.py +141 -0
  37. mboek-0.1.0/mboek/resources/export_import.py +88 -0
  38. mboek-0.1.0/mboek/resources/grootboekrekeningen.py +182 -0
  39. mboek-0.1.0/mboek/resources/import_.py +67 -0
  40. mboek-0.1.0/mboek/resources/maintenance.py +22 -0
  41. mboek-0.1.0/mboek/resources/reports.py +53 -0
  42. mboek-0.1.0/pyproject.toml +56 -0
  43. mboek-0.1.0/tests/__init__.py +0 -0
  44. mboek-0.1.0/tests/conftest.py +150 -0
  45. mboek-0.1.0/tests/test_administraties.py +95 -0
  46. mboek-0.1.0/tests/test_auth.py +120 -0
  47. mboek-0.1.0/tests/test_boekingen.py +88 -0
  48. mboek-0.1.0/tests/test_boekjaren.py +103 -0
  49. mboek-0.1.0/tests/test_btw_codes.py +74 -0
  50. mboek-0.1.0/tests/test_dagboeken.py +87 -0
  51. mboek-0.1.0/tests/test_grootboekrekeningen.py +132 -0
  52. mboek-0.1.0/tests/test_reports.py +55 -0
  53. 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
mboek-0.1.0/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .pytest_cache/
4
+ .venv/
5
+ .ruff_cache/
6
+ dist/