Skip to content

Index

Info

For introduction of this library, please refer to README.

Functions

By Tools

Info

All the functions are organized as follows.

Tools # Functions Description
debugtools 4 Tools for debugging purposes.
dicttools 7 Tools for operating dictionaries.
gittools 1 Tools for interacting with Git.
graphtools 1 Tools for graph.
htmltools 1 Tools for operating HTML data.
jsontools 1 Tools for operating JSON data.
mathtools 2 Tools for math.
misctools 2 Tools for miscellaneous purposes.
printtools 5 Tools for printing purposes.
rangetools 8 Tools for operating ranges/intervals.
recttools 11 Tools for operating rectangles.
seqtools 34 Tools for operating sequences.
settools 11 Tools for operating sets.
sortedtools 9 Tools for operating sorted sequences.
stattools 7 Tools for statistics.
strtools 21 Tools for operating strings.
tabletools 16 Tools for operating tables/matrices.

By Tag

Info

Only functions sharing similar logics among different categories are listed here.

Tag Description Functions
cmp Compare objects/points/sequences. misctools.cmp
recttools.pointcmp
seqtools.productcmp
flatten Flatten nested dictionary/JSON object. dicttools.flatten
jsontools.flatten
intersect Compute the intersection between ranges/rectangles/sorted sequences. rangetools.intersect
recttools.intersect
sortedtools.sortedcommon
union Compute the union between ranges/rectangles/sorted sequences. rangetools.union
recttools.union
sortedtools.sortedall
issub* Verify whether a sub-range/rectangle/sequence. rangetools.issubrange
recttools.issubrect
seqtools.issubseq
seqtools.issubseqwithgap
sortedtools.issubsorted
*cover Find the best sub-ranges/sets that cover the whole. rangetools.rangecover
settools.setcover
bestsub* Find the best sub-set/sequence. seqtools.bestsubseq
seqtools.bestsubseqwithgap
settools.bestsubset
commonsub* Find the common sub-sequence/substring. seqtools.commonsubseq
seqtools.commonsubseqwithgap
sortedtools.sortedcommon
strtools.commonsubstr
euumeratesub* Enumerate all the sub-sequences/sets. seqtools.enumeratesubseqs
seqtools.enumeratesubseqswithgap
settools.enumeratesubsets
strtools.enumeratesubstrs
match Match common elements among sequences. seqtools.match
sortedtools.sortedmatch
join Join sequences/tables. seqtools.join
seqtools.cmpjoin
sortedtools.sortedjoin
tabletools.join
matchingfrequencies Compute the frequency of each item among sequences. seqtools.matchingfrequencies
sortedtools.matchingfrequencies
merge* Merge sequence/table without conflict. seqtools.mergeseqs
tabletools.mergecols
sorted* Sort sequence/table. seqtools.sortedbyrank
seqtools.sortedtorank
tabletools.sortedbycol
filterby* Filter sequence/table. seqtools.filterbyother
tabletools.filterbycol
*2grams Convert sequence/string to grams. seqtools.seq2grams
strtools.str2grams

Data Structures

Class Description
defaultlist.DefaultList A sub-class of list that grows if necessary when accessing.
disjointsets.DisjointSets Disjoint sets.
segmenttree.SegmentTree Segment tree.

CLI Tools

Name Description
extratools-remap CLI for dicttools.remap.
extratools-flatten CLI for jsontools.flatten.
extratools-teststats CLI for stattools.teststats.