This project has been archived by its maintainers, and is no longer receiving any updates.
Here
Python package that replicates the R package called "here".
Overview
The here package provides utility functions to determine the root directory of your project and easily resolve paths relative to it. This is particularly useful for managing file paths when calling the code from shells that cd to other directories before executing the script.
Features
- Determine the root directory of the current file working directory.
- Resolve paths relative to the root directory.
- Supports usage in Jupyter notebooks, .py scripts, and interactive Python shells.
Installation
You can install the package using pip:
pip install here
Example Usage
# Get the file working directory
file_working_directory = get_file_working_directory()
print(f"File working directory: {file_working_directory}")
# Resolve a relative path using the here function
resolved_path = here("data/output")
print(f"Resolved path: {resolved_path}")
It works on both .py and .ipynb files!
Metadata
Release files for here-here 1.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| here_here-1.1.14.tar.gz | 3.0 kB | Without provenance | Details for here_here-1.1.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| here_here-1.1.14-py3-none-any.whl | Python 3 | none | any | Details for here_here-1.1.14-py3-none-any.whl |
Total release size: 5.7 kB
Release files / here_here-1.1.14.tar.gz
| Download URL | here_here-1.1.14.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9333af867ff177ce906e68d34125681404d8e8d91aa3f083cc0fa6f46b02c306
|
|
BLAKE2b-256 checksum How to use checksums |
eb6916288628fad9a19e9dc9c60da6baff170787de4d8c3e6952b7defc661687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / here_here-1.1.14-py3-none-any.whl
| Download URL | here_here-1.1.14-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fa18494256cf4b196a0d175043bf75744c979c17e475e0f6808f99254fe5bc5
|
|
BLAKE2b-256 checksum How to use checksums |
dd0f0f9fd479f108b0c48d801d9b024840d9909adb6802acce70b12757a06fb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for here-here 1.1.14
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.