Observed since 20 Oct, 19:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python Package for Monetizing your LLM using AdLib
A Python wrapper for monetizing LLM output with AdLib.
Install from PyPI:
pip install adlib-client
AdLib requires two keys:
ADLIB_API_KEY=your_adlib_api_key_here
ADLIB_CHATBOT_PUBLIC_KEY=your_chatbot_public_key_here
You can provide them using environment variables (in a .env file) or directly when creating AdLib():
from adlib_client import AdLib
adlib = AdLib(
adlib_api_key="your_adlib_api_key_here",
adlib_chatbot_api_key="your_chatbot_public_key_here",
)
When you create an instance of AdLib(), it automatically attempts to validate your credentials against the AdLib service.
Exception is raised immediately.ValueError is raised with the specific error message from the service.from adlib_client import AdLib
# Automatically loads keys from environment or .env
adlib = AdLib()
llm_output = "Here is the answer from your model."
adified_output = adlib.adify(llm_output)
print(adified_output)
adlib.adify() sends text to AdLib and returns the final transformed output string. If an ad is inserted, it's included in the string; otherwise, the original text is returned.
AdLib as a decoratorYou can wrap your generation functions directly:
from adlib_client import AdLib
adlib = AdLib()
@adlib.adify
def generate_answer(prompt: str) -> str:
# Your LLM logic here
answer = ...
return answer
# The returned value is now automatically adified
print(generate_answer("What is the weather?"))
Exception for missing keys, ValueError for invalid keys.requests exceptions (e.g., connection issues).adify() safely returns the original LLM output.adlib.adify() returns the transformed text string directly.adify when you want to wrap LLM outputs or decorate generation functions.pypistats · 48 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-20 – 2026-10-20 | 3 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-19 – 2026-10-19 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-18 – 2026-10-18 | 13 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-13 – 2026-10-13 | 3 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-12 – 2026-10-12 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-10 – 2026-10-10 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-09 – 2026-10-09 | 6 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-08 – 2026-10-08 | 14 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-06 – 2026-10-06 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-05 – 2026-10-05 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-04 – 2026-10-04 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-10-01 – 2026-10-01 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-30 – 2026-09-30 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-29 – 2026-09-29 | 5 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-28 – 2026-09-28 | 10 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-27 – 2026-09-27 | 17 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-26 – 2026-09-26 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-24 – 2026-09-24 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-22 – 2026-09-22 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-19 – 2026-09-19 | 12 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-12 – 2026-09-12 | 3 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-10 – 2026-09-10 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-09 – 2026-09-09 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-07 – 2026-09-07 | 7 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-05 – 2026-09-05 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-03 – 2026-09-03 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-09-02 – 2026-09-02 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-31 – 2026-08-31 | 3 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-30 – 2026-08-30 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-28 – 2026-08-28 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-24 – 2026-08-24 | 13 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-23 – 2026-08-23 | 7 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-20 – 2026-08-20 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-17 – 2026-08-17 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-16 – 2026-08-16 | 7 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-14 – 2026-08-14 | 4 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-13 – 2026-08-13 | 3 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-09 – 2026-08-09 | 6 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-05 – 2026-08-05 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-04 – 2026-08-04 | 4 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-03 – 2026-08-03 | 6 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-07-29 – 2026-07-29 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-07-27 – 2026-07-27 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-07-26 – 2026-07-26 | 1 | 2026-10-21T15:43:45.5663289Z |
| 2026-07-24 – 2026-07-24 | 2 | 2026-10-21T15:43:45.5663289Z |
| 2026-07-23 – 2026-07-23 | 3 | 2026-10-21T15:43:45.5663289Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.9 | 9 May 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:2ac01b3215ecafa1aecf6708d27c8566ab14259ffc0c01c285a5f139d6d732a3