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.7-cp310-none-win_amd64.whl (174.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

rustsim-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

rustsim-0.1.7-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (610.8 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.7-cp310-cp310-macosx_10_7_x86_64.whl (311.4 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.7-cp39-none-win_amd64.whl (175.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

rustsim-0.1.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

rustsim-0.1.7-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (611.3 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.7-cp39-cp39-macosx_10_7_x86_64.whl (311.8 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.7-cp38-none-win_amd64.whl (174.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

rustsim-0.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

rustsim-0.1.7-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (611.4 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.7-cp38-cp38-macosx_10_7_x86_64.whl (312.0 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.7-cp37-none-win_amd64.whl (174.8 kB view details)

Uploaded CPython 3.7 Windows x86-64

rustsim-0.1.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

rustsim-0.1.7-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (611.4 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.7-cp37-cp37m-macosx_10_7_x86_64.whl (312.1 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 fbef1492cf2720d8a713d09c7b88b19e51e8ca1529918481d8fc5089c6a7025a
MD5 0d35b71cc77906fa55e30bb05901bed0
BLAKE2b-256 2b01cecc774526fabdb5a2d48ea6c75a42d7bb23aa8195cca4eb922ff779dedd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77b9ab8fceb08a5e3157ab0c22e398f71aa6ae6e9cba8f57222505e570347dc6
MD5 d0de63eccf99671cd3f9d5b804f183cf
BLAKE2b-256 5a4cb5020be2af04b7a081ecfd48d7a36d4e78d2a0c4ff296150fcd5001d1115

See more details on using hashes here.

File details

Details for the file rustsim-0.1.7-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.7-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f8483bf72382e07ead5095b6501631a3d5a3285707f9a85856c7c5219d11bbc6
MD5 9043d9bdaea7a3e7a8b3d953fad1019d
BLAKE2b-256 37e3001b7be0075dbe5506d306562c278e1085ae176da8fb1598a84aa5ba3b07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 500430b8f2895781a702d44bd9ba58c9034c5b4640436a1793196ea8a9cde36f
MD5 43a84dc25039d768af7035796ea3183c
BLAKE2b-256 5854923effa348decaad35fa5f974554d355cef8a30a84a925fc1b648b26e54c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.7-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 175.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.16

File hashes

Hashes for rustsim-0.1.7-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 c4da03af665362ae1942c2274d0af99caf6a0007388727e75fe043649d29f5cb
MD5 b9b6e5eaa331b5390cd1eea116507135
BLAKE2b-256 efe0ec95ab127c165a72bf29e02e6d9155685d4c2095ba7cfbb3d22143545001

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 04ea89ac009ce2a9dfdb81949162ecaf6f77337de3773f051bfc33b578dc4b03
MD5 364d348ed61dde02c917d298809809db
BLAKE2b-256 5f527e777edc521a2e357a193eee13e37226affa8424968360101b479eab2f0f

See more details on using hashes here.

File details

Details for the file rustsim-0.1.7-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.7-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8ed47244fefd76c6e408a47984c71e7c2dce20559d9967d5779bf48cb32796d7
MD5 3bc77aff874b3bf75e12d59f656c20cb
BLAKE2b-256 7785924eb7a12c9753b4168108ffcd84a8de76e1f9a2d6998d51873923fd9404

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a7c56593f6a0221fbe5c77a8833c6bd5aefb477abdda70bd2d2b045eb25010ce
MD5 d42bed435cca6d35ea8cb0fb1ee05d9d
BLAKE2b-256 c255f5917b6744d708766d83fde21bb999d8d4d57c96d2be402028724e7d91ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.7-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 174.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.16

File hashes

Hashes for rustsim-0.1.7-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 af97231c5942951b5111a18725f582ec003838da8a7f33568729f25acbac4169
MD5 68db333c85aefb46118c5d8ebd1ff625
BLAKE2b-256 7e7144927714e60ffbef9debe53ce2735791b7b26597073c4a8fc9f89711ebef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 25d454059719579e2d14e5c54b7bca69de54bce8fb12fe04a4b11a8072d29cc6
MD5 f586c041573113c9942458b125820955
BLAKE2b-256 89db72ad86e48c749ceedec28eb4f444705e63a6a20dac736b0e56ada1862686

See more details on using hashes here.

File details

Details for the file rustsim-0.1.7-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.7-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 215b257d1c45745f1224a22d8d8d42fe2b53535c890af59e7d0820a6602be857
MD5 4906c9bc8b17bfd06717a6b544b5259b
BLAKE2b-256 c71e0e59052112cdfc7e53d84843c55f3d44af0a12b928b37477e48432c930e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 fd623f166e5d68dc638bb882554bcb6ac2071a95beacb3940b2e56cae8b109b8
MD5 dc76762b8a05d5b54d836ebd245589b6
BLAKE2b-256 9589d1457aabd324888234b8bb858ece23d4c83b9ba18f618d402d84017d68fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.7-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 174.8 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.16

File hashes

Hashes for rustsim-0.1.7-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 32bab677e1d9e099e9892e5b8e44b2c8a1046a4680c986ae0e7d2835f3968be9
MD5 9397e4b2c81c4ce595bb69a3e4b66ddf
BLAKE2b-256 dd46b8a569a203433e86ab6c17549f094c6d612e99e9caaa4d0dd50fe19ce6c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9354a510351006b556824a534ca0611610a58ac5bdac9021fa0e6d871b360eb6
MD5 1aa9b14e76336e3262df8d1a5f38bb72
BLAKE2b-256 7326ddc772a5c5b62515ecf68da03fa82d8b5130c7d49109def7937af431a746

See more details on using hashes here.

File details

Details for the file rustsim-0.1.7-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.7-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e87ad98a68039191d8da5dff527fbf03e979f6fb05992a19c3df68beee09d1f0
MD5 6c3b29cf0df9663c4d3bdc2638a83975
BLAKE2b-256 e0b67c6b73abcaa7be2a56bf9629e968b78ef46447076503b20616db1bb77083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.7-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d1ada9134920012d9bfe0abf0c1da5252dec1e7584dedfc49a378685c233305a
MD5 890db46e34d6c2e8c907cef2075aab2e
BLAKE2b-256 ad54a3e3e2b1c01497646ff430a664fe9e937d1db7accbc0fd59da23d143a023

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