Tags: SocketDev/socket-sdk-python
Tags
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.
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
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
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]>
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]
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
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.
PreviousNext