Python wrapper of DarkProp, a Monte Carlo simulation code for the propagation of dark matter particles in a medium.
Installation
Install using pip
$ pip install --user darkprop
Install from the source
-
Download the source code from DarkProp's homepage.
-
Install dependencies. A C++ compiler supporting
C++17standard is required. GSL, HDF5, and spdlog are needed to build the Python wrapper. They can be installed, for example-
Ubuntu >= 22.04
$ sudo apt install g++ libgsl-dev libhdf5-dev libspdlog-dev
-
Fedora >= 33
$ sudo dnf install g++ python3-devel gsl-devel hdf5-devel spdlog-devel
Then prepare a python virtual environment and activate it.
$ python3 -m venv venv $ source venv/bin/activate
-
-
Build and install into the virtual environment. In the root directory of the source code, execute
$ python3 -m pip install .
Tip
If there is a network problem during pip install, you can set up a mirror server.
For example, using Tsinghua mirror,
add -i option to pip install command
$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple darkprop
Example
Install Jupyter notebook and Matplotlib to run the example.
$ jupyter-notebook example/python/basic-example.ipynb
Uninstall
$ pip uninstall darkprop
Citation
If you use darkprop in your publications, please cite the paper
- C. Xia, Y.-H. Xu, and Y.-F. Zhou, Production and attenuation of cosmic-ray boosted dark matter, JCAP, 2022, 02(02): 028, arXiv: 2111.05559
Metadata
Release files for darkprop 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 20.7 MB
Release files / darkprop-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | darkprop-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
40e465b7820a4e458c0b50adfde39cc674cb9946e3cc2dd10cf5fc655f08778a
|
|
BLAKE2b-256 checksum How to use checksums |
310b140e3145d5e2848c1e6c09d3378458da4ce8d13fe185fd74e9d99adcd6db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / darkprop-0.3.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | darkprop-0.3.0-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
48ddf305b9e9565e043b955c87b3c9d1cbba499d3768d45fd39d00bd4e059e37
|
|
BLAKE2b-256 checksum How to use checksums |
8aff8cfb9a7036025653d05aed92324aacc0fb0dcee87882bfd0e229ce247279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / darkprop-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | darkprop-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
614274bc6a444da2e45185770d10b411f0a00ce1446b4809063c4bd22880bd7d
|
|
BLAKE2b-256 checksum How to use checksums |
92653b7d186cad051d59187e492574039040dbbe09a0c0c211d4032abb97001b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / darkprop-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | darkprop-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d4bdc2eb91a6078a84cc3123b429cc384294dc1a79767d8283528272a123dec7
|
|
BLAKE2b-256 checksum How to use checksums |
fd432ef699be115676c2a7ab1d51b4ba3cd8dabb6bbbd95b95df005668216882
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / darkprop-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl
| Download URL | darkprop-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3d9c65e8c7910cc3a2278238e3a1bccab06c34d48ca6877e5464de7345904c39
|
|
BLAKE2b-256 checksum How to use checksums |
a0d1c6381dab82a811be0da89e16c626423ec6fef40259f0fda7a383cbe74e5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / darkprop-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl
| Download URL | darkprop-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a664c4552784281e518edbf1e8da6e30fea1e486eda121e5849e093ab098d877
|
|
BLAKE2b-256 checksum How to use checksums |
2131e9608dc86c63ae930da4eb58d66abc6eb4bdf1c0b4f186a58dc8de4093ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for darkprop 0.3.0
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.