manabase-solver


Namemanabase-solver JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummaryMagic: the Gathering manabase solver
upload_time2024-05-04 03:36:02
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Thomas David Baker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords magic mtg manabase solver
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # manabase-solver

Magic the Gathering manabase solver

## Usage

    from manabase_solver import card, DEFAULT_WEIGHTS, make_deck, penny_dreadful_lands, solve

    Pestermite = card("2U")
    RestorationAngel = card("3W")
    KikiJikiOnTurnSix = card("2RRR", 6)
    deck = make_deck(Pestermite, RestorationAngel, KikiJikiOnTurnSix)
    solution = solve(deck, DEFAULT_WEIGHTS, penny_dreadful_lands)
    print(solution)
    print(solution.lands)

## Development

    $ git clone https://github.com/bakert/manabase-solver
    $ cd manabase-solver
    $ python3.10 -m venv .
    $ source bin/activate
    $ pip install -r requirements.txt
    $ source bin/activate
    $ pip install -e .
    $ python scripts/scratch.py
    $ pip install -r requirements-dev.txt
    $ source bin/activate
    $ make all

## Build

    $ python -m build

## Publish

    $ vi pyproject.toml  # Bump version number
    $ git add -p
    $ git commit -m "Bump version number to vX.X"
    $ git tag -a "vX.X" -m "manabase-solver vX.X"
    $ \rm -r dist
    $ python -m build
    $ twine upload dist/*

(c) 2024 Thomas David Baker <bakert@gmail.com>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "manabase-solver",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "magic, mtg, manabase, solver",
    "author": null,
    "author_email": "Thomas David Baker <bakert@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/93/49/c0cff5e63a99349a95e239bf270302b4a302f6a929ddba27db7b34830e55/manabase_solver-0.1.3.tar.gz",
    "platform": null,
    "description": "# manabase-solver\n\nMagic the Gathering manabase solver\n\n## Usage\n\n    from manabase_solver import card, DEFAULT_WEIGHTS, make_deck, penny_dreadful_lands, solve\n\n    Pestermite = card(\"2U\")\n    RestorationAngel = card(\"3W\")\n    KikiJikiOnTurnSix = card(\"2RRR\", 6)\n    deck = make_deck(Pestermite, RestorationAngel, KikiJikiOnTurnSix)\n    solution = solve(deck, DEFAULT_WEIGHTS, penny_dreadful_lands)\n    print(solution)\n    print(solution.lands)\n\n## Development\n\n    $ git clone https://github.com/bakert/manabase-solver\n    $ cd manabase-solver\n    $ python3.10 -m venv .\n    $ source bin/activate\n    $ pip install -r requirements.txt\n    $ source bin/activate\n    $ pip install -e .\n    $ python scripts/scratch.py\n    $ pip install -r requirements-dev.txt\n    $ source bin/activate\n    $ make all\n\n## Build\n\n    $ python -m build\n\n## Publish\n\n    $ vi pyproject.toml  # Bump version number\n    $ git add -p\n    $ git commit -m \"Bump version number to vX.X\"\n    $ git tag -a \"vX.X\" -m \"manabase-solver vX.X\"\n    $ \\rm -r dist\n    $ python -m build\n    $ twine upload dist/*\n\n(c) 2024 Thomas David Baker <bakert@gmail.com>\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Thomas David Baker  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Magic: the Gathering manabase solver",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/bakert/manabase-solver",
        "Issues": "https://github.com/bakert/manabase-solver/issues",
        "Repository": "https://github.com/bakert/manabase-solver"
    },
    "split_keywords": [
        "magic",
        " mtg",
        " manabase",
        " solver"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1eb76ea6df0fafaa9859baa6a1907b01cfd6c7452212da8258f2d7ffdb0c8db",
                "md5": "f638031abb44e9599b6ecefec8677fbf",
                "sha256": "801088881eba043b4526c825021d4c03aa35e2718c472d71d4a3f9b5af3f4cc7"
            },
            "downloads": -1,
            "filename": "manabase_solver-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f638031abb44e9599b6ecefec8677fbf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 22979,
            "upload_time": "2024-05-04T03:36:01",
            "upload_time_iso_8601": "2024-05-04T03:36:01.219464Z",
            "url": "https://files.pythonhosted.org/packages/a1/eb/76ea6df0fafaa9859baa6a1907b01cfd6c7452212da8258f2d7ffdb0c8db/manabase_solver-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9349c0cff5e63a99349a95e239bf270302b4a302f6a929ddba27db7b34830e55",
                "md5": "cb101fad0c44231775cbda08e8c3bb9f",
                "sha256": "00a479929358538efa0bff1ed3887faad79a4c71a948ce9aaae978dd84d86909"
            },
            "downloads": -1,
            "filename": "manabase_solver-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "cb101fad0c44231775cbda08e8c3bb9f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 25110,
            "upload_time": "2024-05-04T03:36:02",
            "upload_time_iso_8601": "2024-05-04T03:36:02.993284Z",
            "url": "https://files.pythonhosted.org/packages/93/49/c0cff5e63a99349a95e239bf270302b4a302f6a929ddba27db7b34830e55/manabase_solver-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-04 03:36:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bakert",
    "github_project": "manabase-solver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "manabase-solver"
}
        
Elapsed time: 4.39655s