Skip to main content

Documentation drawing

pyALF

A Python package building on top of ALF, meant to simplify the different steps of working with ALF, including:

  • Obtaining and compiling the ALF source code
  • Preparing and running simulations
  • Postprocessing and displaying the data obtained during the simulation

It introduces:

  • The Python module py_alf, exposing all the package's utility to Python.
  • A set of command line tools in the folder, that make it easy to leverage pyALF from a Unix shell. They are automatically exposed to the shell when pyALF is installed via pip. Their source code can be found in py_alf/cli and documentation here.
  • Jupyter notebooks in the folder Notebooks, serving as an easy introduction to QMC and ALF.
  • Python Scripts in the folder Scripts that can be run to reproduce benchmark results for established models.

The documentation can be found here.

Installation


⚠️ NOTE In previous versions of pyALF, the installation instructions asked the users to set the environment variable PYTHONPATH. This conflicts with the newer pip package, therefore you should remove definitions of this environment variable related to pyALF.


pyALF can be installed via the Python package installer pip.

pip install pyALF

For running ALF, you will additionaly need the ALF prerequsites.

Alternatively, one could use this Docker image, which has ALF, pyALF and a Jupyter server pre-installed.

Development installation

If you want to develop pyALF, you can clone the repository and install it in development mode, which allows you to edit the files while using them like an installed package. For this, it is highly recommended to use a dedicated Python environment using e.g. Python venv or a conda environment. The following example shows how to install pyALF in development mode using venv.

git clone https://github.com/ALF-QMC/pyALF.git
cd pyALF
python -m venv .venv
source .venv/bin/activate

pip install --editable .

Usage

There are multiple ways to use pyALF, which roughly breaks down into three approaches:

  • Using Jupyter notebooks
  • Using the command line interface
  • Use the module py_alf in custom scripts

Jupyter notebooks

A convenient way to use pyALF is through Jupyter notebooks. They are run through a Jupyter server started, e.g., from the command line:

jupyter-lab

or

jupyter-notebook

which opens the "notebook dashboard" in your default browser, from where one can open the sample notebooks in Notebooks/ and create new notebooks.

Command line interface

pyALF also delivers a set of command line scripts, to be use from a UNIX shell. For a full list of command line scripts see here.

Try, e.g.

alf_run -h

The source code for the scripts can be found in the folder py_alf/cli/.

Use module py_alf in custom scripts

Finally, one can also use the module module py_alf in custom Python scripts, which is analogous to the usage in Jupyter notebooks minus some interactivity.

License

The various works that make up the ALF project are placed under licenses that put a strong emphasis on the attribution of the original authors and the sharing of the contained knowledge. To that end we have placed the ALF source code under the GPL version 3 license (see license.GPL and license.additional) and took the liberty as per GPLv3 section 7 to include additional terms that deal with the attribution of the original authors(see license.additional). The Documentation of the ALF project by the ALF contributors is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (see Documentation/license.CCBYSA) We mention that we link against parts of lapack which licensed under a BSD license(see license.BSD).

Metadata

Release files for pyALF 2.6.post35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyALF 2.6.post35
File Size Uploaded Provenance Actions
pyalf-2.6.post35.tar.gz 115.8 kB Without provenance Details for pyalf-2.6.post35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyALF 2.6.post35
File Interpreter ABI Platform Actions
pyalf-2.6.post35-py3-none-any.whl Python 3 none any Details for pyalf-2.6.post35-py3-none-any.whl

Total release size: 240.2 kB

Release files / pyalf-2.6.post35.tar.gz

Download URL pyalf-2.6.post35.tar.gz
Size 115.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d0f2edc7f1b2a1d6d6cf6888f1577781f1f1b5c26e6753d86b5eb5f231393f04
BLAKE2b-256 checksum
How to use checksums
ac414f3699834f3f4cb03eb06724b958c0dfe36052e0ecfb0f81d47c8828a9a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyalf-2.6.post35-py3-none-any.whl

Download URL pyalf-2.6.post35-py3-none-any.whl
Size 124.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cab12f1ccbf6a9d6e889f1d94284b6985a64237935be95d31354f1dd04caa97
BLAKE2b-256 checksum
How to use checksums
c302198520e408bdaf02a6512e656d5e1d65a78a1e21beb080f44882545759df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pyALF 2.6.post35

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.

Release history Release notifications | RSS feed

This release

2.6.post35 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page