Skip to main content

python-grace

Test PyPI version

An unofficial Python wrapper for the GRACE system (the public version for tree-level computations).

This is a pre-alpha version.

Requirements

  • Python >= 3.6.1
  • pip >= 19.0
  • C compiler
  • Fortran compiler
  • Make utility
  • X Window system (optional, for gracefig and grcdraw)
  • Motif Toolkit or its clone (optional, for gracefig)
  • ps2pdf in Ghostscript (optional, to generate PDF files with gracefig)

Debian or Ubuntu

sudo apt-get install gfortran ghostscript libmotif-dev make python3-pip

Fedora

sudo dnf install gcc-gfortran ghostscript make motif-devel python3-pip

Installation

Use pip:

pip install python-grace

which installs the grace command. (You may need to adjust $PATH. You can always use python -m grace, instead.)

To select the compilers, specify them as environment variables when pip runs:

CC=gcc-12 FC=gfortran-12 pip install python-grace

You can use pipx instead of pip if you prefer to install this software in an isolated and/or temporary environment.

Example

mkdir my_process
cd my_process
grace template sm/eewwa
grace grc
grace gracefig - # requires optional dependencies
grace grcfort
make all
./gauge
./integ
./spring

Development

poetry install
poetry run task prepare

License

The code in this repository is covered under the MIT license.

Note that, however, the source code of the GRACE system is not MIT licensed. Indeed, this repository itself does not contain any part of GRACE. When you install this software, the source code distribution of GRACE will automatically be downloaded from the original site.

Metadata

Release files for python-grace 0.0.9

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

Source distribution (sdist)

Source distribution for python-grace 0.0.9
File Size Uploaded Provenance Actions
python_grace-0.0.9.tar.gz 16.0 kB Without provenance Details for python_grace-0.0.9.tar.gz

Release files / python_grace-0.0.9.tar.gz

Download URL python_grace-0.0.9.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
530bd3e20f50a188b3b519374a938aad774b3960cbc6d98282e4d38b6052df92
BLAKE2b-256 checksum
How to use checksums
b21475d93af75fe03fb8094ea4db5eaeb0383342eea748f95d793c8013d5e8b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

Security for python-grace 0.0.9

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.

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