Skip to main content

No project description provided

Project description

RustSim

  • Setup your virtual environment of choice.
  • cd rustsim (home directory of this project)
  • pip install maturin
  • maturin develop
  • python
Python 3.9.16 (main, Jan 11 2023, 10:02:19) 
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rustsim
>>> rustsim.run("tests/data/test_set.tsv", "tests/data/closures.tsv")

should yield

TermSetPairwiseSimilarity {
    set_id: "set3",
    original_subject_termset: {
        "apple",
        "orange",
        "banana",
    },
    subject_termset: {
        "fruit",
        "orange",
        "apple",
        "tropical",
        "banana",
    },
    original_object_termset: {
        "mango",
        "banana",
        "cheese",
        "papaya",
        "beef",
    },
    object_termset: {
        "mango",
        "fruit",
        "papaya",
        "banana",
        "cheese",
        "beef",
        "meat",
        "dairy",
        "tropical",
    },
    jaccard_similarity: 0.2727272727272727,
}
TermSetPairwiseSimilarity {
    set_id: "set1",
    original_subject_termset: {
        "apple",
        "orange",
        "banana",
    },
    subject_termset: {
        "fruit",
        "orange",
        "apple",
        "tropical",
        "banana",
    },
    original_object_termset: {
        "apple",
        "orange",
        "banana",
    },
    object_termset: {
        "orange",
        "banana",
        "apple",
        "tropical",
        "fruit",
    },
    jaccard_similarity: 1.0,
}
TermSetPairwiseSimilarity {
    set_id: "set2",
    original_subject_termset: {
        "apple",
        "orange",
        "banana",
    },
    subject_termset: {
        "fruit",
        "orange",
        "apple",
        "tropical",
        "banana",
    },
    original_object_termset: {
        "mango",
        "apple",
        "papaya",
    },
    object_termset: {
        "apple",
        "fruit",
        "papaya",
        "mango",
        "tropical",
    },
    jaccard_similarity: 0.42857142857142855,
}

Troubleshooting

Building for Mac ARM M1 architectures

If a import rustsim results in a ImportError warning about incompatible architecture, try the following:

  • Install conda. This guide may be helpful.
  • Set up a virtual environment with conda so that your Python build is aligned with your processor architecture (in this case, ARM). Try something like:
$ conda create -n myenv python=3.9
...setup happens...
$ conda activate myenv

