ARYCAL Python Package
This crate contains the Python packaging for arycal, allowing you to install and use the arycal CLI from Python.
Installation
From PyPI (when published)
pip install arycal
From source
# Clone the repository
git clone https://github.com/singjc/arycal.git
cd arycal/crates/arycal_pyo3
# Install maturin (build tool)
pip install maturin
# Build and install the package
maturin develop --bindings bin
Usage
Command Line
Once installed, you can use arycal from the command line:
arycal config.json
Python API
You can also call arycal programmatically from Python:
import arycal
# Run arycal with arguments
exit_code = arycal.run_arycal(["config.json"])
# Or let it use sys.argv
arycal.main()
Building Wheels
To build distributable wheels for different platforms:
# From the arycal_pyo3 directory
cd crates/arycal_pyo3
# Build for the current platform
maturin build --release --bindings bin
# Build with specific features (e.g., MPI support)
maturin build --release --bindings bin --features mpi
The built wheels will be in the ../../dist/ directory and can be installed with:
pip install ../../dist/arycal-*.whl
Requirements
- Python 3.8 or higher
- Rust toolchain 1.84 or higher (for building from source)
Package Structure
python/arycal/- Python wrapper modulepyproject.toml- Python package configurationexamples/- Example Python usage scripts../arycal-cli/- Rust CLI implementation
How It Works
This package uses maturin to build Python packages from Rust code. The bindings = "bin" configuration in pyproject.toml tells maturin to include the arycal binary in the Python wheel. The Python module provides a convenient wrapper to find and execute the binary.
Metadata
Release files for arycal 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arycal-0.2.3-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| arycal-0.2.3-py3-none-manylinux_2_38_x86_64.whl | Python 3 | none | Linux glibc 2.38+ x86-64 | Details |
| arycal-0.2.3-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
Total release size: 92.4 MB
Release files / arycal-0.2.3-py3-none-win_amd64.whl
| Download URL | arycal-0.2.3-py3-none-win_amd64.whl |
|---|---|
| Size | 27.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
689d9cd22a9518007f84e9ecb18ee298b745261d55d5d749340695534fabbfd6
|
|
BLAKE2b-256 checksum How to use checksums |
adc22bc2d213807e8bdfc757151415b11be3f85983de30c053a2169be912ff73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Release files / arycal-0.2.3-py3-none-manylinux_2_38_x86_64.whl
| Download URL | arycal-0.2.3-py3-none-manylinux_2_38_x86_64.whl |
|---|---|
| Size | 36.6 MB |
| Tags | Linux glibc 2.38+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
5ea16960ab6df55e4f621b695d6db7ae80c04874a339927196739137b311f5e9
|
|
BLAKE2b-256 checksum How to use checksums |
3008da795e32f4d210e9abfefe02ea292e30631a5ecbca773f0414e7f84fee77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Release files / arycal-0.2.3-py3-none-macosx_11_0_arm64.whl
| Download URL | arycal-0.2.3-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 28.9 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5b2e81f8979b19d0c7d280ddbe46d0540f87c03e4a19b94ebbe1504db818b64e
|
|
BLAKE2b-256 checksum How to use checksums |
a7ab88f7b8f4e9b7e3a27a8b0747fc010d16dc406294524a744021c2952054ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|