Skip to main content

LARC Core Toolset

Collection of utilities for use across LARC projects.

Installation

pip3 install larc

How to Use

The larc library provides a number of utilities:

  • larc.common: Collection of general-purpose functions and types, patterned after the toolz functional programming library
  • larc.yaml: A few simple wrapper functions around ruamel.yaml that provides a standard interface for reading/writing YAML files
  • larc.markdown: Collection of Python Markdown extensions
    • MetaYamlExtension (meta_yaml): A slight tweak to the Meta-Data extension for providing YAML metadata at the beginning of a markdown file
    • SimpleTableExtension (simpletable): A <table>-parsing extension for markdown that allows you to provide CSS classes for table elements within the markdown
    • YamlDataExtension (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 functional
  • larc.logging: Some logging utility functions that relies on coloredlogs for log coloring
  • larc.parallel: Some functional parallelization utility functions designed for use within the toolz-ish functional idiom
  • larc.signature: Functions to construct a host signature, for use when "fingerprinting" clients is necessary
  • larc.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 - B
  • intips: Given two files with IPs (A and B), get intersection A & B
  • difflines: Given two files with lines of text (A and B), get difference A - B
  • intlines: Given two files with lines of text (A and B), get intersection A & B
  • sortips: Given text content (from clipboard, file, or stdin), extract IPs sort them
  • getips: Given text content (from clipboard, file, or stdin), extract IPs and print them

Metadata

Release files for larc 0.0.27

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

Source distribution (sdist)

Source distribution for larc 0.0.27
File Size Uploaded
larc-0.0.27.tar.gz 38.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for larc 0.0.27
File Interpreter ABI Platform
larc-0.0.27-py3-none-any.whl Python 3 none any Details

Total release size: 82.7 kB

Release files / larc-0.0.27.tar.gz

Download URL larc-0.0.27.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
75011fc683f7198133ed6ce2e4f55aa7cf3e6e759df976efc53dd55804d3766d
BLAKE2b-256 checksum
How to use checksums
f30ef3ed688fa0d6c7e54141a4bb0bc37af0fe038642d7d1ef16efdf95d10861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+

Release files / larc-0.0.27-py3-none-any.whl

Download URL larc-0.0.27-py3-none-any.whl
Size 44.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b50867c74186cfac94d2e0ccc43daf7675e3376b20cdeb60a61d2c93fdce3d5b
BLAKE2b-256 checksum
How to use checksums
87a1ec5652d0ec6e8a088040dd0fa4b9d4c5fd0b7a3da6e47fe775224ddcbbf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+
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