ResistanceCurvature


NameResistanceCurvature JSON
Version 0.0.0.1 PyPI version JSON
download
home_pageNone
SummaryCalculate resistance curvature
upload_time2025-10-14 01:57:35
maintainerNone
docs_urlNone
authorChaoqun Fei, Tinglve Zhou, Yangyang Li
requires_python>=3.8
licenseApache-2.0
keywords python curvature resistance geometry windows mac linux
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# ResistanceCurvature



A powerful Python package for calculating resistance curvature



## Features



- **High performance**: GPU acceleration supported

- **Easy to Use**: Fully based on PyTorch, with a clear interface design



## Installation



You can install the package using pip:



```bash

pip install ResistanceCurvature

```





## Simple Example



```python

import torch

from ResistanceCurvature.resistance_curvature import ResistanceCurvature



device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

rc = ResistanceCurvature(device=device)

adj_tensor = torch.tensor([[0, 1, 1],

                     [1, 0, 1],

                     [1, 1, 0],], dtype=torch.float32, device=device)

node_curvature, edge_curvature = rc.cal_curvature(adj_tensor)

print("Node Curvature:", node_curvature)

print("Edge Curvature:", edge_curvature)



```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ResistanceCurvature",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python, Curvature, Resistance, Geometry, windows, mac, linux",
    "author": "Chaoqun Fei, Tinglve Zhou, Yangyang Li",
    "author_email": "1079484353@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/8c/2a/f9dc0f164640670b26d496aa83d58dde7a731a3f89f079728547cbe5179b/resistancecurvature-0.0.0.1.tar.gz",
    "platform": null,
    "description": "\r\n# ResistanceCurvature\r\r\n\r\r\nA powerful Python package for calculating resistance curvature\r\r\n\r\r\n## Features\r\r\n\r\r\n- **High performance**: GPU acceleration supported\r\r\n- **Easy to Use**: Fully based on PyTorch, with a clear interface design\r\r\n\r\r\n## Installation\r\r\n\r\r\nYou can install the package using pip:\r\r\n\r\r\n```bash\r\r\npip install ResistanceCurvature\r\r\n```\r\r\n\r\r\n\r\r\n## Simple Example\r\r\n\r\r\n```python\r\r\nimport torch\r\r\nfrom ResistanceCurvature.resistance_curvature import ResistanceCurvature\r\r\n\r\r\ndevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu')\r\r\nrc = ResistanceCurvature(device=device)\r\r\nadj_tensor = torch.tensor([[0, 1, 1],\r\r\n                     [1, 0, 1],\r\r\n                     [1, 1, 0],], dtype=torch.float32, device=device)\r\r\nnode_curvature, edge_curvature = rc.cal_curvature(adj_tensor)\r\r\nprint(\"Node Curvature:\", node_curvature)\r\r\nprint(\"Edge Curvature:\", edge_curvature)\r\r\n\r\r\n```\r\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Calculate resistance curvature",
    "version": "0.0.0.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        " curvature",
        " resistance",
        " geometry",
        " windows",
        " mac",
        " linux"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "89ff250c0433f81044f15077396d67b98e7b450ca631cd69430f9d09570fb47e",
                "md5": "34ff200e1ebe699ca8a1850ab867a069",
                "sha256": "3f9cb77f490345553ea4ef39566a4bd19b36fe038877204175d0c76f13666b55"
            },
            "downloads": -1,
            "filename": "resistancecurvature-0.0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "34ff200e1ebe699ca8a1850ab867a069",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 8841,
            "upload_time": "2025-10-14T01:57:34",
            "upload_time_iso_8601": "2025-10-14T01:57:34.717746Z",
            "url": "https://files.pythonhosted.org/packages/89/ff/250c0433f81044f15077396d67b98e7b450ca631cd69430f9d09570fb47e/resistancecurvature-0.0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8c2af9dc0f164640670b26d496aa83d58dde7a731a3f89f079728547cbe5179b",
                "md5": "ffb3ea1fd5c9c25910a58629b1ac6612",
                "sha256": "39bd5186cf3b7d0e1c4e9a093a4784259754d70952a0e74dd1ed16da7f24d9a8"
            },
            "downloads": -1,
            "filename": "resistancecurvature-0.0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ffb3ea1fd5c9c25910a58629b1ac6612",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8484,
            "upload_time": "2025-10-14T01:57:35",
            "upload_time_iso_8601": "2025-10-14T01:57:35.861633Z",
            "url": "https://files.pythonhosted.org/packages/8c/2a/f9dc0f164640670b26d496aa83d58dde7a731a3f89f079728547cbe5179b/resistancecurvature-0.0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-14 01:57:35",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "resistancecurvature"
}
        
Elapsed time: 0.81547s