SysPath
SysPath is a package to easily set common paths into sys.path. Instead
of having to do a lot of path manipulation to properly import files, a
file can import from SysPath instead.
Installation
pip install syspath
Usage
To append the current file's directory to sys.path:
import syspath
syspath.append_current_path()
# or
from syspath import current_path
To append the current file's parent directory to sys.path:
import syspath
syspath.append_parent_path()
# or
from syspath import parent_path
To append the current file's git repository root to sys.path:
import syspath
syspath.append_git_root()
# or
from syspath import git_root
Each of the shortcut modules also provide a path variable that can be
used to get the path added.
Development
pip install -e .[test]
ruff check .
mypy .
coverage run -m unittest
coverage report -m
ruff check .
Publishing
- Update
CHANGELOG.md - Update
syspath/__version__.py - Commit, tag with the version number, and push
Metadata
Release files for syspath 3.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| syspath-3.0.9.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syspath-3.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / syspath-3.0.9.tar.gz
| Download URL | syspath-3.0.9.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c19435ef17d5a6de68b405ea0673488c87d45d4119fe6370d9570b3a9bc0165
|
|
BLAKE2b-256 checksum How to use checksums |
ff9512c3598e5d8554f4b2cd7a07d2596a62b702b38b7d9c26e07d7df10b4b6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 6, 2026.
Transparency logRelease files / syspath-3.0.9-py3-none-any.whl
| Download URL | syspath-3.0.9-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fefbf9e9c3f5c800551b15b7ea996842e96810034a5b13a48df0cb4ee59f29c8
|
|
BLAKE2b-256 checksum How to use checksums |
f98eaa1c5298a3ee49ca1b6eddab91ffd9bb1e55cc2fa801e89aff2b61e42615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 6, 2026.
Transparency log