ManagerPythonClient 0.0.8__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 (31) hide show
  1. managerpythonclient-0.0.8/.github/workflows/ci.yml +31 -0
  2. managerpythonclient-0.0.8/.github/workflows/publish.yml +34 -0
  3. managerpythonclient-0.0.8/.gitignore +8 -0
  4. managerpythonclient-0.0.8/.idea/.gitignore +5 -0
  5. managerpythonclient-0.0.8/.idea/ManagerPythonClient.iml +12 -0
  6. managerpythonclient-0.0.8/.idea/inspectionProfiles/Project_Default.xml +6 -0
  7. managerpythonclient-0.0.8/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  8. managerpythonclient-0.0.8/.idea/misc.xml +7 -0
  9. managerpythonclient-0.0.8/.idea/modules.xml +8 -0
  10. managerpythonclient-0.0.8/.idea/vcs.xml +6 -0
  11. managerpythonclient-0.0.8/LICENSE +21 -0
  12. managerpythonclient-0.0.8/PKG-INFO +61 -0
  13. managerpythonclient-0.0.8/README.md +19 -0
  14. managerpythonclient-0.0.8/pyproject.toml +44 -0
  15. managerpythonclient-0.0.8/release.sh +36 -0
  16. managerpythonclient-0.0.8/src/manager_python_client/Client.py +461 -0
  17. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/ExpectedEntryBase.py +96 -0
  18. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/ExpectedEntryInterAccountTransfer.py +50 -0
  19. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/ExpectedEntryPurchaseInvoice.py +109 -0
  20. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/ExpectedEntryPurchaseInvoicePayment.py +75 -0
  21. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/ExpectedEntrySalesInvoice.py +88 -0
  22. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/ExpectedEntrySalesInvoiceReceipt.py +76 -0
  23. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/Pattern.py +48 -0
  24. managerpythonclient-0.0.8/src/manager_python_client/ExpectedEntry/__init__.py +6 -0
  25. managerpythonclient-0.0.8/src/manager_python_client/ManagerLoginSession.py +18 -0
  26. managerpythonclient-0.0.8/src/manager_python_client/PurchaseInvoiceGenerator.py +13 -0
  27. managerpythonclient-0.0.8/src/manager_python_client/SalesInvoiceGenerator.py +14 -0
  28. managerpythonclient-0.0.8/src/manager_python_client/TransactionReporter.py +48 -0
  29. managerpythonclient-0.0.8/src/manager_python_client/__init__.py +7 -0
  30. managerpythonclient-0.0.8/tests/test_library.py +7 -0
  31. managerpythonclient-0.0.8/uv.lock +318 -0