and then proceed as above.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rustsim-0.1.10-cp310-none-win_amd64.whl (191.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

rustsim-0.1.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

rustsim-0.1.10-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (655.1 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.10-cp310-cp310-macosx_10_7_x86_64.whl (334.3 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.10-cp39-none-win_amd64.whl (191.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

rustsim-0.1.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

rustsim-0.1.10-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (655.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.10-cp39-cp39-macosx_10_7_x86_64.whl (334.5 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.10-cp38-none-win_amd64.whl (191.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

rustsim-0.1.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

rustsim-0.1.10-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (655.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.10-cp38-cp38-macosx_10_7_x86_64.whl (334.4 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.10-cp37-none-win_amd64.whl (191.4 kB view details)

Uploaded CPython 3.7 Windows x86-64

rustsim-0.1.10-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

rustsim-0.1.10-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (655.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.10-cp37-cp37m-macosx_10_7_x86_64.whl (334.4 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

Details for the file rustsim-0.1.10-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 acd1c3b4dfe990bb455bef7b182ed01b3f27fa2c6447b30b9284c3ff4eba0fee
MD5 9dab6eb4db697bf5e8fd4724488b6efa
BLAKE2b-256 9a6b76e5b69e2bf269a8f68fbecb27519413abdf556eb5705c77e16525b0b75c

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9bb1366a2da8fa3404e531acd4ddcc0c08f89abafe73d94840ec37f257c5f3a4
MD5 e68969a6c078c9f0ba39020795b91e96
BLAKE2b-256 7613750c4d46c17a0511b48da7bcbe065bbe773a4514f71f72398bcc8977573c

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2936bd4609378aec7026ecbbb783aea24cacc9becf2de0729f9b8157a8467835
MD5 139d26a5b63019d0732f6b615ff98aea
BLAKE2b-256 6f9f091c7ad539da378ac63fbc94dabb9c3ff5ab874771c1f99bfcdd2ae17706

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 fe4cfea15fe6346bf891aa3e6d61ace0de46b99af30ab9b3c1194b99888c7a83
MD5 231c19528eebff02dc7d18379d915a0b
BLAKE2b-256 edfbc7d8e924196da14bc6d179db85181b73b1049cd3a743aff0222963b5e125

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 40b73cd8b40bbbab1746beadc673befc39d68a30bf7b14903b3f8f75ee028409
MD5 2f1d48ffe384d3b285b4b983b93aa9b3
BLAKE2b-256 cc92c78b9771b61299fa289502e1c9980c3aa47d04409404bcec712de7578388

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4cf89638ba6ac5a7a5bc19fead72b47e756758070e1ad4189326d2303d0e55fb
MD5 eb44851d32aa3832da577c41ce2b4c57
BLAKE2b-256 d7cec1d2a783421921990d61e776d36689c9733a78510634aebd331f709c8693

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 213d537adea70d2b558ba5a1757009b197e8f6b219241e421ba7d980dc429a8e
MD5 ace2e0a3dd52c0b12937b111bf581fbe
BLAKE2b-256 9cd61aa00d2f1861ae7cf08288f9826feeb361e9d62a849af50d45b7e9858eb0

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 db93f44e3b9b3300aa5e963ea0bcc69c267adfce850782e05e972aa377d5d290
MD5 6ebd28bedf3bf5745346a375ba2d8f99
BLAKE2b-256 215ed61cd6696abfbc26404ef74a27b223c4e1a86b3f12249e1cf83705186f84

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 6b7f9a52e6b0eed1427493baeca75b9b383f6a1e40a0f6ab9e62ab192706ecd5
MD5 790cbe6f792838c3c721b975c7797f1b
BLAKE2b-256 6c203ffa5152f1f02f73158b73779c5c7bc70e8ab3dd66235e1f79f1dbbf9ef4

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd9e5ce20a98130d1a5304bef9137961fb038a4d99b365485ac0704808906fe9
MD5 dc16b66bad7f92ff8d9299beb332d528
BLAKE2b-256 5428b12668d8cd698dd5673c2828ada7f83871c3f5d43376ba4d1287330f6360

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f865fe081ed2e268f067d257b66c9aab5dd60872783cfaf86d51b6f6693f9ed9
MD5 46b8eb45255caef99d65801178cc9816
BLAKE2b-256 805b279cbc72ab89cf8f45743a7dab373bbf0453efac7db917e3185516ee1087

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 044957ff0e1e42f276819d06782698075da3ed6a4d67f95a4fb8ef01a696a352
MD5 d49979fa83a7f37b26df2d75dc9d7518
BLAKE2b-256 f44d3e8c3f00b0f5b1ed2206666fd8b0b8e4d547ced012d6b95140e409c566ec

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 08c020b10545633669399ae483e9d2c680d88c39365da4d0e824512bec29de2c
MD5 96476a9c3f96e1fc2560ca55787ce46a
BLAKE2b-256 070e4db0f3e416f60ddb539e59842d500209604c7f9c6e4a03a5be9d3d3cfc40

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d15a7580b5137300d126115b4ab0cdbbc7a1ac6bcf19d61020b6e6f861e22749
MD5 5c9b32cddd37d015eb7819100141f3ae
BLAKE2b-256 bec64e6f40740202932bfe96198bbd541013484c5de7fc11489b37451578ec90

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 137a61724a7e424b7023f4522783ef4a18720bf5b868656fb815f8fcfee8d00c
MD5 391c0eb57a6e2583f72548e98b703967
BLAKE2b-256 8d290e144785cc7fb922ac2a6fabe5a2b21794d5839e4cdfc23b294d9688025a

See more details on using hashes here.

File details

Details for the file rustsim-0.1.10-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.10-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 919ba0006755cd3623aaeb833a04b41ca3766484dd28d83c51b4723754c4984f
MD5 383320fe2c96a90edd7552e93b50f917
BLAKE2b-256 98ff5d99c3e37de8073d44502a58316ec92c4c4a6801c982e28d6c578f9ff9a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page