No project description provided
Reason this release was yanked:
Not all wheels uploaded: GH failed midway
Project description
semsimian
Installation
- Set up your virtual environment of choice.
- cd
semsimian
(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.
>>> from semsimian import Semsimian
>>> s = Semsimian([('banana', 'is_a', 'fruit'), ('cherry', 'is_a', 'fruit')])
>>> s.jaccard_similarity('banana', 'cherry')
This should yield a value of 1.0.
Releases
As of version 0.1.14, the semsimian source is released on GitHub, with a corresponding set of Python wheels released to Pypi.
To trigger a new set of builds, first update the version number in Cargo.toml
, then create a new release.
Wheels are prepared for the following environments and architectures:
OS | Architectures | Python Versions |
---|---|---|
Linux | x86_64, x86_64-unknown-linux-musl, aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl | 3.7, 3.8, 3.9, 3.10, 3.11 |
MacOS | x86_64, universal2 | 3.7, 3.8, 3.9, 3.10, 3.11 |
Windows | x86_64 | 3.7, 3.8, 3.9, 3.10, 3.11 |
Troubleshooting
Building for Mac ARM M1 architectures
If a import semsimian
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.
Code Coverage via Docker
Build a docker image:
docker build -t my-rust-app .
Run your tests inside a Docker container and generate coverage:
docker run -v "$(pwd)":/usr/src/app -t my-rust-app bash -c "CARGO_INCREMENTAL=0 RUSTFLAGS='-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort' cargo test && grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/"
Get Coverage report from:
open ./target/debug/coverage/index.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for semsimian-0.2.3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ee30c7f30d9d3856f3bf09c3d44384629b9da0139b8a6b4565077d4604e830f |
|
MD5 | b66862092105cdfcffc8348414cbf8ec |
|
BLAKE2b-256 | 92476a98218819b9b510012f51b77380873ba4b60e5c8cd2ab5fc0b2e121844d |
Hashes for semsimian-0.2.3-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b822074ac60b9c5fd267032a19d0485b95a165b453d8153c0a30beded01450 |
|
MD5 | 7b99fa3f1f45e7a9d66d98846516c4bb |
|
BLAKE2b-256 | 3a9a3a6a20c550af7c2a40e4a040cfaa72ab9451f5c5378a2e9ebb085d3343c7 |
Hashes for semsimian-0.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa3c4e0690f02761c94a7e3cb1ce21b1a31c3895cf58fcd4785ea8c722ff014 |
|
MD5 | 7e3bb38f6687049de69d0123817e51a7 |
|
BLAKE2b-256 | 85e18e5c35d76a810c62e6a8cc4e07bcf60dd2c30225791b48712b8af24a9feb |
Hashes for semsimian-0.2.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 103e828b1c47c720a78f9df5a657092744049a6a8f75e982f2122f42e4124b93 |
|
MD5 | 7fa6aacab718de6cb3ffb875748f103e |
|
BLAKE2b-256 | c921cab30f7ab34fdb1a5392ec6e5d17d7ac7b1e49afe7fb232182095ae86014 |
Hashes for semsimian-0.2.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc41874a16b574fa7209473c645f192037326f145653ff370d30fbb320f44c38 |
|
MD5 | b7fb7a5b03d5ea4a76fac5adaa9f68a3 |
|
BLAKE2b-256 | 62582e56957ca6504f9e43d3befe80156988b8eb76280d5d144ec8b23400bda5 |
Hashes for semsimian-0.2.3-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2130e0b1d173305ef004215c220617e4d5ade507e25cf8c36018ba962c56b86a |
|
MD5 | 18f01d9cd68d5577e7eeb5ad267cd48d |
|
BLAKE2b-256 | a075d05948e62aa180b2317a08b72e7acff74b0cb9af25d855797be78bed18ba |
Hashes for semsimian-0.2.3-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903e515ebf6c45571210d7330c9319efbe7a7a1ff96afe17d30477c6ac75e5d2 |
|
MD5 | d79275415e1bc84c472c293744e59344 |
|
BLAKE2b-256 | 2de10657af3c324c862c556cdbd77c6581ad955ff86c27c4f728e25579368a08 |
Hashes for semsimian-0.2.3-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555983951ff3aca5c3760ddad2f36af4e1b8ff1e691caf194bb948cfb596090d |
|
MD5 | cacc4103bfab24db9fcdabccd7609c48 |
|
BLAKE2b-256 | 7607084acb860961936d44725a050ad9b66513a91ff7079d3539b26007a545b7 |
Hashes for semsimian-0.2.3-cp310-cp310-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fb8e9888707d7ee9e151809eb3579a3e13d6deb8fa97ed74f9547d92f0f8898 |
|
MD5 | 6237569cbcd9aefcc2fc50ed4274343f |
|
BLAKE2b-256 | 2a30b72296f00abbbf6229e9f18f581616b263a328719a1df70c51e8cd3e1672 |
Hashes for semsimian-0.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98100ec17c692509fc7de96178c4317493d6b5a61a679c3b64d358256635741f |
|
MD5 | 26befa3015dc699c0c2835fab828f7cd |
|
BLAKE2b-256 | e0ae4b13ed49abf7933dc67bc1539873a541ea3cfbafee6077c9d9747b08b3e3 |
Hashes for semsimian-0.2.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55a25e2425b6523a1666c730fdf4b58a4261125688f65969cd4298600663eff7 |
|
MD5 | 4d0191a20c30d5cabc7c4fe5113f2d91 |
|
BLAKE2b-256 | e8b064166d78edf170a9edaa4cede52f801ed62ab868ac68fdf15736ff2367e5 |
Hashes for semsimian-0.2.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6414ff760e1520537e9864a856d991493c3c11393deeefa8c1bc2de531b1d8f6 |
|
MD5 | 6d1d259616c62cba0d361359fb3d6d98 |
|
BLAKE2b-256 | c1d7773a4c8fe7f9f85262c2224993026cbc00cf99656a56cda1e06c448a4da0 |
Hashes for semsimian-0.2.3-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffab62ed3023f5f7ffc0a4894937da17a5a5b45671026e8c48970060a0e3dce6 |
|
MD5 | 4c65b43fc7a8c8df874a9b46a60b90e7 |
|
BLAKE2b-256 | ec759661bd468e15d0c4dba95179e389ece1ed582780d67fd918c9831ac5f6a6 |