{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Sets file permissions consistently across Windows, Linux, and macOS using chmod-style syntax that actually works on Windows, where os.chmod() has no effect.","skillfed_tags":["cross-platform","file-permissions","windows-compat"],"use_cases":["Securing configuration files or private keys on Windows with the same permission model you'd use on Linux.","Writing deployment scripts that set consistent file permissions across development, staging, and production machines running different OSes.","Building cross-platform tools that need to enforce read/write/execute restrictions without platform-specific branching logic.","Migrating shell scripts that use chmod to Python while maintaining the same permission semantics on all platforms.","Setting up CI/CD pipelines that manage file permissions identically on Windows agents and Unix-based runners."],"what_it_does":"oschmod bridges a critical gap: Python's os.chmod() silently fails on Windows, leaving file permissions unchanged while giving no warning or error. This package provides a cross-platform wrapper that translates chmod-style permissions (both symbolic like 'u+rwx' and octal like 0o700) into the underlying OS calls\u2014using Windows security APIs on Windows, and standard POSIX chmod on Linux and macOS.\n\nYou can use it as a drop-in replacement for os.chmod() in your code, or invoke it from the command line with the familiar chmod syntax. It supports recursive permission changes with the -R flag and handles both individual file ownership and group-based permissions in a platform-consistent way.","worth_installing":"Yes, if you need cross-platform chmod on Windows and can accept an abandoned package. The code is stable (no known vulnerabilities, low install friction), and the problem it solves is real and unsolved by the standard library. However, verify that pywin32 remains compatible with your Windows version, and be aware that bugs or edge cases discovered after 2023 will not be fixed upstream."},"id":"oschmod","links":{"html":"https://skillfed.io/packages/oschmod","md":"https://skillfed.io/packages/oschmod.md","pypi":"https://pypi.org/project/oschmod/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-10-30","license_spdx":null,"license_treatment":"permissive","name":"oschmod","python_support":"unspecified","summary":"Windows and Linux compatible chmod"},"popularity":{"monthly_downloads":337168,"position":7452,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.12"}
