Skip to main content

fcmaes-rust for Python

fcmaes-rust provides Python access to fast, parallel, gradient-free optimization algorithms implemented in native Rust. The optimizer core is pure Rust and does not compile, link, or load the historical C++ backend.

Installation

python -m pip install fcmaes-rust

The initial release supports CPython 3.11 through 3.13 on the platforms for which wheels are listed on PyPI.

Quick check

import fcmaes_rust

print(fcmaes_rust.__version__)
print(fcmaes_rust.phase1_build_info())

Optimizers

The package exposes one-shot and ask/tell interfaces for Differential Evolution, active CMA-ES, CR-FM-NES, PGPE and BiteOpt, plus Dual Annealing, MODE, MAP-Elites, the Diversifier, independent retry, coordinated retry and weighted multi-objective retry.

The functions currently return low-level NumPy arrays, tuples or dictionaries. See the Python binding guide for signatures, examples, parallelism behavior and result layouts. Every exported function, stateful method, and property also provides an installed runtime docstring, for example help(fcmaes_rust.optimize_de) or help(fcmaes_rust.MODE). SciPy is a runtime dependency because retry callbacks receive a public scipy.optimize.Bounds object.

import numpy as np
import fcmaes_rust

def sphere(x):
    return float(np.dot(x, x))

dim = 4
empty = np.empty(0, dtype=np.float64)
x, value, evaluations, iterations, stop = fcmaes_rust.optimize_de(
    sphere,
    dim,
    np.full(dim, -5.0),
    np.full(dim, 5.0),
    empty,
    empty,
    np.empty(0, dtype=np.bool_),
    seed=7,
    max_evaluations=4_000,
    popsize=20,
)
print(value, evaluations, x)

Python callbacks must reacquire the GIL. Native Rust objectives offer the strongest parallel scaling; cheap pure-Python callbacks are usually callback-bound.

Project links

License

MIT

Metadata

Release files for fcmaes-rust 0.1.5

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

Source distribution (sdist)

Source distribution for fcmaes-rust 0.1.5
File Size Uploaded Provenance
fcmaes_rust-0.1.5.tar.gz 151.1 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for fcmaes-rust 0.1.5
File
fcmaes_rust-0.1.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details
fcmaes_rust-0.1.5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
fcmaes_rust-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
fcmaes_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
fcmaes_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
fcmaes_rust-0.1.5-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
fcmaes_rust-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
fcmaes_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
fcmaes_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details
fcmaes_rust-0.1.5-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
fcmaes_rust-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
fcmaes_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
fcmaes_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details

Total release size: 9.3 MB

Release files / fcmaes_rust-0.1.5.tar.gz

Download URL fcmaes_rust-0.1.5.tar.gz
Size 151.1 kB
Tags Source
SHA-256 checksum
How to use checksums
feaa6f5436f2665a7293d10b50691fe3ee730c5a98331b1de53f89dc53944304
BLAKE2b-256 checksum
How to use checksums
a4e0052ee6171b2413fc35655040794c6c26085c6a637596c3f2a6bae11bd484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.1.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 747.6 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
c8e79325bfaf58780e1437769d97ffeafa5bc7228b29bec4cdfd6a4c4bef6ac2
BLAKE2b-256 checksum
How to use checksums
5f3130b73aecfe111d7581bb80fff6baa3e3316e4a2238f94fa4951c70716fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp313-cp313-win_amd64.whl

Download URL fcmaes_rust-0.1.5-cp313-cp313-win_amd64.whl
Size 702.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
38777c7c7439724db083cbda2bebfb5221ae075003408a4000aa4c88227cd0cc
BLAKE2b-256 checksum
How to use checksums
9cefe766d473e3bdc9455decef10f1be39963cd0bf431d6d190d11ccd64651c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 747.4 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
129bf0f4d9f9dbfb55042aeed7acc05775593c2119e6672fa705b22f7d8d21e9
BLAKE2b-256 checksum
How to use checksums
bdf98c0e6eb0337c95f706a741bb32376e634e95b8e177cd6b021acdb2003433
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Size 648.2 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dfac484d039ca4b97fdc5088263f86c8363c8b7f85057241528068e4b2946077
BLAKE2b-256 checksum
How to use checksums
1d14c6d492cdc9b3cb974c8c86c3b188592ad41bbaec1fe872243263f1cbace7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl
Size 711.5 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0be677d961a678fbf46f1d013ececc2fbdcba94762bd8effdce100880fe28eb4
BLAKE2b-256 checksum
How to use checksums
a1087fbff2a7be2d29a34ca0b7ed23c7cd59b1e190bed2c40b7caf038157f7eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp312-cp312-win_amd64.whl

Download URL fcmaes_rust-0.1.5-cp312-cp312-win_amd64.whl
Size 702.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
10d8f6ce8e5fb506ae145418fdd5ba7508ce7a1f8081dd7a965c58285d7b3e45
BLAKE2b-256 checksum
How to use checksums
42773af40f750d7d989b14f2a28d726c7423938dcaedbf7e01ca7a7da46bcfe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 748.0 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a3f8130ef3d6aa510d10ca0332e54165b3150db2ff481eeb12f5c04872f46005
BLAKE2b-256 checksum
How to use checksums
1c6369ba1efeaba9ba342f812d6b4f077f9bc517214fde7fbdfd2a62072a0e15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Size 648.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4f76a83c7fb0a9e8dd7da25386047fadafa0852ee5a995a830ac544aa043ee1e
BLAKE2b-256 checksum
How to use checksums
88577175be7616eace952697083654e17141bc86cfc2c5ce30de5316629e89ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
Size 711.9 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d380f0a7036b513c8a1c24bbcb9a3e7b42bd47dd0ebd76d9a2e68008895975b0
BLAKE2b-256 checksum
How to use checksums
9492123028a3316f67c5b85ac77b520f1707752b75304c6d04bd2d93dbe10d42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp311-cp311-win_amd64.whl

Download URL fcmaes_rust-0.1.5-cp311-cp311-win_amd64.whl
Size 699.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7b1cfb0842b381f7b606c7e7309b6ae9e56aec8e506ae8e17ca142e7bd00ab49
BLAKE2b-256 checksum
How to use checksums
38053e7fc23a6115face49c7579cae4ca4a108a7df526753a75d7b5e7aaaafd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fcmaes_rust-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
12fbfa96ab074bd55d55ef001bbe4f791cb0a3f13ba03237c324f48f35a633ee
BLAKE2b-256 checksum
How to use checksums
39d66d6658a647ce6ee25c23b05c1f5ff604b9bf292716355bc8f5b05c57ffe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl

Download URL fcmaes_rust-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Size 649.1 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7d37a7f6acbacb76611fc071cb0826f54e1c44526bc19154dc77b091a4412b6c
BLAKE2b-256 checksum
How to use checksums
8567680a5894308797a10950c9b7d9d545d126b8c0f610a34c55a6ceeeedc087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fcmaes_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl

Download URL fcmaes_rust-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl
Size 713.4 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
276e9c4187ffbc0d26aafe0ff4650747eae69d87fd2e7f11e5c5563680a95edb
BLAKE2b-256 checksum
How to use checksums
9146ee3af09de83f2a0c1d813fc96a053e184900918de72b44ebdca46a4cf345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fcmaes-rust 0.1.5

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