Skip to main content

Database KnotInfo

This repository contains a snapshot of the complete content of the KnotInfo and LinkInfo databases. Each database is provided as a Python list of Python dictionaries. The data are from the corresponding Excel spreadsheets available on the KnotInfo and LinkInfo homepages on the date of release.

Please note that the databases contain columns that are not visible on the web pages (see also the Release Notes 2023.4.8). The validity of the information in such columns cannot be guaranteed. Also, there are plans to remove them in the future.

This repository was created as a part of the SageMath interface to these databases (see the corresponding section of the SageMath reference manual or this tutorial) but can also be used independently.

In Python, it can be used as follows:

>>> from database_knotinfo import link_list
>>> k = link_list()
>>> len(k)
2979
>>> names_k = k[0]
>>> type(names_k)
<type 'dict'>
>>> names_k['braid_index']
'Braid Index'
>>> k2 = k[2]
>>> k2['name']
'3_1'
>>> k2['braid_index']
'2'
>>> k2['homfly_polynomial']
'(2*v^2-v^4)+(v^2)*z^2'

>>> l = link_list(proper_links=True)
>>> len(l)
4189
>>> names_l = l[0]
>>> type(names_l)
<type 'dict'>
>>> names_l['braid_notation']
'Braid Notation'
>>> l2 = l[2]
>>> l2['name']
'L2a1{1}'
>>> l2['homflypt_polynomial']
'v/z-v^3/z + v*z'

To build a new release, the CSV files can be upgraded with the create_knotinfo_csv.py script. A cronjob executes it on the first day of every month and creates a new release if differences are detected.

Installation

Python

pip install database_knotinfo

or

pip install database_knotinfo==2021.9.1

if you want to install a former version.

SageMath

Since Release 9.4, the database can be installed in Sage by:

sage -i database_knotinfo

This will contain integration with the knot and link functionality of Sage. Sage 9.4 ships the PyPI release 0.7 of the database. To use a more recent one you have to execute

sage -package update database_knotinfo <version>

before the installation command above, for example:

sage -package update database_knotinfo 2021.9.1

This procedure can be used to upgrade to the next version, as well. But note that there is a bug in 9.4 concerning such upgrades which will be fixed in SageMath 9.5 (see Trac ticket #32099). A workaround for 9.4 can be perfomed in a Sage session as follows:

sage: from sage.databases.knotinfo_db import KnotInfoDataBase
sage: KnotInfoDataBase().reset_filecache()

If you upgrade to a version of the database which is ahead of the version the SageMath release is build on, you should keep in mind, that the examples shown in the Sage reference manual may be outdated.

In case the installation via sage -i is failing on your system you can try:

sage -pip install database_knotinfo

or

sage -pip install database_knotinfo==0.7

for the version compatible the the current Sage release.

Open in Gitpod

Versioning

Version numbers are automatically generated every month if differences to the original databases are detected. They follow the scheme

<year>.<month>.<day>

Help

If you note a divergence between this repository and the original data in case the current release is older than a month please create an issue about that.

Credits

Many thanks to Chuck Livingston and Allison Moore for making the data available. For further acknowledgments see the corresponding homepages.

Download files

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

Source Distribution

database_knotinfo-2026.9.1.tar.gz (16.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

database_knotinfo-2026.9.1-py3-none-any.whl (17.4 MB view details)

Uploaded Python 3

File details

Details for the file database_knotinfo-2026.9.1.tar.gz.

File metadata

  • Download URL: database_knotinfo-2026.9.1.tar.gz
  • Upload date:
  • Size: 16.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for database_knotinfo-2026.9.1.tar.gz
Algorithm Hash digest
SHA256 68a92a292d31c34dd8779e2a79551c87cb6637e4424cf88f90a1c74e3c36c4a5
MD5 46bfbe0f2d8f5aeeb410dbe8143adc85
BLAKE2b-256 d84f1c566b90bb1c9ebbff107db8ecf3a2bf202280382d1944ff0269dd389225

See more details on using hashes here.

File details

Details for the file database_knotinfo-2026.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for database_knotinfo-2026.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70d021f11a38306b219318464810bf28cd728b6e4ecf892401c2d1ad35ba75ab
MD5 65cd3da4888845e87bdbe19c27fd3b78
BLAKE2b-256 ebf6aaf9bfd63fcfe2b9bb231d3ff2ffa2823181a7034d075bd8b5c1fbe54956

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.9.1 This release

2 files

2026.8.1

2 files

2026.7.1

2 files

2026.6.1

2 files

2026.4.1

2 files

2026.3.1

2 files

2026.2.1

2 files

2026.1.1

2 files

2025.12.1

2 files

2025.11.1

2 files

2025.10.1

2 files

2025.9.1

2 files

2025.8.7

2 files

2024.12.1

2 files

2024.11.1

2 files

2024.10.1

2 files

2024.9.1

2 files

2024.8.1

2 files

2024.7.1

2 files

2024.6.1

2 files

2024.5.1

2 files

2024.4.1

2 files

2024.3.1

2 files

2024.2.1

2 files

2024.1.1

2 files

2023.12.1

2 files

2023.11.1

2 files

2023.10.1

2 files

2023.8.1

2 files

2023.7.1

2 files

2023.6.1

2 files

2023.5.1

2 files

2023.4.8

2 files

2022.10.11

2 files

2022.7.1

2 files

2022.6.1

2 files

2022.4.1

2 files

2022.3.1

2 files

2022.2.1

2 files

2022.1.3

2 files

2021.12.1

2 files

2021.11.1

2 files

2021.10.1

2 files

2021.9.1

2 files

2021.7.21

2 files

21.7.15

2 files

21.7

2 files

0.7

1 file

0.6

1 file

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