{"library":"passagemath-homfly","title":"passagemath-homfly","description":"passagemath-homfly provides computation of Homfly polynomials for knots and links using libhomfly, integrated with the passagemath ecosystem. Current version 10.8.4, requiring Python ≥3.11 and <3.15. Follows passagemath release cadence; stable maintenance.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install passagemath-homfly"],"cli":null},"imports":["from passagemath.homfly import link_homfly_polynomial","from sage.knots.knot import Knot"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from sage.knots.knot import Knot\nfrom passagemath.homfly import link_homfly_polynomial\n\n# Create a trefoil knot (3_1)\ntrefoil = Knot('3_1')\n# Compute Homfly polynomial\npoly = link_homfly_polynomial(trefoil)\nprint(poly)","lang":"python","description":"Compute the Homfly polynomial of a trefoil knot. Requires SageMath environment.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}