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.

This repository was created as a part of the SageMath interface to these databases (see Sage Trac ticket #30352) 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

SageMath

Once ticket #30352 is released, the database can be installed in Sage by:

sage -i database_knotinfo

This will contain integration with the knot and link functionality of Sage. Of course the flat Python functionality is already available by:

sage -pip install database_knotinfo

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.

Metadata

Release files for database-knotinfo 2021.7.21

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

Source distribution (sdist)

Source distribution for database-knotinfo 2021.7.21
File Size Uploaded
database_knotinfo-2021.7.21.tar.gz 4.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for database-knotinfo 2021.7.21
File Interpreter ABI Platform
database_knotinfo-2021.7.21-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 MB

Release files / database_knotinfo-2021.7.21.tar.gz

Download URL database_knotinfo-2021.7.21.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
27a02fb055772bd5d2e74d62a4cdf01d819948a9a14c0aaf34e72caaeaf9e591
BLAKE2b-256 checksum
How to use checksums
c1882f7b5b50559d2c43b0928ddb9293e2da1a1fc1b69a16fd765765907be4b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / database_knotinfo-2021.7.21-py3-none-any.whl

Download URL database_knotinfo-2021.7.21-py3-none-any.whl
Size 4.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0e1c7be16d1ea1d89a4cf2a1fa3be0f9e80685c7a476fda0a882f0e25d2aed2c
BLAKE2b-256 checksum
How to use checksums
bdfaf2a684e73f54827d36e5914fee858b91ab9eee70ff17d7924d4a02462369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

2021.7.21 This release

2 release files

21.7

2 release files

0.7

1 release file

0.6

1 release 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