Name | here JSON |
Version |
1.2.9
JSON |
| download |
home_page | None |
Summary | Python package that replicates the R package called 'here'. |
upload_time | 2025-07-24 20:24:31 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
IPython
inspect
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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:
```bash
pip install here
```
## Example Usage
```python
# 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!
Raw data
{
"_id": null,
"home_page": null,
"name": "here",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Michael Boerman <michaelboerman@hey.com>",
"download_url": "https://files.pythonhosted.org/packages/ca/2d/5cc37aa0834cc5fa82eef8692255d1492353c16a15a013c41b6773df2839/here-1.2.9.tar.gz",
"platform": null,
"description": "# Here\n\nPython package that replicates the R package called \"here\".\n\n## Overview\n\nThe `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.\n\n## Features\n\n- Determine the root directory of the current file working directory.\n- Resolve paths relative to the root directory.\n- Supports usage in Jupyter notebooks, .py scripts, and interactive Python shells.\n\n## Installation\n\nYou can install the package using pip:\n\n```bash\npip install here\n```\n\n## Example Usage\n\n```python\n# Get the file working directory\nfile_working_directory = get_file_working_directory()\nprint(f\"File working directory: {file_working_directory}\")\n\n# Resolve a relative path using the here function\nresolved_path = here(\"data/output\")\nprint(f\"Resolved path: {resolved_path}\")\n```\n\n\nIt works on both .py and .ipynb files!\n",
"bugtrack_url": null,
"license": null,
"summary": "Python package that replicates the R package called 'here'.",
"version": "1.2.9",
"project_urls": {
"Homepage": "https://github.com/michaelboerman/here",
"Issues": "https://github.com/michaelboerman/here/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e6e2c4066d28e39a81386c3bf5b65d3ec598078ab8a76811b08c0696a5106406",
"md5": "afad83d52f813af8a49648b6320194a4",
"sha256": "e19120c4b480ba87b74dd4c7b1c92220a4526d149fd1c3a04433bb0bbe1b1657"
},
"downloads": -1,
"filename": "here-1.2.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "afad83d52f813af8a49648b6320194a4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3497,
"upload_time": "2025-07-24T20:24:30",
"upload_time_iso_8601": "2025-07-24T20:24:30.401624Z",
"url": "https://files.pythonhosted.org/packages/e6/e2/c4066d28e39a81386c3bf5b65d3ec598078ab8a76811b08c0696a5106406/here-1.2.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ca2d5cc37aa0834cc5fa82eef8692255d1492353c16a15a013c41b6773df2839",
"md5": "b6b2426693a1057382f1e98e3024b68f",
"sha256": "1d2175d95c1edaedf7fe4bb04625d8eb2f25b651e134bcc3252da24abba19e5d"
},
"downloads": -1,
"filename": "here-1.2.9.tar.gz",
"has_sig": false,
"md5_digest": "b6b2426693a1057382f1e98e3024b68f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3568,
"upload_time": "2025-07-24T20:24:31",
"upload_time_iso_8601": "2025-07-24T20:24:31.689576Z",
"url": "https://files.pythonhosted.org/packages/ca/2d/5cc37aa0834cc5fa82eef8692255d1492353c16a15a013c41b6773df2839/here-1.2.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-24 20:24:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "michaelboerman",
"github_project": "here",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "IPython",
"specs": []
},
{
"name": "inspect",
"specs": []
}
],
"lcname": "here"
}