ref-type


Nameref-type JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/xzripper/ref_type
SummaryReferencable objects for Python.
upload_time2023-11-26 00:57:23
maintainer
docs_urlNone
authorIvan Perzhinsky.
requires_python
licenseMIT
keywords type reference utility
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======================
Referencable objects.
======================

**Referencable objects in Python.**


.. code :: python

    from ref_type import ref


    ref1: ref[int] = ref(1)
    ref2: ref[int] = ref(1)


    def add(r1: ref[int], r2: ref[int]) -> None:
        r1 += r2


    add(ref1, ref2)

    print(ref1) # => 2


Use `.get()` to get value, `.ilshift(X)` to do LeftShiftEquals.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xzripper/ref_type",
    "name": "ref-type",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "type,reference,utility",
    "author": "Ivan Perzhinsky.",
    "author_email": "name1not1found.com@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/95/a6/749e451fa398cdc4c4ae5f23d8a29c74c80e15c30440a946b4df60f9f984/ref_type-1.0.0.tar.gz",
    "platform": null,
    "description": "======================\r\nReferencable objects.\r\n======================\r\n\r\n**Referencable objects in Python.**\r\n\r\n\r\n.. code :: python\r\n\r\n    from ref_type import ref\r\n\r\n\r\n    ref1: ref[int] = ref(1)\r\n    ref2: ref[int] = ref(1)\r\n\r\n\r\n    def add(r1: ref[int], r2: ref[int]) -> None:\r\n        r1 += r2\r\n\r\n\r\n    add(ref1, ref2)\r\n\r\n    print(ref1) # => 2\r\n\r\n\r\nUse `.get()` to get value, `.ilshift(X)` to do LeftShiftEquals.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Referencable objects for Python.",
    "version": "1.0.0",
    "project_urls": {
        "Download": "https://github.com/xzripper/time_manager/archive/refs/tags/v1.0.0.tar.gz",
        "Homepage": "https://github.com/xzripper/ref_type"
    },
    "split_keywords": [
        "type",
        "reference",
        "utility"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "95a6749e451fa398cdc4c4ae5f23d8a29c74c80e15c30440a946b4df60f9f984",
                "md5": "210c1d3502ce22f8e768d5d38f80e235",
                "sha256": "3ec6152b42ff065446c1fadcf83781119b41804dafc8ad49b2a3cb73c8df04db"
            },
            "downloads": -1,
            "filename": "ref_type-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "210c1d3502ce22f8e768d5d38f80e235",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2969,
            "upload_time": "2023-11-26T00:57:23",
            "upload_time_iso_8601": "2023-11-26T00:57:23.678763Z",
            "url": "https://files.pythonhosted.org/packages/95/a6/749e451fa398cdc4c4ae5f23d8a29c74c80e15c30440a946b4df60f9f984/ref_type-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-26 00:57:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xzripper",
    "github_project": "ref_type",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ref-type"
}
        
Elapsed time: 0.53561s