{ "info": { "author": "Omer Ozarslan", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: C++", "Programming Language :: Cython" ], "description": "# cymove\n[![Build Status](https://travis-ci.org/ozars/cymove.svg?branch=master)](https://travis-ci.org/ozars/cymove) [![Build status](https://ci.appveyor.com/api/projects/status/j604r7xh12vp0hiu/branch/master?svg=true)](https://ci.appveyor.com/project/ozars/cymove/branch/master)\n\ncymove is a header (pxd) only wrapper around C++11 `std::move` function. It\nallows using move semantics from cython code.\n\n## Installation\n\n```\npip install cymove\n```\n\n## Example Usage\n\nexample.pyx:\n```cython\n# distutils: language = c++\n\nfrom libcpp.memory cimport make_shared, shared_ptr, nullptr\nfrom cymove cimport cymove as move\n\ncdef shared_ptr[int] ptr1, ptr2\ncdef int* raw_ptr\n\nptr1 = make_shared[int](5)\nraw_ptr = ptr1.get()\nptr2 = move(ptr1)\n\nassert ptr2.get() == raw_ptr\nassert ptr1 == nullptr\n\nprint(\"OK!\")\n```\n\nCompile & run:\n\n```console\n$ cythonize -3 -i example.pyx\n$ python3 -c \"import example\"\nOK!\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ozars/cymove", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cymove", "package_url": "https://pypi.org/project/cymove/", "platform": "", "project_url": "https://pypi.org/project/cymove/", "project_urls": { "Homepage": "https://github.com/ozars/cymove" }, "release_url": "https://pypi.org/project/cymove/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "std::move wrapper for cython", "version": "1.0.0" }, "last_serial": 5579576, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7b0282ebc4c72eb7f794a13db0517d8d", "sha256": "8a756f016af268f5da24b1e8ec9ce87752f9fb1a7eba65ab2ef2000efdee4ce0" }, "downloads": -1, "filename": "cymove-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7b0282ebc4c72eb7f794a13db0517d8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3047, "upload_time": "2019-07-24T20:17:56", "url": "https://files.pythonhosted.org/packages/eb/30/41ca4c4cf0a053ce9dc8990ea74449a98046f1e751102e122714f4d2ad73/cymove-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "437613f21922a717260d60334d840519", "sha256": "bf9d955bab3a5c7299a25c16ab577ec023717141d60f9ab422f24c85d7e2f366" }, "downloads": -1, "filename": "cymove-1.0.0.tar.gz", "has_sig": false, "md5_digest": "437613f21922a717260d60334d840519", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1929, "upload_time": "2019-07-24T20:17:59", "url": "https://files.pythonhosted.org/packages/71/06/679d5683665583d5db6793d1e4a4ec0018e5297ddc68544189a5c8f6eeac/cymove-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b0282ebc4c72eb7f794a13db0517d8d", "sha256": "8a756f016af268f5da24b1e8ec9ce87752f9fb1a7eba65ab2ef2000efdee4ce0" }, "downloads": -1, "filename": "cymove-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7b0282ebc4c72eb7f794a13db0517d8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3047, "upload_time": "2019-07-24T20:17:56", "url": "https://files.pythonhosted.org/packages/eb/30/41ca4c4cf0a053ce9dc8990ea74449a98046f1e751102e122714f4d2ad73/cymove-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "437613f21922a717260d60334d840519", "sha256": "bf9d955bab3a5c7299a25c16ab577ec023717141d60f9ab422f24c85d7e2f366" }, "downloads": -1, "filename": "cymove-1.0.0.tar.gz", "has_sig": false, "md5_digest": "437613f21922a717260d60334d840519", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1929, "upload_time": "2019-07-24T20:17:59", "url": "https://files.pythonhosted.org/packages/71/06/679d5683665583d5db6793d1e4a4ec0018e5297ddc68544189a5c8f6eeac/cymove-1.0.0.tar.gz" } ] }