Skip to main content

Welcome to Anomlib

Introduction

Anomlib is a project that my key projects use. It shares libraries such as:

  • Update Manager A diff/patch toolkit for pkg delivery systems. Micro Transpkg but written in python that uses JSON over a patch report.
  • Shell command wrapper: Executes shell commands from Python. Made transition easier from Bash to Python.
  • Parameter parser: Splits command-line arguments into logical areas. It currently supports tool and sub-command areas. An args-only area introduced by -- is planned. The nested sub-commands are not planned yet, but considered. Parameters are defined within drafts in TOML configuration files.
  • Pillow: Provides hashing functions and ensures that required directories and files exist. This library may eventually be deprecated or reduced to a hashing-only library.
  • Load: Compares the execution speed of compatible functions.
  • Confman: A simple configuration manager.
  • Cpconf: Copies configuration files into the user’s home configuration directory without overwriting custom configurations that already exist.

Legacy Bash Scripts

Anomlib also includes older Bash scripts that are planned to be rewritten in Python over time.

  • Dowith: Runs command-line arguments in a loop and supports using readline input as a sub-command with arguments.
  • Picload: Downloads collections or albums of pictures from the internet, such as wallpaper sets and csomics.
  • u2: Parses YouTube-related data. Its future purpose is not decided yet.
  • w2v and undub: Removes duplicate lines from input.
  • Whitespace: Removes trailing whitespace from lines.
  • Chroot into Gentoo: Some old Gentoo oriented scripts that you can source to simplify entering a freshly installed Gentoo System from the TTY using chroot.

Utility Scripts

Anomlib has several small Bash scripts, that were useful on my path of learning system administration and desktop automation and Linux in general:

  • Finding commands by walking through PATH.
  • Listing Flatpak applications, selecting one through dmenu, and running it.
  • Working with file descriptor fd3.
  • Removing noise from media files using FFmpeg.
  • Making the backlight writable for Window Managers that may require it.
  • Toggling warm screen lighting.
  • Other small utilities for command automation, system configuration, and media processing.

Some scripts are primitive and some were lost in time and never got into git, but they served its purpose at certain point.

Shared uv Makefile

Anomlib provides a common uv.mk Makefile for use across my projects. The uv.mk file is maintained and updated here. It helps build/clean/update venv, push to/fetch from PyPI.

Copy the Makefile into your project and modify it to suit that project’s requirements. Do not delete it, as it contains personal requirements shared across your projects. You will usually need to update the deps and work variables.

The Makefile can download uv.mk automatically. If your local uv.mk file is outdated, remove it and run the Makefile again to download the latest version. You can also customize the download-uv-mk target to download uv.mk from a different URL.

Planned Framework (Ifuse)

I plan to create my first small framework (ifuse) by combining some of my shared libraries into a single entity. It will provide access to configuration files, environment variables, and command-line parameters.

Ifuse may also support an interactive mode using readline. Optionally, it could provide an interactive background API service for controlling the application through API requests. We also may also allow binding some OS signals to events.

Ifuse may be somewhat similar to confuse, although that was not intentional. The original goal was simply to create my first small framework. The framework has staged processing of input channels, while both original input and processed will remain accessible. Main idea is to merge all channels into one settings object, and let all input sources simple to access and control over app.

Learn Markdown Notes

To lean how to write Markdown, you can check GitHub-flavored Markdown guide.

Metadata

Release files for anomlib 0.3.17

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

Source distribution (sdist)

Source distribution for anomlib 0.3.17
File Size Uploaded Provenance Actions
anomlib-0.3.17.tar.gz 51.3 kB Without provenance Details for anomlib-0.3.17.tar.gz

Built distribution (wheel)

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

Total release size: 108.3 kB

Release files / anomlib-0.3.17.tar.gz

Download URL anomlib-0.3.17.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c2698f0e14cd4a19c130891e6a27faea505a730130db35478b6cb6adc0da37d8
BLAKE2b-256 checksum
How to use checksums
d7c9dbb945d4f67fa1263a9d92acdcaa2ad97e644f0f20219f0d84f5411f1021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / anomlib-0.3.17-py3-none-any.whl

Download URL anomlib-0.3.17-py3-none-any.whl
Size 57.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8106b221c39701d3ea736631a46be7e2c45ff398533b3d6fb5953827fc78a2d3
BLAKE2b-256 checksum
How to use checksums
79c770aa2a62f922e7e4446ec36f53d538cd82b9a4ac2b2021dfca667012f93a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for anomlib 0.3.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.17 This release

2 release files No provenance

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