{"id":48090220,"url":"https://github.com/yangeorget/nucs","last_synced_at":"2026-04-04T15:29:26.447Z","repository":{"id":283264076,"uuid":"790401736","full_name":"yangeorget/nucs","owner":"yangeorget","description":"NuCS is a Python constraint programming library for solving Constraint Satisfaction and Optimization Problems over finite domains","archived":false,"fork":false,"pushed_at":"2026-03-28T19:10:16.000Z","size":2733,"stargazers_count":54,"open_issues_count":32,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T20:36:00.274Z","etag":null,"topics":["branch-and-bound","constraint-optimisation-problem","constraint-programming","constraint-satisfaction-problem","constraint-solver","constraints","csp","numba","numpy","operational-research","optimization","python","python-3","python-library","solver"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/NuCS/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangeorget.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-22T20:13:32.000Z","updated_at":"2026-03-28T19:10:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d58e3db-187a-40d3-b5c5-1583ed28b05a","html_url":"https://github.com/yangeorget/nucs","commit_stats":null,"previous_names":["yangeorget/nucs"],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/yangeorget/nucs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangeorget%2Fnucs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangeorget%2Fnucs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangeorget%2Fnucs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangeorget%2Fnucs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangeorget","download_url":"https://codeload.github.com/yangeorget/nucs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangeorget%2Fnucs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branch-and-bound","constraint-optimisation-problem","constraint-programming","constraint-satisfaction-problem","constraint-solver","constraints","csp","numba","numpy","operational-research","optimization","python","python-3","python-library","solver"],"created_at":"2026-04-04T15:29:25.653Z","updated_at":"2026-04-04T15:29:26.385Z","avatar_url":"https://github.com/yangeorget.png","language":"Python","readme":"![NucS logo](https://raw.githubusercontent.com/yangeorget/nucs/main/assets/nucs.png)\n\n![pypi version](https://img.shields.io/pypi/v/nucs?color=blue\u0026label=pypi%20version\u0026logo=pypi\u0026logoColor=white)\n![pypi downloads](https://img.shields.io/pypi/dm/NUCS)\n\n![python version](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fyangeorget%2Fnucs%2Fmain%2Fpyproject.toml)\n![numba version](https://img.shields.io/badge/numba-v0.65-blue)\n![numpy version](https://img.shields.io/badge/numpy-v2.4.2-blue)\n\n![tests](https://github.com/yangeorget/nucs/actions/workflows/test.yml/badge.svg)\n![coverage](https://img.shields.io/badge/coverage-85-brightgreen)\n![doc](https://img.shields.io/readthedocs/nucs)\n![license](https://img.shields.io/github/license/yangeorget/nucs)\n\n## TLDR\n\nNuCS is a Python library for solving Constraint Satisfaction and Optimization Problems.\nBecause it is 100% written in Python,\nNuCS is easy to install and allows to model complex problems in a few lines of code.\nThe NuCS solver is also very fast because it is powered by [Numpy](https://numpy.org/)\nand [Numba](https://numba.pydata.org/).\n\n## Installation\n\n```bash\npip install nucs\n```\n\n## Documentation\n\nCheck out [NuCS documentation](https://nucs.readthedocs.io/).\n\n## With NuCS, in a few seconds you can ...\n\n### Find all 14200 solutions to the [12-queens problem](https://www.csplib.org/Problems/prob054/)\n\n```bash\nNUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.queens -n 12\n```\n\n![queens](https://raw.githubusercontent.com/yangeorget/nucs/main/assets/queens.gif)\n\n### Compute the 92 solutions to the [BIBD(8,14,7,4,3) problem](https://www.csplib.org/Problems/prob028/)\n\n```bash\nNUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.bibd -v 8 -b 14 -r 7 -k 4 -l 3\n```\n\n![bibd](https://raw.githubusercontent.com/yangeorget/nucs/main/assets/bibd.gif)\n\n### Demonstrate that the optimal [10-marks Golomb ruler](https://www.csplib.org/Problems/prob006/) length is 55\n\n```bash\nNUMBA_CACHE_DIR=.numba/cache python -m nucs.examples.golomb -n 10\n```\n\n![golomb](https://raw.githubusercontent.com/yangeorget/nucs/main/assets/golomb.gif)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangeorget%2Fnucs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangeorget%2Fnucs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangeorget%2Fnucs/lists"}