Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
pdm added
  • Loading branch information
jaseemjaskp committed Jun 25, 2024
commit 9807e66b5f8d29f98ca288c2f7e014ad125b652c
94 changes: 94 additions & 0 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[project]
name = "unstract-client"
dynamic = ["version"]
description = "Python client for the Unstract LLM-powered structured data extraction platform"
authors = [
{name = "Zipstack Inc", email = "devsupport@zipstack.com"},
]
dependencies = [
"requests>=2.32.3",
]
requires-python = ">=3.11"
readme = "README.md"
urls = { Homepage = "https://unstract.com", Source = "https://github.com/Zipstack/unstract-python-client" }
license = {text = "MIT"}
keywords = ["unstract cli apps sdk"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
]

[tool.pdm.dev-dependencies]
test = [
"pytest>=8.2.2",
"pytest-mock>=3.14.0",
"pytest-dotenv>=0.5.2",
"pytest-cov>=5.0.0",
"pytest-md-report>=0.6.2",
]
lint = [
"autopep8~=2.0.2",
"black~=23.3.0",
"docutils~=0.20.1",
"flake8~=6.0.0",
"flake8-pyproject~=1.2.2",
"isort~=5.12.0",
"pre-commit~=3.3.1",
"yamllint>=1.35.1",
"mypy~=1.10.0"
]

[tool.pdm.version]
source = "file"
path = "src/unstract/api_deployments/__init__.py"

[tool.isort]
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
profile = "black"

[tool.flake8]
max-line-length = 120

[tool.pdm.build]
includes = ["src"]
package-dir = "src"

[tool.pytest.ini_options]
env_files = ["tests/.env"]
addopts = "-s"
log_level = "INFO"
log_cli = true

[tool.pdm.scripts]
test.cmd = "pytest -s -v"
test.env_file = "tests/.env"
test.help = "Runs pytests for Unstract client"

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
2 changes: 1 addition & 1 deletion src/unstract/api_deployments/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__version__ = "0.1.0"

from .api_deployments_client import APIDeploymentsClient
from .client import APIDeploymentsClient


def get_sdk_version():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
APIDeploymentsClientException: A class to handle exceptions raised by the APIDeploymentsClient class.
"""
import logging
import ntpath
import os
from urllib.parse import parse_qs, urlparse

import requests
import ntpath
from urllib.parse import urlparse, parse_qs

from src.unstract.api_deployments.utils import UnstractUtils

Expand Down
Empty file added tests/__init__.py
Empty file.