Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High level api #14

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 20 additions & 2 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
python = "^3.7" # because 3.7 is the minimum requirement for yarl
requests = "^2.31.0" # fix CVE-2023-32681
urllib3 = "1.26.15"
packageurl-python = ">=0.8, <1.0"

[tool.poetry.dev-dependencies]
colorama = "0.3.7"
Expand Down
4 changes: 4 additions & 0 deletions sw360/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@
from .sw360_api import SW360 # noqa: F401
from .sw360error import SW360Error # noqa: F401
from .sw360oauth2 import SW360OAuth2 # noqa: F401
from .sw360_objects import Component, Release, Attachment, Project

__all__ = ["SW360", "SW360Error", "SW360OAuth2",
"Component", "Release", "Attachment", "Project"]
5 changes: 4 additions & 1 deletion sw360/sw360_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
# SPDX-License-Identifier: MIT
# -------------------------------------------------------------------------------

"""Python interface to the Siemens SW360 platform"""
"""Low-Level Python interface to the SW360 REST API. This provides a low-level
abstraction of the REST API endpoints. In most cases, JSON objects are just
passed through unchanged from/to the SW360 REST API."""


import requests

Expand Down