lib-sap 0.0.5__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.
lib_sap-0.0.5/PKG-INFO ADDED
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.3
2
+ Name: lib-sap
3
+ Version: 0.0.5
4
+ Summary:
5
+ Author: Nathan Blum
6
+ Author-email: n.blum@student.tudelft.nl
7
+ Requires-Python: >=3.10
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Description-Content-Type: text/markdown
14
+
15
+ # lib-sap
@@ -0,0 +1 @@
1
+ # lib-sap
@@ -0,0 +1,22 @@
1
+ [project]
2
+ name = "lib-sap"
3
+ version = "0.0.5"
4
+ description = ""
5
+ authors = [
6
+ {name = "Nathan Blum",email = "n.blum@student.tudelft.nl"}
7
+ ]
8
+ readme = "README.md"
9
+ requires-python = ">=3.10"
10
+ dependencies = [
11
+ ]
12
+
13
+ [tool.poetry]
14
+ packages = [{include = "lib_sap", from = "src"}]
15
+
16
+
17
+ [tool.poetry.group.dev.dependencies]
18
+ cython = "^3.1.2"
19
+
20
+ [build-system]
21
+ requires = ["poetry-core>=2.0.0,<3.0.0"]
22
+ build-backend = "poetry.core.masonry.api"
File without changes
@@ -0,0 +1,13 @@
1
+ import os
2
+ from pyrfc import Connection, ConnectionParameters
3
+
4
+ def po_getdetail(sappconn: Connection, po_number: str):
5
+ """Fetches purchase order details from SAP."""
6
+ result = sappconn.call(
7
+ 'BAPI_PO_GETDETAIL',
8
+ PURCHASEORDER=po_number,
9
+ ITEMS='X',
10
+ SCHEDULES='X',
11
+ HISTORY='X',
12
+ )
13
+ return result