@@ -0,0 +1,31 @@
1
+ name: CI
2
+
3
+ on:
4
+ # push:
5
+ # pull_request:
6
+ workflow_dispatch: # Enables manual triggering from the GitHub UI
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ python-version: ["3.11", "3.12", "3.13"]
14
+
15
+ steps:
16
+ - name: Check out repository
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Set up uv
25
+ uses: astral-sh/setup-uv@v5
26
+
27
+ - name: Run tests
28
+ run: uv run --with pytest pytest
29
+
30
+ - name: Build package
31
+ run: uv build
@@ -0,0 +1,34 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+ id-token: write
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ environment:
15
+ name: pypi
16
+ url: https://pypi.org/p/ManagerPythonClient
17
+
18
+ steps:
19
+ - name: Check out repository
20
+ uses: actions/checkout@v4
21
+
22
+ - name: Set up Python
23
+ uses: actions/setup-python@v5
24
+ with:
25
+ python-version: "3.13"
26
+
27
+ - name: Set up uv
28
+ uses: astral-sh/setup-uv@v5
29
+
30
+ - name: Build package
31
+ run: uv build
32
+
33
+ - name: Publish package to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ .venv/
6
+ dist/
7
+ build/
8
+ *.egg-info/
@@ -0,0 +1,5 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
6
+ <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
7
+ <excludeFolder url="file://$MODULE_DIR$/.venv" />
8
+ </content>
9
+ <orderEntry type="jdk" jdkName="Python 3.14 (ManagerPythonClient)" jdkType="Python SDK" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
+ </module>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="Python 3.14 (ManagerPythonClient)" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.14 (ManagerPythonClient)" project-jdk-type="Python SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ManagerPythonClient.iml" filepath="$PROJECT_DIR$/.idea/ManagerPythonClient.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Robert Metcalf
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.5
2
+ Name: ManagerPythonClient
3
+ Version: 0.0.8
4
+ Summary: Manager python client for accessing API.
5
+ Project-URL: Homepage, https://github.com/rmetcalf9/ManagerPythonClient
6
+ Project-URL: Repository, https://github.com/rmetcalf9/ManagerPythonClient
7
+ Author: Robert Metcalf
8
+ License: MIT License
9
+
10
+ Copyright (c) 2026 Robert Metcalf
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ License-File: LICENSE
30
+ Classifier: Development Status :: 3 - Alpha
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Classifier: Programming Language :: Python :: 3
34
+ Classifier: Programming Language :: Python :: 3 :: Only
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Programming Language :: Python :: 3.13
38
+ Requires-Python: >=3.11
39
+ Requires-Dist: inquirerpy==0.3.4
40
+ Requires-Dist: pythonapiclientbase==0.0.19
41
+ Description-Content-Type: text/markdown
42
+
43
+ # Python client for Manager API
44
+
45
+ ## Development
46
+
47
+ Run the tests with:
48
+
49
+ ```bash
50
+ uv run --with pytest pytest
51
+ ```
52
+
53
+ Build the distribution with:
54
+
55
+ ```bash
56
+ uv build
57
+ ```
58
+
59
+ ## Release
60
+
61
+ use release.sh
@@ -0,0 +1,19 @@
1
+ # Python client for Manager API
2
+
3
+ ## Development
4
+
5
+ Run the tests with:
6
+
7
+ ```bash
8
+ uv run --with pytest pytest
9
+ ```
10
+
11
+ Build the distribution with:
12
+
13
+ ```bash
14
+ uv build
15
+ ```
16
+
17
+ ## Release
18
+
19
+ use release.sh
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "ManagerPythonClient"
7
+ version = "0.0.8"
8
+ description = "Manager python client for accessing API."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = { file = "LICENSE" }
12
+ authors = [
13
+ { name = "Robert Metcalf" }
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ ]
25
+ dependencies = [
26
+ "PythonAPIClientBase==0.0.19",
27
+ "InquirerPy==0.3.4"
28
+ ]
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/rmetcalf9/ManagerPythonClient"
32
+ Repository = "https://github.com/rmetcalf9/ManagerPythonClient"
33
+
34
+ [tool.hatch.build.targets.wheel]
35
+ packages = ["src/manager_python_client"]
36
+
37
+ [tool.pytest.ini_options]
38
+ testpaths = ["tests"]
39
+
40
+ [tool.ruff]
41
+ line-length = 88
42
+
43
+ [tool.ruff.lint]
44
+ select = ["E", "F", "I"]
@@ -0,0 +1,36 @@
1
+ #!/bin/bash
2
+ # Exit immediately if a command exits with a non-zero status
3
+ set -e
4
+
5
+ GITHUB_USER=$(gh api user --jq .login 2>/dev/null || true)
6
+ if [[ "$GITHUB_USER" != "rmetcalf9" ]]; then
7
+ echo "ERROR: GitHub CLI must be logged in as rmetcalf9."
8
+ echo "Currently logged in as: ${GITHUB_USER:-unknown}"
9
+ echo "Switch accounts with: gh auth switch --hostname github.com --user rmetcalf9"
10
+ exit 1
11
+ fi
12
+
13
+ uv run --with pytest pytest
14
+
15
+ uv version --bump patch
16
+ VERSION=$(uv version --short)
17
+ uv lock
18
+
19
+ sed -i "s/^__version__ = .*/__version__ = \"${VERSION}\"/" \
20
+ src/manager_python_client/__init__.py
21
+
22
+ uv build
23
+
24
+ git add .
25
+ git commit -m "release: v${VERSION}"
26
+ git push origin main
27
+
28
+ git tag -a v${VERSION} -m "Release v${VERSION}"
29
+ git push origin v${VERSION}
30
+
31
+ gh release create v${VERSION} \
32
+ --title "v${VERSION}" \
33
+ --notes "New Release" \
34
+ --verify-tag
35
+
36
+ exit 0