$npx skillfedfor your agent

oschmod

Windows and Linux compatible chmod

With conditionsPyPI UtilitiesReleased Oct 2020337.2K downloads / moApache Software License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — oschmod-0.3.12-py2.py3-none-any.whl
v0.3.12 · released 2020-10-30 · 1 runtime deps: pywin32

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • On Windows, requires pywin32 to be installed and functional; on Linux/macOS, relies on standard POSIX permission APIs.
  • Low install friction; pure Python wheel with a single runtime dependency (pywin32).
  • However, the package is abandoned—last release was 2020-10-30 and last commit 2023-01-16, so no active maintenance or bug fixes.

License · maintenance · safety

Apache Software License 2.0 (permissive) — Apache Software License 2.0 is permissive; you can use, modify, and distribute oschmod freely in commercial or private projects with minimal restrictions.

last release 2020-10-30 (2114 days) · last repo commit 2023-01-16 · 25 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 337,168 downloads/mo, #7,452 on PyPI

Verify before relying

pip install oschmod

import oschmod
oschmod.set_mode('myfile', 'u+rwx')
oschmod.set_mode('myfile', 0o700)
  • Whether pywin32 dependency is reliably maintained and compatible with current Windows versions.
  • Whether the package works correctly with modern Python versions beyond 3.8 (classifiers list only up to 3.8).
  • Real-world compatibility with Windows ACLs and how symbolic/octal modes map to actual Windows security descriptors.
Same gist for agents: .md · .json

What it is and 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—using Windows security APIs on Windows, and standard POSIX chmod on Linux and macOS.

You 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

oschmod on PyPI

Before you install

Low install friction; pure Python wheel with a single runtime dependency (pywin32). However, the package is abandoned—last release was 2020-10-30 and last commit 2023-01-16, so no active maintenance or bug fixes.

On Windows, requires pywin32 to be installed and functional; on Linux/macOS, relies on standard POSIX permission APIs.

License in practice

Apache Software License 2.0 is permissive; you can use, modify, and distribute oschmod freely in commercial or private projects with minimal restrictions.

Quickstart

pip install oschmod

import oschmod
oschmod.set_mode('myfile', 'u+rwx')
oschmod.set_mode('myfile', 0o700)

Verify before relying

  • Whether pywin32 dependency is reliably maintained and compatible with current Windows versions.
  • Whether the package works correctly with modern Python versions beyond 3.8 (classifiers list only up to 3.8).
  • Real-world compatibility with Windows ACLs and how symbolic/octal modes map to actual Windows security descriptors.

Package facts

LicenseApache Software License 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pywin32
MaintenanceAbandoned 2,114 days since the last release
Last repo commit
First released
Downloads337,168 / month, #7,452 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Utilities

Evidence: oschmod-0.3.12-py2.py3-none-any.whl

Tags

Capabilities
cross-platform file permissionschmod for windowsset file permissions all platformswindows file mode bitsportable chmod implementationsymbolic file permissionsoctal mode cross-platform
Topics
cross-platformfile-permissionswindows-compat

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “cross-platform file permissions”

  • oschmodSets file permissions consistently across Windows, Linux, and macOS…
  • winaclParses and manipulates Windows security descriptors, ACLs, and ACEs…
  • flake8-executableA Flake8 plugin that detects and reports mismatches between Python…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also path.py · dry-rest-permissions · path · djangorestframework-guardian · pathtools · exit-codes · filelock · win32-setctime · doccmd · lockfile