Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: SocketDev/socket-sdk-python

Tags

v3.0.6

Toggle v3.0.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: Add support for base_paths parameter in fullscans and diffscans (

…#48)

- Add base_paths parameter to Utils.load_files_for_sending_lazy() to support multiple base paths for file key stripping
- Update FullScans.post() method to accept base_paths parameter with lazy loading support
- Update DiffScans.create_from_repo() method to accept base_paths parameter
- Maintain backward compatibility with existing base_path parameter
- Fix test issues: correct fullscans.get() usage in comprehensive integration test
- Update test expectations to match correct API path handling (path segments vs query params)

The base_paths parameter takes precedence over base_path when both are provided,
allowing users to specify multiple directory paths to strip from uploaded file keys
for cleaner file organization in Socket scans.

v3.0.5

Toggle v3.0.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: Align SDK endpoints and tests with OpenAPI spec (#47)

- Fix deduplication logic to group by inputPurl instead of batchIndex
- Update API endpoints to match OpenAPI specifications:
  - fullscans: Support both listing and individual scan retrieval
  - report: Fix file handling and accept 200/201 status codes
  - diffscans: Correct path structure for create_from_repo
  - apitokens: Add list method and flexible update routing
  - auditlog: Fix query parameter handling
  - Multiple endpoints: Correct HTTP methods and response formats
- Add base_path parameter support for cleaner file organization
- Update all unit tests to match actual API behavior
- Remove batchIndex from deduped results while maintaining backward compatibility
- Comprehensive test coverage for 40+ endpoints with proper mocking

v3.0.4

Toggle v3.0.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: Complete API endpoint coverage with comprehensive tests and doc… (

#45)

* feat: Complete API endpoint coverage with comprehensive tests and documentation

- Add 8 new API endpoint modules (Analytics, ThreatFeed, ApiTokens, etc.)
- Implement 40+ unit tests and integration test suite
- Fix FullScans documentation with correct method signatures
- Update README.rst with complete endpoint documentation
- Add secure .env configuration and organized test structure

* adding unstaged changes

* Fixed readme formatting errors

v3.0.2

Toggle v3.0.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: include namespace in deduplicated purl construction (#44)

* fix: include namespace in deduplicated purl construction

Fix purl deduplication logic to properly handle namespace and inputPurl fields.
Previously, Maven packages were missing namespace in the returned purl field.

- Use inputPurl when available and complete
- Append version to incomplete inputPurl
- Construct proper purl with namespace when building from scratch

* Added in templates

* Update .github/PULL_REQUEST_TEMPLATE/bug-fix.md

Co-authored-by: Philipp Burckhardt <[email protected]>

---------

Co-authored-by: Philipp Burckhardt <[email protected]>

v3.0.0

Toggle v3.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
featmigrate to socketdev 3.0.0 and switch to uv dependency management (

…#42)

BREAKING CHANGES:
- Package version bumped from 2.x to 3.0.0
- Removed deprecation warnings as this is now the main socketdev package
- Migrated from Rye to uv for dependency management

Changes:
- Update package version to 3.0.0 in pyproject.toml and version.py
- Remove deprecation notice from package description
- Change development status from Inactive to Production/Stable
- Remove deprecation warning from socketdev/__init__.py
- Update all PyPI references from socket-sdk-python to socketdev in workflows and scripts
- Clean up README.rst: remove deprecation warning, update title
- Replace Rye lock files with uv.lock
- Update all package installation commands to use socketdev

Migration notes:
- Use uv sync instead of rye sync
- Use uv lock instead of rye lock
- All dependencies now correctly reference [email protected]

v2.2.3

Toggle v2.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adding deprecation notice (#41)

* Adding deprecation notice

* Version bump

* Fixing version check in CI

* Fixing version logic

* Changed version string format

* Switched pyproject.toml to hard coded version to be modified by pre commit hook

* Fix version extraction

v2.1.8

Toggle v2.1.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Doug/fix diff scan license options (#40)

* Fixed old diff scan endpoint to correctly use the include_license_details flag and default to true

* Bumped version

* Fixed license attributes that had changed for artifacts

* feat: implement lazy file loading to prevent 'too many open files' errors

- Add FileDescriptorManager singleton to track and limit open file descriptors
- Implement LazyFileLoader class that opens files only when needed for reading
- Add configurable max_open_files parameter to fullscans.post() and diffscans.create_from_repo()
- Auto-close files when fully read and use LRU eviction when limit reached
- Add comprehensive documentation with v3.0 migration notes
- Maintain backward compatibility with use_lazy_loading=False default
- Support cross-platform operation (Unix/Linux/macOS/Windows)
- Include retry logic with garbage collection for edge cases

This prevents file descriptor exhaustion when uploading large numbers of manifest files (e.g., 1956 files) on systems with low ulimit values.

v2.1.5

Toggle v2.1.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Improvements to unit tests for new diff scans (#39)

* Improvements to unit tests for new diff scans

* Bumped version

v2.1.4

Toggle v2.1.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added missing property (#38)

* Added missing property

* Version bump

v2.1.3

Toggle v2.1.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added license metadata endpoint (#37)

* Added license metadata endpoint

* Fixed debug output

* Version bump