Systempath

Latest version: v1.2.2

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

1.0.12

1. Fix issue: Exception `SystemPathNotFoundError` could not be handled properly. 6
2. Add a method called `isempty` to quickly check if the directory or file content is empty. 7
3. Upgrade the version of the only dependency library.
4. Optimize the package release process (file `setup.py`).

1.修复问题:异常 `SystemPathNotFoundError` 无法被妥善处理。6
2.新增方法 `isempty`,可快速判断目录或文件内容是否为空。 7
3.升级唯一依赖库版本。
4.优化包发布流程(文件 `setup.py`)。

1.0.11

1. Optimize the block of code in `Directory` that gets subpaths, now the logic is cleaner and clearer.
2. Path objects support Boolean judgment (return `True` if path exists else `False`).
3. Fix a possible error, the default parameter `level` in the `Directory.tree` method sets the default value too early, may invalidate the maximum depth set by the developer.
4. Improve the internal call of the method `Path.lexists`.
5. No longer rely on the `pathlib` built-in library.
6. Enable Python3.12 support.

1.优化 `Directory` 中获取子路径的代码块,现在逻辑更简洁、更明晰。
2.路径对象支持布尔判断(路径存在返回 `True` 否则 `False`)。
3.修复一个可能发生的错误,`Directory.tree` 方法中的默认参数 `level` 过早设置默认值,可能使开发者设置的最大深度值无效。
4.改进方法 `Path.lexists` 的内部调用。
5.不再依赖 `pathlib` 内置库。
6.启用对 Python3.12 支持。

1.0.10

1. Improve the scheme for judging whether the contents of two files are equal. Check first whether they are the same file, and if so, directly confirm they are equal and skip the subsequent judging process.
2. When judging the equality of two paths, first check whether they refer to the same path object. If so, directly confirm they are equal and skip the subsequent judging process.
3. Enhance the `File.contents` method by directly passing in the `File` instance when obtaining a `Content` instance.
4. Improve the parameter names of certain methods in the `Content` class, changing `content` to `other`. (This parameter is always positional only and will not have compatibility issues.)
5. Correct an extra string escape in `Open.__init__` location.
6. Improve the standardization of imported function names (as we define).
7. Improve several descriptions or comments.
8. Refactor (improve) the method of obtaining version information in `setup` by directly extracting it from `package.__doc__`, rather than opening a file.
9. Adjust the classification information of the open-source library on PyPi.
10. Update the README file.

1.改进判断文件内容是否相等的方案,先检查是否为同一个文件,如果是则直接确认相等,跳过后续的判断流程。
2.在做路径相等性判断时,先判断是否为同一个路径对象,如果是则直接确认相等,跳过后续的判断流程。
3.改进方法 `File.contents`,获得 `Content` 实例时直接传入 `File` 实例。
4.改进 `Content` 类中个别方法的参数名称,`content` -> `other`。(该参数始终仅限位置传参,不会有兼容性问题。)
5.修正一处多余的字符串转义,位置 `Open.__init__`。
6.改进引入的函数名称的规范性(我们认为的规范)。
7.改进多处描述或注释。
8.重构(改进) `setup` 中获得版本信息的方案,直接从 `package.__doc__` 中提取,而不再打开文件。
9.调整在PyPi上的开源库分类信息。
10.更新自述文件。

1.0.9

1.Found a method description error and fixed it, in `Path.getsize`.
2.Improve a magic method definition, define `__repr__` directly in class `Open` and omit `__str__`.
3.Improve `MasqueradeClass`, masquerade the attribute `__qualname__`.
4.Fix an exception description error in `ReadOnly` and improved similar exception description in `ReadOnlyMode`.

1.发现一个方法的描述错误并修复,方法 `Path.getsize`。
2.改进一个魔化方法定义,在类 `Open` 中直接定义 `__repr__`,省略 `__str__`。
3.改进 `MasqueradeClass`,隐藏属性 `__qualname__`。
4.修正 `ReadOnly` 中异常描述信息的错误,并改进了 `ReadOnlyMode` 中的类似的异常描述。

1.0.8

1.Optimize logical blocks for real code imports.
2.Update the open source library description information on PyPi.

1.优化真实代码导入的逻辑块。
2.更新在PyPi上的开源库简述信息。

1.0.7

1.Fixed a serious issue where `Path` instance could not be deserialized (we made a lot of sacrifices to fix this).
2.Fixed a judgment statement error in the protection instance attributes, in `ReadOnly.__setattr__`.
3.Supported equality judgment of `Path` instances.
4.Upgraded the unique dependent library version.
5.Getting child path instance by taking attribute value is no longer supported in `Directory`.
6.Fixed an issue where specifying maximum depth in `tree` could be invalid.
7.Improved `Path.__str__`, return the prototype for the path link characters of type bytes.
8.Improved the prompt string that raise the destination path exception, in `dst2abs.<locals>.core`.
9.Raise the stack level of the warning information, in `Path.chattr` and `Path.lsattr`.
10.Updated parameter description of `tree`, and change the name of parameter `idiocy` directly to `mysophobia` (no warning, no compatibility processing).
11.Stop recording issues in the project file (removed file `issues.yml`).

1.修复了 `Path` 实例无法被反序列化的严重问题(为修复这个问题,我们做了很大牺牲)。
2.修复了 `ReadOnly.__setattr__` 中用于保护实例属性不被篡改的一些逻辑错误。
3.`Path` 实例支持相等性判断。
4.升级了唯一依赖库版本 `gqylpy-exception`。
5.`Directory` 中不再支持通过属性取值的方式来获取子路径实例。
6.修复了 `tree` 中指定最大深度可能无效的问题。
7.改进了 `Path.__str__`,针对 `bytes` 类型的路径链接,直接返回其原形。
8.改进了 `dst2abs.<locals>.core` 中引发目标路径异常的提示字符串。
9.提高了警告信息的堆栈级别,涉及位置 `Path.chattr` and `Path.lsattr`。
10.更新了 `tree` 的参数描述,并直接修改了其中的一个参数命名 `idiocy` -> `mysophobia` (没有警告,也没有做任何兼容)。
11.停止在项目文件中记录问题(删除文件 `issues.yml`)。

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.