Collection of utilities for use across LARC projects.
pip3 install larc
The larc
library provides a number of utilities:
larc.common
: Collection of general-purpose functions and types, patterned after thetoolz
functional programming librarylarc.yaml
: A few simple wrapper functions aroundruamel.yaml
that provides a standard interface for reading/writing YAML fileslarc.markdown
: Collection of Python Markdown extensionsMetaYamlExtension
(meta_yaml
): A slight tweak to the Meta-Data extension for providing YAML metadata at the beginning of a markdown fileSimpleTableExtension
(simpletable
): A<table>
-parsing extension for markdown that allows you to provide CSS classes for table elements within the markdownYamlDataExtension
(yaml_data
): A more general YAML-parsing extension that allows you to provide chunks of YAML data throughout the markdown file (not just at the beginning)
larc.rest
: A ReST client-building tool that attempts to be more functionallarc.logging
: Some logging utility functions that relies oncoloredlogs
for log coloringlarc.parallel
: Some functional parallelization utility functions designed for use within thetoolz
-ish functional idiomlarc.signature
: Functions to construct a host signature, for use when "fingerprinting" clients is necessarylarc.shell
: Shell command functions
The library also provides the following command-line tools:
diffips
: Given two files with IPs (A and B), get difference A - Bintips
: Given two files with IPs (A and B), get intersection A & Bdifflines
: Given two files with lines of text (A and B), get difference A - Bintlines
: Given two files with lines of text (A and B), get intersection A & Bsortips
: Given text content (from clipboard, file, or stdin), extract IPs sort themgetips
: Given text content (from clipboard, file, or stdin), extract IPs and print them