findhere
Overview
findhere provides functions that simplify using relative paths in your Python project.
Main Features
Installation
pip install findhere
Usage
In the init.py of the main repository, add:
import os
import pkg_resources
PROJECT_ROOT = os.path.abspath(
pkg_resources.resource_filename("${1:project_name}", '..')) \
if 'PROJECT_ROOT' not in os.environ else os.environ['PROJECT_ROOT']
os.environ['PROJECT_ROOT'] = PROJECT_ROOT
os.environ['CLOUD_ROOT'] = f"gs://{os.path.basename(PROJECT_ROOT)}" \
if 'CLOUD_ROOT' not in os.environ else os.environ['CLOUD_ROOT']
If using datatracker,
os.environ['TRACKER_PATH'] = os.path.join(
PROJECT_ROOT, os.path.basename(PROJECT_ROOT), 'db.json')
If versioneer has been added,
os.environ['VERSION'] = __version__
If defining directories for use with a script, use:
os.environ['VERSION'] = '0.1.1'
cloudir, localdir, filedir = init_directories(__file__)
Cite
Maintainer
Tarjinder Singh @ tsingh@broadinstitute.org
Acknowledgements
Release Notes
Metadata
Release files for findhere 0.1.5
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 |
|---|---|---|---|---|
| findhere-0.1.5.tar.gz | 20.4 kB | Without provenance | Details for findhere-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| findhere-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for findhere-0.1.5-py3-none-any.whl |
Total release size: 25.6 kB
Release files / findhere-0.1.5.tar.gz
| Download URL | findhere-0.1.5.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e6a2902daa29585061d09ce37cc69e1366ba55a624c52cebfb51af7f778fc7b
|
|
BLAKE2b-256 checksum How to use checksums |
715f7664fac8a0333e3a12b0d96af32166c5779a180bebb27f934aab000dd338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
|
Release files / findhere-0.1.5-py3-none-any.whl
| Download URL | findhere-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f08051ebc8ffc8be220cdf94fd743e80fb7bdfa435e02999861a52fd1df54f
|
|
BLAKE2b-256 checksum How to use checksums |
c0e49325e65a7f3bf9f44b891bd5a4fe83150019e8d5a95685b8877dedf6b3f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
|
Security for findhere 0.1.5
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.