Skip to main content

abliteration

PyPI version Python versions License: MIT

Python client for the abliteration.org catalog API.

The same data that renders the site — models, datasets, methods, indices, timeline — served as JSON, with an httpx-based client and a small abl CLI. Sync only for now.

Install

pip install abliteration

Python 3.9 or newer. The only runtime dependency is httpx.

Get a key

Generate a Bearer token at https://abliteration.org/shop/account#api-keys. Then either export it, or pass it to Client(api_key=...):

export ABLITERATION_API_KEY=abl_live_...

Quick start

from abliteration import Client

with Client() as c:
    for m in c.models(method="M4", limit=5):
        print(m.id, m.downloads)

    m = c.model("mlabonne/Qwen3-30B-A3B-abliterated")
    print(m.author, len(m.files), "files")

    for idx in c.indices():
        print(idx.id, idx.value, idx.unit)

Every list endpoint returns list[SummaryDataclass], every single-entity endpoint returns a DetailDataclass. Fields are typed but forgiving — extra fields the server adds later are ignored rather than raising, so old client versions keep working.

Envelope

If you need cost, credits_remaining, or the rate-limit metadata:

env = c.get_envelope("/api/v1/models", params={"method": "M4", "limit": 3})
print(env.data)              # list of raw dicts
print(env.credits_remaining) # wallet after this call
print(env.rate_limit_remaining, "/", env.rate_limit_limit)

Errors

from abliteration import (
    Client, AuthenticationError, PaymentRequiredError, RateLimitError, APIError
)

try:
    with Client() as c:
        c.models(limit=3)
except AuthenticationError:
    ...  # 401 — bad or missing key
except PaymentRequiredError as e:
    ...  # 402 — wallet empty; e.body["message"] points at top-up
except RateLimitError as e:
    ...  # 429 — after built-in retries; e.retry_after is int seconds
except APIError as e:
    ...  # anything else; e.status_code, e.body, e.request_id

By default the client retries 429 up to twice, honoring retry_after. Set max_retries=0 to opt out.

CLI

The package installs an abl command (with abliteration as a longer alias for the same entry point):

abl credits
# credits: 9,847
# rate limit: 118/120 left this window

abl models --method M4 --limit 5
# mlabonne/Qwen3-30B-A3B-abliterated                          234,128
# mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF         30,530
# ...

abl model mlabonne/Qwen3-30B-A3B-abliterated
# id:     mlabonne/Qwen3-30B-A3B-abliterated
# author: mlabonne
# name:   Qwen3-30B-A3B-abliterated
# files:  14

abl get /api/v1/methods --json | jq '.data[] | .id'

--json on any command emits structured output for pipelines.

The richer CLI with browser-based login, keyring integration, and table formatting lives in @abliteration/cli on npm. This one is deliberately minimal and covers the everyday scripting case.

Endpoints covered

  • models(...), model(id) — models list and detail
  • methods(), method(id) — M1-M9 taxonomy
  • indices(), index(id) — DAI, Freedom Velocity, Weaponization, F2W Latency
  • authors(...), author(id) — author aggregates
  • datasets(...), dataset(id) — datasets list and detail
  • timeline(...) — events

Documentation

Full API reference: https://abliteration.org/api.

License

MIT.

Metadata

Release files for abliteration 0.1.6

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

Source distribution (sdist)

Source distribution for abliteration 0.1.6
File Size Uploaded Provenance
abliteration-0.1.6.tar.gz 14.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 31.8 kB

Release files / abliteration-0.1.6.tar.gz

Download URL abliteration-0.1.6.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
979b72300a0f7e31bfe4b1c27d56e13b88d9a4516654348e3465db01cf029b2d
BLAKE2b-256 checksum
How to use checksums
a783503d8f165620949875917edb6bbc07b74bb43c15ffc26be221b65878aa8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / abliteration-0.1.6-py3-none-any.whl

Download URL abliteration-0.1.6-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc51a8874ca7d4baa1665b20dbc4f964096443cd805c488fc1e649f4c30b4d60
BLAKE2b-256 checksum
How to use checksums
e6a1d0e134e7a6c273fa6f766c05d4974b2a88dc4e430fca5b92b42fcc20d800
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for abliteration 0.1.6

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.

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