{"id":20780017,"url":"https://github.com/jmjrawlings/unconstrained","last_synced_at":"2025-12-07T18:04:02.995Z","repository":{"id":38387699,"uuid":"479632997","full_name":"jmjrawlings/unconstrained","owner":"jmjrawlings","description":"Python devcontainer for constraint programming","archived":false,"fork":false,"pushed_at":"2025-08-28T09:54:37.000Z","size":11187,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T16:41:03.106Z","etag":null,"topics":["constraint-programming","devcontainer","minizinc","operations-research","optimisation","or-tools","python"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmjrawlings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2022-04-09T05:55:05.000Z","updated_at":"2025-08-28T09:54:40.000Z","dependencies_parsed_at":"2023-09-25T01:31:04.970Z","dependency_job_id":"f98fe404-9af1-470a-ba92-db842d5e0108","html_url":"https://github.com/jmjrawlings/unconstrained","commit_stats":{"total_commits":100,"total_committers":2,"mean_commits":50.0,"dds":"0.16000000000000003","last_synced_commit":"ad3dca3ff1721510c0e42653dbb59b1e622707a6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmjrawlings/unconstrained","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjrawlings%2Funconstrained","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjrawlings%2Funconstrained/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjrawlings%2Funconstrained/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjrawlings%2Funconstrained/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmjrawlings","download_url":"https://codeload.github.com/jmjrawlings/unconstrained/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjrawlings%2Funconstrained/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27574080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-07T02:00:07.896Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["constraint-programming","devcontainer","minizinc","operations-research","optimisation","or-tools","python"],"created_at":"2024-11-17T13:31:24.106Z","updated_at":"2025-12-07T18:04:02.979Z","avatar_url":"https://github.com/jmjrawlings.png","language":"Shell","readme":"# Unconstrained\n\n[![unconstrained](https://github.com/jmjrawlings/unconstrained/actions/workflows/test.yaml/badge.svg)](https://github.com/jmjrawlings/unconstrained/actions/workflows/test.yaml)\n\nMy personal development environment for modelling and solving constraint programming problems in python.\n\n## Features\n- A fully featured [devcontainer](https://code.visualstudio.com/docs/devcontainers/containers) \n    - Python\n    - MiniZinc\n    - Google ORTools\n- A test dockerfile target (no dev dependencies)\n- A prod dockerfile target (no test dependencies)\n- Some example models (need more)\n    - [N-Queens](./models/queens/)\n    - [Nurse Rostering](./models/rostering)\n- [A strongly typed wrapper for minizinc model results](./unconstrained/minizinc/minizinc.py)\n- [A strongly typed Map class (dict replacement)](./unconstrained/prelude/map.py)\n- [A strongly typed List class (list replacement)](./unconstrained/prelude/list.py)\n- [Convenience functions for defining attrs models](./unconstrained/model/mode.py)\n- [CI/CD scripts using dagger-io](./build/build.py)\n    - Deployed to [Github](./.github/workflows/test.yaml)\n- [Multi layered python package dependency management using pip-tools](./requirements/)\n\n\n## Repository Structure\n```\n.\n├── examples       # Example problems   \n├── scripts        # Helper scripts\n├── requirements   # Python requirement files\n├── build          # Build scripts\n├── unconstrained  # Source code\n├── tests          # Test suite\n├── Dockerfile             \n├── pytest.ini              \n├── LICENSE.md              \n└── README.md               \n```\n\n\n## Links\n\n### Constraint Programming\n- [MiniZinc](https://www.minizinc.org/)\n- [MiniZinc Manual](https://www.minizinc.org/doc-latest/en/part_3_user_manual.html)\n- [MiniZinc Reference](https://www.minizinc.org/doc-latest/en/part_4_reference.html)\n- [MiniZinc Basic Modelling Course](https://www.coursera.org/learn/basic-modeling)\n- [MiniZinc Advanced Modelling Course](https://www.coursera.org/learn/basic-modeling)\n- [Discrete Algorithms Course](https://www.coursera.org/learn/solving-algorithms-discrete-optimization)\n- [Google OR-Tools](https://developers.google.com/optimization)\n- [Google OR-Tools GitHub](https://github.com/google/or-tools)\n- [Google OR-Tools Manual](https://acrogenesis.com/or-tools/documentation/user_manual/)\n\n\n### Python Packages\n- [Altair](https://altair-viz.github.io/)\n- [Attrs](https://www.attrs.org/en/stable/)\n- [Cattrs](https://catt.rs/en/stable/)\n- [OR-Tools](https://developers.google.com/optimization)\n- [Minizinc](https://github.com/MiniZinc/minizinc-python)\n- [Pytest](https://docs.pytest.org/en/latest/)\n\n\n### Development Tools\n- [Visual Studio Code](https://code.visualstudio.com/)\n- [VSCode Devcontainer](https://code.visualstudio.com/docs/remote/containers)\n- [Dagger](https://dagger.io/)\n\n\n## Notes / TODO\n\n### Docker\n- `apt-get` and `apt-install` takes forever which is very annoying when playing around with Dockerfiles.  Presumably theres a way to cache it but I can't quite figure it out.\n\n### Devcontainer\n- local variables (eg: {localEnv:USERNAME}) are not passed through properly from WSL2 to the container build\n\n### Dagger\n- Does dagger contain its own internal docker engine?\n- Can we use the hosts docker engine by default to avoid repeat image builds?","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmjrawlings%2Funconstrained","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmjrawlings%2Funconstrained","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmjrawlings%2Funconstrained/lists"}