Skip to content

Commit 9807e66

Browse files
committed
pdm added
1 parent 4032111 commit 9807e66

File tree

5 files changed

+177
-3
lines changed

5 files changed

+177
-3
lines changed

pdm.lock

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[project]
2+
name = "unstract-client"
3+
dynamic = ["version"]
4+
description = "Python client for the Unstract LLM-powered structured data extraction platform"
5+
authors = [
6+
{name = "Zipstack Inc", email = "[email protected]"},
7+
]
8+
dependencies = [
9+
"requests>=2.32.3",
10+
]
11+
requires-python = ">=3.11"
12+
readme = "README.md"
13+
urls = { Homepage = "https://unstract.com", Source = "https://github.com/Zipstack/unstract-python-client" }
14+
license = {text = "MIT"}
15+
keywords = ["unstract cli apps sdk"]
16+
classifiers = [
17+
"Development Status :: 4 - Beta",
18+
"Intended Audience :: Developers",
19+
"License :: OSI Approved :: GNU Affero General Public License v3",
20+
"Operating System :: POSIX :: Linux",
21+
"Operating System :: MacOS :: MacOS X",
22+
"Operating System :: Microsoft :: Windows",
23+
"Programming Language :: Python",
24+
"Topic :: Software Development :: Libraries :: Python Modules",
25+
]
26+
27+
[tool.pdm.dev-dependencies]
28+
test = [
29+
"pytest>=8.2.2",
30+
"pytest-mock>=3.14.0",
31+
"pytest-dotenv>=0.5.2",
32+
"pytest-cov>=5.0.0",
33+
"pytest-md-report>=0.6.2",
34+
]
35+
lint = [
36+
"autopep8~=2.0.2",
37+
"black~=23.3.0",
38+
"docutils~=0.20.1",
39+
"flake8~=6.0.0",
40+
"flake8-pyproject~=1.2.2",
41+
"isort~=5.12.0",
42+
"pre-commit~=3.3.1",
43+
"yamllint>=1.35.1",
44+
"mypy~=1.10.0"
45+
]
46+
47+
[tool.pdm.version]
48+
source = "file"
49+
path = "src/unstract/api_deployments/__init__.py"
50+
51+
[tool.isort]
52+
line_length = 120
53+
multi_line_output = 3
54+
include_trailing_comma = true
55+
force_grid_wrap = 0
56+
use_parentheses = true
57+
ensure_newline_before_comments = true
58+
profile = "black"
59+
60+
[tool.flake8]
61+
max-line-length = 120
62+
63+
[tool.pdm.build]
64+
includes = ["src"]
65+
package-dir = "src"
66+
67+
[tool.pytest.ini_options]
68+
env_files = ["tests/.env"]
69+
addopts = "-s"
70+
log_level = "INFO"
71+
log_cli = true
72+
73+
[tool.pdm.scripts]
74+
test.cmd = "pytest -s -v"
75+
test.env_file = "tests/.env"
76+
test.help = "Runs pytests for Unstract client"
77+
78+
[build-system]
79+
requires = ["pdm-backend"]
80+
build-backend = "pdm.backend"

src/unstract/api_deployments/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__version__ = "0.1.0"
22

3-
from .api_deployments_client import APIDeploymentsClient
3+
from .client import APIDeploymentsClient
44

55

66
def get_sdk_version():

src/unstract/api_deployments/api_deployments_client.py renamed to src/unstract/api_deployments/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
APIDeploymentsClientException: A class to handle exceptions raised by the APIDeploymentsClient class.
77
"""
88
import logging
9+
import ntpath
910
import os
11+
from urllib.parse import parse_qs, urlparse
1012

1113
import requests
12-
import ntpath
13-
from urllib.parse import urlparse, parse_qs
1414

1515
from src.unstract.api_deployments.utils import UnstractUtils
1616

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)