Skip to main content

abomination

A dumpster fire of metaprogramming and other Python abuses.

Some code is so bad it just has to be written, documented, tested, and packaged. This is the place for such ideas.

Installation

Install the package from pypi:

pip install abomination

Usage

Automatic installation of packages

Somewhere before your first third-party import, but the following line:

import abomination; abomination.magic()

If an import fails, we will try to install the package with pip and restart the script.

import abomination; abomination.magic()

# This just works!
import numpy as np

Of course, this only works if the import name matches the distribution name. Prepare for an ugly recursion while Python screams "I cannot import pyyaml!" and pip shouts back "But I have already installed pyyaml!" (note: the import name is yaml).

Calling out code style you don't like

Linters are for the weak, real checks hit hard at run time! Following the example of Python's treatment of whitespace, code style violations raise a SyntaxError if you call call_out:

import abomination

abomination.call_out(sadface=True)

# Some dummy code to provoke
if (
    this_code_uses_some_practices_that_i_dislike := True
    and others_should_know_about_it := True
):
    pass

Output:

SyntaxError: It saddens me to see '):' in your code :(

This function, just like the whole package, is intended as a light-hearted joke. It was inspired by this twitter thread: https://twitter.com/gvanrossum/status/1395135889123069952 If anyone involved feels offended, please contact me and I will remove it.

Metadata

Release files for abomination 0.2.0

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

Source distribution (sdist)

Source distribution for abomination 0.2.0
File Size Uploaded Provenance Actions
abomination-0.2.0.tar.gz 2.8 kB Without provenance Details for abomination-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.7 kB

Release files / abomination-0.2.0.tar.gz

Download URL abomination-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16b1c94811d35fa6c18b5d1dad05d213fa903f5ede9ae8ebb99572ca129ee4f9
BLAKE2b-256 checksum
How to use checksums
f1624c5415c712ab13266b470f43ac93b5e410926c3ea7ebe3858025bed2f51b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0

Release files / abomination-0.2.0-py3-none-any.whl

Download URL abomination-0.2.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e62b8d02b4b84ecc4aa75e7e6b782bdb77b78f3f6bfbaf654df4f97ce932faa2
BLAKE2b-256 checksum
How to use checksums
774cf5d848db7f44d45ab1a45f051c755fa39b1327fbf759a9ed9e461cc0ee3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0

Security for abomination 0.2.0

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.2.0 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