snowglobes_data
Module to make SNOwGLoBES data files available as a PyPI package.
This lets any Python package install SNOwGLoBES data files as a dependency via pip and access them via the importlib.resources module.
Usage
Install this package manually using
pip install snowglobes_data
or automatically by listing it as a dependency e.g. in the pyproject.toml or requirements.txt file of another Python package.
You can then access the data files without cloning the SNOwGLoBES repo and manually hard-coding its path in the script:
from importlib.resources import files # on Python 3.9 and later
#from importlib_resources import files # on Python 3.8 or earlier
import snowglobes_data
# Use `files(snowglobes_data)` instead of the hard-coded path to the SNOwGLoBES repo:
with open(files(snowglobes_data).joinpath("detector_configurations.dat")) as detectors:
for line in detectors:
print(line.strip())
Note: files is available since Python 3.9. If you are using an older Python version, please install and use the backport importlib_resources instead.
Metadata
Release files for snowglobes-data 1.3.2
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 |
|---|---|---|---|---|
| snowglobes_data-1.3.2.tar.gz | 28.5 MB | Without provenance | Details for snowglobes_data-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snowglobes_data-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for snowglobes_data-1.3.2-py3-none-any.whl |
Total release size: 57.4 MB
Release files / snowglobes_data-1.3.2.tar.gz
| Download URL | snowglobes_data-1.3.2.tar.gz |
|---|---|
| Size | 28.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f0faba1886ad1e09b10ac76b4c286d78c9a262a1fc54c80b2113f797099212e
|
|
BLAKE2b-256 checksum How to use checksums |
e3934202b4ec63d211efb87ae035254fe53e7a225ab71584140497121e08768c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / snowglobes_data-1.3.2-py3-none-any.whl
| Download URL | snowglobes_data-1.3.2-py3-none-any.whl |
|---|---|
| Size | 28.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5a6302539b19b6483461454572c4657bdccc28a4a677517f4595dd755e90f3e
|
|
BLAKE2b-256 checksum How to use checksums |
a99cb6d4dbd13f8034f8591cdc37697784e225fe2031ad7f095587393b5eef0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for snowglobes-data 1.3.2
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.