Skip to main content

NucS logo

pypi version pypi downloads

python version numba version numpy version

tests coverage doc license

TLDR

NuCS is a Python library for solving Constraint Satisfaction and Optimization Problems. Because it is 100% written in Python, NuCS is easy to install and allows to model complex problems in a few lines of code. The NuCS solver is also very fast because it is powered by Numpy and Numba.

Installation

pip install nucs

Documentation

Check out NuCS documentation.

See CHANGELOG.md for what changed between releases, including the 15.0.0, 16.0.0 and 17.0.0 migration notes.

With NuCS, in a few seconds you can ...

Find all 14200 solutions to the 12-queens problem

NUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.queens -n 12

queens

Compute the 92 solutions to the BIBD(8,14,7,4,3) problem

NUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.bibd -v 8 -b 14 -r 7 -k 4 -l 3

bibd

Demonstrate that the optimal 10-marks Golomb ruler length is 55

NUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.golomb -n 10

golomb

Metadata

Release files for NuCS 19.0.0

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

Source distribution (sdist)

Source distribution for NuCS 19.0.0
File Size Uploaded Provenance Actions
nucs-19.0.0.tar.gz 190.8 kB With provenance Details for nucs-19.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for NuCS 19.0.0
File Interpreter ABI Platform Actions
nucs-19.0.0-py3-none-any.whl Python 3 none any Details for nucs-19.0.0-py3-none-any.whl

Total release size: 517.3 kB

Release files / nucs-19.0.0.tar.gz

Download URL nucs-19.0.0.tar.gz
Size 190.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dac60e1f389b4c409679a5c733083c96523af06419d1c4b03285ac7c4281fbdd
BLAKE2b-256 checksum
How to use checksums
cd389ea0b4a6f9c3cce0810af0f45cf0e84eb6d601f4cffe628505cc5aefc6ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / nucs-19.0.0-py3-none-any.whl

Download URL nucs-19.0.0-py3-none-any.whl
Size 326.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07575cecc813856f8720df57f5a6e21c3a30f26503aefebf7f3f9a7b268bcbd9
BLAKE2b-256 checksum
How to use checksums
68a918098fda15e32e4b20c96f9ebfa850c99335d1f1340e4b92999e7bddee08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for NuCS 19.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nucs-19.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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

19.0.0 This release

2 release files Full 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