Skip to main content
# Python bindings for libsemigroups

## Basic instructions

Install the libsemigroups C++ library, e.g. from sources:

git clone https://github.com/james-d-mitchell/libsemigroups/ python-bindings

cd libsemigroups
make
sudo make install
sudo ldconfig

Install the python bindings::

cd python-bindings
pip3 install --user . --upgrade

Try it out:

cd python-bindings
pip3 install --user . --upgrade

python3

>>> from semigroups import Semigroup, Transformation
>>> S = Semigroup([Transformation([1,1,4,5,4,5]),Transformation([2,3,2,3,5,5])])
>>> S.size()
5

## Uploading the package to pipy

Build the binary wheel:

rm -rf dist
python setup.py sdist

The first time:

twine register dist/*.tar.gz

For latter releases:

twine upload -s dist/*.tar.gz

## Trick to debug segmentation faults

Install Sage

Install gdb in Sage:

sage -i gdb

Run sage as:

sage -gdb

and type the commands that trigger the segfault. Then gdb will be
fired automatically, allowing for analysing the stack trace.

## [TODO list](TODO)

Metadata

Release files for libsemigroups-python-bindings 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libsemigroups-python-bindings 0.2.2
File Size Uploaded Provenance Actions
libsemigroups-python-bindings-0.2.2.tar.gz 54.5 kB Without provenance Details for libsemigroups-python-bindings-0.2.2.tar.gz

Release files / libsemigroups-python-bindings-0.2.2.tar.gz

Download URL libsemigroups-python-bindings-0.2.2.tar.gz
Size 54.5 kB
Tags Source
SHA-256 checksum
How to use checksums
064f6abb1aefd662127b074576032234eb1d5dad208880c19027ae603a0b56da
BLAKE2b-256 checksum
How to use checksums
8c59c11e9daf03ce851f0687e49383bc4579cce9742bfe10387394911cd3a575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for libsemigroups-python-bindings 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page