Skip to content

Commit 01b5281

Browse files
authored
[SP-3346] feat: use gRPC by default instead of REST (#154)
1 parent 26973c2 commit 01b5281

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Upcoming changes...
1111

12+
## [1.35.0] - 2025-10-07
13+
### Modified
14+
- Use gRPC instead of REST for API calls
15+
1216
## [1.34.0] - 2025-10-06
1317
### Added
1418
- Add REST API support for decoration commands

src/scanoss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
THE SOFTWARE.
2323
"""
2424

25-
__version__ = '1.34.0'
25+
__version__ = '1.35.0'

src/scanoss/cli.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,8 @@ def setup_args() -> None: # noqa: PLR0912, PLR0915
10701070
c_versions,
10711071
c_licenses,
10721072
]:
1073-
p.add_argument('--grpc', action='store_true', help='Enable gRPC support')
1073+
p.add_argument('--grpc', action='store_true', default=True, help='Use gRPC (default)')
1074+
p.add_argument('--rest', action='store_true', dest='rest', help='Use REST instead of gRPC')
10741075

10751076
# Help/Trace command options
10761077
for p in [
@@ -1111,6 +1112,12 @@ def setup_args() -> None: # noqa: PLR0912, PLR0915
11111112
p.add_argument('--quiet', '-q', action='store_true', help='Enable quiet mode')
11121113

11131114
args = parser.parse_args()
1115+
1116+
# TODO: Remove this hack once we go back to using REST as default
1117+
# Handle --rest overriding --grpc default
1118+
if hasattr(args, 'rest') and args.rest:
1119+
args.grpc = False
1120+
11141121
if args.version:
11151122
ver(parser, args)
11161123
sys.exit(0)

0 commit comments

Comments
 (0)