Skip to main content

No project description provided

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


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

semsimian-0.1.20-cp311-none-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

semsimian-0.1.20-cp311-cp311-musllinux_1_2_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

semsimian-0.1.20-cp311-cp311-musllinux_1_2_aarch64.whl (2.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARM64

semsimian-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

semsimian-0.1.20-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

semsimian-0.1.20-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.9 MB view hashes)

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

semsimian-0.1.20-cp311-cp311-macosx_10_7_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

semsimian-0.1.20-cp310-none-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

semsimian-0.1.20-cp310-cp310-musllinux_1_2_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

semsimian-0.1.20-cp310-cp310-musllinux_1_2_aarch64.whl (2.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ ARM64

semsimian-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

semsimian-0.1.20-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

semsimian-0.1.20-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.9 MB view hashes)

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

semsimian-0.1.20-cp310-cp310-macosx_10_7_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

semsimian-0.1.20-cp39-none-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

semsimian-0.1.20-cp39-cp39-musllinux_1_2_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

semsimian-0.1.20-cp39-cp39-musllinux_1_2_aarch64.whl (2.5 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ ARM64

semsimian-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

semsimian-0.1.20-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

semsimian-0.1.20-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.9 MB view hashes)

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

semsimian-0.1.20-cp39-cp39-macosx_10_7_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

semsimian-0.1.20-cp38-none-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

semsimian-0.1.20-cp38-cp38-musllinux_1_2_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

semsimian-0.1.20-cp38-cp38-musllinux_1_2_aarch64.whl (2.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ ARM64

semsimian-0.1.20-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

semsimian-0.1.20-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

semsimian-0.1.20-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.9 MB view hashes)

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

semsimian-0.1.20-cp38-cp38-macosx_10_7_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

semsimian-0.1.20-cp37-none-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.7 Windows x86-64

semsimian-0.1.20-cp37-cp37m-musllinux_1_2_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.2+ x86-64

semsimian-0.1.20-cp37-cp37m-musllinux_1_2_aarch64.whl (2.5 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.2+ ARM64

semsimian-0.1.20-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

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

semsimian-0.1.20-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

semsimian-0.1.20-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.9 MB view hashes)

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

semsimian-0.1.20-cp37-cp37m-macosx_10_7_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

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