isim


Nameisim JSON
Version 15.0.0 PyPI version JSON
download
home_pagehttps://github.com/dalemyers/xcrun
SummaryPython wrapper around the simctl utility
upload_time2023-08-24 13:30:55
maintainer
docs_urlNone
authorDale Myers
requires_python>=3.8,<4.0
licenseMIT
keywords xcode xcrun simctl ios simulator isim
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # isim

![Python Version](https://img.shields.io/pypi/pyversions/isim.svg) ![Xcode 15.0](https://img.shields.io/badge/Xcode-15.0+-blue.svg)

This is a Python wrapper around the `xcrun simctl` utility that Apple provides for interacting with the various Xcode developer tools.

`xcrun simctl` is the tool for interacting with the iOS simulator and is the main focus of this module. The syntax is designed to remain as close to that which would be used on the command line as possible. For example, to list all runtimes on the command line you would do:

    xcrun simctl list runtimes

With this module you can simply do:

    from isim import Runtime
    print(Runtime.list_all())

Most functions are on the item that they affect. So instead of running something on a device like:

    xcrun simctl do_thing <DEVICE_ID> arg1 arg2 ...

You can do this:

    from isim import Device
    iPhone7 = Device.from_name("iPhone 7")
    iPhone7.do_thing(arg1, arg2, ...)

## Testing

To run the tests, all you need to do is run `python -m pytest tests` from the root directory.

## isim and Xcode Versioning

`isim` follows the current supported version of Xcode for its version scheme.

For example, if the currently supported version of Xcode is 11, then isim will be versioned as `11.minor.patch`. The `minor` version will only be increased if there is a breaking change in Xcode requiring it (which is unlikely). The patch version will be increased with each patch that is made.

There is no expectation of backwards compatibility. If you need to support an older version of Xcode, you'll almost always need an older major version.

_Note:_ The Xcode developer tools are installed with new betas. That means that if you are running Xcode 10.2.1, but then install the Xcode 11 beta, the simulator tools will be for Xcode 11, rather than Xcode 10, even if you run `xcode-select -s`. That means that as soon as you install a beta on your machine, you will need to use that version of isim.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dalemyers/xcrun",
    "name": "isim",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "xcode,xcrun,simctl,ios,simulator,isim",
    "author": "Dale Myers",
    "author_email": "dale@myers.io",
    "download_url": "https://files.pythonhosted.org/packages/41/e9/f673aae28f9ed913daf6d67e01be0280ac3a3506ce95aeead7798f459dc0/isim-15.0.0.tar.gz",
    "platform": null,
    "description": "# isim\n\n![Python Version](https://img.shields.io/pypi/pyversions/isim.svg) ![Xcode 15.0](https://img.shields.io/badge/Xcode-15.0+-blue.svg)\n\nThis is a Python wrapper around the `xcrun simctl` utility that Apple provides for interacting with the various Xcode developer tools.\n\n`xcrun simctl` is the tool for interacting with the iOS simulator and is the main focus of this module. The syntax is designed to remain as close to that which would be used on the command line as possible. For example, to list all runtimes on the command line you would do:\n\n    xcrun simctl list runtimes\n\nWith this module you can simply do:\n\n    from isim import Runtime\n    print(Runtime.list_all())\n\nMost functions are on the item that they affect. So instead of running something on a device like:\n\n    xcrun simctl do_thing <DEVICE_ID> arg1 arg2 ...\n\nYou can do this:\n\n    from isim import Device\n    iPhone7 = Device.from_name(\"iPhone 7\")\n    iPhone7.do_thing(arg1, arg2, ...)\n\n## Testing\n\nTo run the tests, all you need to do is run `python -m pytest tests` from the root directory.\n\n## isim and Xcode Versioning\n\n`isim` follows the current supported version of Xcode for its version scheme.\n\nFor example, if the currently supported version of Xcode is 11, then isim will be versioned as `11.minor.patch`. The `minor` version will only be increased if there is a breaking change in Xcode requiring it (which is unlikely). The patch version will be increased with each patch that is made.\n\nThere is no expectation of backwards compatibility. If you need to support an older version of Xcode, you'll almost always need an older major version.\n\n_Note:_ The Xcode developer tools are installed with new betas. That means that if you are running Xcode 10.2.1, but then install the Xcode 11 beta, the simulator tools will be for Xcode 11, rather than Xcode 10, even if you run `xcode-select -s`. That means that as soon as you install a beta on your machine, you will need to use that version of isim.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python wrapper around the simctl utility",
    "version": "15.0.0",
    "project_urls": {
        "Homepage": "https://github.com/dalemyers/xcrun",
        "Repository": "https://github.com/dalemyers/xcrun"
    },
    "split_keywords": [
        "xcode",
        "xcrun",
        "simctl",
        "ios",
        "simulator",
        "isim"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7c480f5a43e1be2921f203edecda8b2ffa5edd46cce754dfce3a5b9e8a960575",
                "md5": "4bb19efc2a6756df0905a43dd23d2b1a",
                "sha256": "f472020627d9a9ddd3007aba8153aeb153fef0a3d2194f1223428a0ca104a014"
            },
            "downloads": -1,
            "filename": "isim-15.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4bb19efc2a6756df0905a43dd23d2b1a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 12612,
            "upload_time": "2023-08-24T13:30:54",
            "upload_time_iso_8601": "2023-08-24T13:30:54.340686Z",
            "url": "https://files.pythonhosted.org/packages/7c/48/0f5a43e1be2921f203edecda8b2ffa5edd46cce754dfce3a5b9e8a960575/isim-15.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41e9f673aae28f9ed913daf6d67e01be0280ac3a3506ce95aeead7798f459dc0",
                "md5": "18eae45759b534880c6be1ae6e807f47",
                "sha256": "7b174e3557db28846f3a033449b2d29a057f4c54457120a660946363065ae957"
            },
            "downloads": -1,
            "filename": "isim-15.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "18eae45759b534880c6be1ae6e807f47",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 10643,
            "upload_time": "2023-08-24T13:30:55",
            "upload_time_iso_8601": "2023-08-24T13:30:55.927176Z",
            "url": "https://files.pythonhosted.org/packages/41/e9/f673aae28f9ed913daf6d67e01be0280ac3a3506ce95aeead7798f459dc0/isim-15.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-24 13:30:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dalemyers",
    "github_project": "xcrun",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "isim"
}
        
Elapsed time: 0.57198s