Path-py

Latest version: v11.0.1

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

Scan your dependencies

Page 4 of 8

8.0

---

Removed ``path.path``. Clients must now refer to the canonical
name, ``path.Path`` as introduced in 6.2.

7.7

---

- 88: Added support for resolving certain directories on a
system to platform-friendly locations using the `appdirs
<https://pypi.python.org/pypi/appdirs/1.4.0>`_ library. The
``Path.special`` method returns an ``SpecialResolver`` instance
that will resolve a path in a scope
(i.e. 'site' or 'user') and class (i.e. 'config', 'cache',
'data'). For
example, to create a config directory for "My App"::

config_dir = Path.special("My App").user.config.makedirs_p()

``config_dir`` will exist in a user context and will be in a
suitable platform-friendly location.

As ``path.py`` does not currently have any dependencies, and
to retain that expectation for a compatible upgrade path,
``appdirs`` must be installed to avoid an ImportError when
invoking ``special``.


- 88: In order to support "multipath" results, where multiple
paths are returned in a single, ``os.pathsep``-separated
string, a new class MultiPath now represents those special
results. This functionality is experimental and may change.
Feedback is invited.

7.6.2

-----

- Re-release of 7.6.1 without unintended feature.

7.6.1

-----

- 101: Supress error when `path.py` is not present as a distribution.

7.6

---

- Pull Request 100: Add ``merge_tree`` method for merging
two existing directory trees.
- Uses `setuptools_scm <https://github.org/pypa/setuptools_scm>`_
for version management.

7.5

---

- 97: ``__rdiv__`` and ``__rtruediv__`` are now defined.

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.