Skip to main content

An unofficial project that provides Python bindings for the MARISA Trie, which is implemented in C++ using SWIG.

Project description

marisa-bindings

This is an unofficial project that provides Python bindings for the MARISA Trie, which is implemented in C++ using SWIG.

Installation

It is recommended to use a Python virtual environment to isolate dependencies and avoid conflicts. To create and activate a virtual environment, run:

% python -m venv .venv
% . .venv/bin/activate

Installing from PyPI

To install marisa-bindings from PyPI into your virtual environment, run:

% pip install marisa-bindings

Installing from GitHub

Alternatively, if you prefer to install marisa-bindings directly from the GitHub repository, use:

% pip install git+https://github.com/juno-rmks/marisa-bindings.git

Usage

To get started with marisa_bindings, import the marisa module, which provides access to the MARISA trie functionalities:

from marisa_bindings import marisa

For more detailed usage examples, refer to the marisa-bindings-sample.py file.

License

This project is licensed under the following terms:

  • Wrapped Code: The wrapped code in this repository is licensed under the BSD 2-Clause License.
  • Original marisa-trie Code: The original marisa-trie code is dual-licensed under the BSD 2-Clause License and the LGPL 2.1 or any later version.

For more details, please see the LICENSE file.

Acknowledgments

Special thanks to the original authors of the MARISA library for their work.

Project details


Download files

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

Source Distribution

marisa_bindings-1.0.0.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

marisa_bindings-1.0.0-cp310-cp310-macosx_14_0_arm64.whl (84.0 kB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

File details

Details for the file marisa_bindings-1.0.0.tar.gz.

File metadata

  • Download URL: marisa_bindings-1.0.0.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for marisa_bindings-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6362e9d944290dcdaedfc6081d95700acae80a687bb1f12b21e195aa42a591d2
MD5 53bde741a5ae23b288cfecdf7c4464e4
BLAKE2b-256 1d1d41094e61b2b394c29529ee2994d753e000647bd45b9710f48479aef226b2

See more details on using hashes here.

File details

Details for the file marisa_bindings-1.0.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for marisa_bindings-1.0.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 92adb002abf33b2f4281b4b600959d2c7453d98c1b296edf1608da8f16b12e20
MD5 ffa9bac8dfc80cfa23bb4e8f91c179f0
BLAKE2b-256 84aff91fdff12e2ea622e8dd332a82b2e1969be9aaea6dc69709d95ca685ebce

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