Repository navigation
osn-system-utils v0.0.2-beta.1
Pre-release
Pre-release
osn-system-utils v0.0.2-beta.1 - Dependency Optimization and API Refactoring
This release marks a significant step in making the library more lightweight and efficient. We have focused on removing heavy external dependencies, refining our internal API structure, and improving the developer experience through better type safety and explicit export controls.
Key Improvements in v0.0.2-beta.1:
- Removal of Pandas Dependency: To ensure a smaller footprint and faster installation, we have completely removed the dependency on
pandas. The library now operates using native Python structures, making it much more suitable for lightweight environments and microservices. - Migration to Iterator-based Process Tables: The
get_process_tablefunction has been refactored. Instead of returning a static DataFrame, it now functions as anIterator[Dict[str, Any]]. This "lazy" approach significantly reduces memory consumption when scanning large numbers of system processes, as data is yielded one process at a time. - Explicit Public API Definition: We have implemented
__all__across all major modules. This clearly defines the public-facing interface of the library, preventing internal helper functions from polluting your IDE’s autocomplete and ensuring a cleaner development workflow. - Enhanced Process Robustness: The process management API now includes handling for
psutil.ZombieProcess. This prevents unexpected crashes when querying system information about processes that are in a defunct state. - Flexible Network Utilities: The
get_localhost_free_port_offunction has been updated to accept anyIterablefor port candidates instead of just aSequence, offering more flexibility when working with generators or sets of port numbers. - Improved Documentation and Examples: The README has been thoroughly updated with corrected installation paths and modernized usage examples that reflect the transition to iterator-based process handling.
Putting It All Together:
Version 0.0.2-beta.1 transforms osn-system-utils into a more specialized, high-performance tool. By stripping away pandas and moving to iterators, we've made the library faster and more memory-efficient while maintaining the same powerful filtering capabilities for system administration and network management.