poma 0.1.2__tar.gz → 0.1.4__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.
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ push:
13
+ tags: [ '*.*.*' ]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
poma-0.1.4/.gitignore ADDED
@@ -0,0 +1,56 @@
1
+ # -------------------------------------------------------
2
+ # Python bytecode
3
+ # -------------------------------------------------------
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # -------------------------------------------------------
9
+ # Virtualenv (Windows + Unix)
10
+ # -------------------------------------------------------
11
+ .venv/
12
+ venv/
13
+ env/
14
+ .poma-sdk-venv/
15
+ ENV/
16
+ env.bak/
17
+ .idea/
18
+
19
+ # -------------------------------------------------------
20
+ # VS Code
21
+ # -------------------------------------------------------
22
+ .vscode/
23
+
24
+ # -------------------------------------------------------
25
+ # Pytest
26
+ # -------------------------------------------------------
27
+ .cache/
28
+ .pytest_cache/
29
+ nosetests.xml
30
+ coverage.xml
31
+ *.cover
32
+ *.py,cover
33
+ .hypothesis/
34
+
35
+ # -------------------------------------------------------
36
+ # Build / Dist
37
+ # -------------------------------------------------------
38
+ build/
39
+ dist/
40
+ *.egg-info/
41
+ *.egg
42
+ .eggs/
43
+
44
+ # -------------------------------------------------------
45
+ # Environment files
46
+ # -------------------------------------------------------
47
+ .env
48
+ .env.*
49
+ *.env
50
+
51
+ # -------------------------------------------------------
52
+ # Mac / Windows
53
+ # -------------------------------------------------------
54
+ .DS_Store
55
+ Thumbs.db
56
+ desktop.ini
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: poma
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Official Python SDK for the Poma document-processing API
5
5
  Author-email: "POMA AI GmbH, Berlin" <sdk@poma-ai.com>
6
6
  License-Expression: MPL-2.0
@@ -87,7 +87,7 @@ class Poma:
87
87
  payload["base_url"] = base_url
88
88
  try:
89
89
  response = self._client.post(
90
- f"{self.base_api_url}/process",
90
+ f"{self.base_api_url}/ingest",
91
91
  data=payload,
92
92
  files={
93
93
  "file": (Path(file_path).name, Path(file_path).read_bytes()),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: poma
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Official Python SDK for the Poma document-processing API
5
5
  Author-email: "POMA AI GmbH, Berlin" <sdk@poma-ai.com>
6
6
  License-Expression: MPL-2.0
@@ -1,6 +1,8 @@
1
+ .gitignore
1
2
  LICENSE
2
3
  README.md
3
4
  pyproject.toml
5
+ .github/workflows/python-publish.yml
4
6
  poma/__init__.py
5
7
  poma/client.py
6
8
  poma/exceptions.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "poma"
3
- version = "0.1.2"
3
+ version = "0.1.4"
4
4
  description = "Official Python SDK for the Poma document-processing API"
5
5
  authors = [{ name = "POMA AI GmbH, Berlin", email = "sdk@poma-ai.com" }]
6
6
  readme = "README.md"
@@ -34,7 +34,7 @@ integration-examples = [
34
34
  ]
35
35
 
36
36
  [build-system]
37
- requires = ["setuptools>=67", "wheel"]
37
+ requires = ["setuptools>=67", "wheel", "setuptools-scm>=8"]
38
38
  build-backend = "setuptools.build_meta"
39
39
 
40
40
  [tool.setuptools.packages.find]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes