Catalog PyPI
PACKAGE EXPLORERView in registry

agentmediatools

PyPI

Python client for Agent Media Tools — image processing, PDF tools, pastebin, webhooks, QR codes, and more

agentapi-clientimage-processingmediapdf-tools
Versions collected1
Direct dependencies1From release 0.2.1
Last observed20 Oct, 22:40 UTC

README

Version 0.2.1 documentation

Agent Media Tools — Python SDK

PyPI Python 3.8+

Python client for Agent Media Tools — a free online platform for image processing, PDF manipulation, web scraping, AI generation, QR codes, pastebin, webhooks, and more.

Installation

Install the official package from PyPI:

python -m pip install agentmediatools

Quick Start

Free tier — no API key needed

from agentmediatools import Client

client = Client()

# 🖼️ Resize an image
with open("photo.jpg", "rb") as f:
    result = client.image.resize(f, width=800, format="webp")
    with open("photo.webp", "wb") as out:
        out.write(result)

# 🔗 Generate a QR code
qr = client.qrcode.generate("https://example.com")
with open("qrcode.png", "wb") as f:
    f.write(qr)

# 📄 Create a paste
paste = client.create_paste("Hello world!", title="My first paste")
print(paste)

# 🛠️ Developer utilities
print(client.dev.uuid())
print(client.dev.ip())

Agent API key — for premium endpoints

from agentmediatools import Client

client = Client(api_key="mt_your_key_here")

# 🌐 Scrape a web page
content = client.scrape("https://example.com")
print(content)

# 📹 Get video metadata
info = client.video_info("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
print(info)

# 🎞️ Extract audio from a video
audio = client.audio_extract("https://example.com/video.mp4")
with open("audio.mp3", "wb") as f:
    f.write(audio)

Namespace Overview

NamespaceDescription
client.image.*Image processing — resize, convert, compress, analyze, crop, batch
client.pdf.*PDF tools — merge, split, compress, rotate, to_text, to_images, from_images
client.ai.*AI generation — generate image/video, transcribe, remove-bg, OCR
client.web.*Web page tools — screenshot, html-to-pdf, article extract
client.intel.*Intelligence — DNS, SSL, OG preview, country, timezone, regex, text stats, color
client.tools.*Utilities — CSV, case, slugify, lorem, zip, video utils, cron validate
client.agent.*Agent substrate — identity, approvals, receipts, jobs, heartbeat, shop, provisioning
client.mailbox.*Mailbox — create, post, poll, peek, claim
client.artifact.*Artifact store — upload, get, download raw
client.pastebin.*Text pastes
client.qrcode.*QR code generation
client.shortener.*URL shortening
client.webhook.*Webhook inboxes
client.jwt.*JWT decoding
client.json_tools.*JSON formatting, validation, minification
client.dev.*Developer tools — IP, UUID, password, hash, base64, units, timestamps, diff

Detailed API Reference

Image Tools (client.image.*)

MethodDescription
resizeResize to exact dimensions or aspect-ratio constrained
convertConvert between JPEG, PNG, WebP, AVIF
compressReduce file size with quality control
analyzeExtract image metadata (dimensions, EXIF, color space)
cropCrop by coordinates
batch_processProcess multiple images in one go

PDF Tools (client.pdf.*)

MethodDescription
mergeCombine multiple PDFs
splitSplit into individual pages
compressReduce file size
rotateRotate pages
to_textExtract text content
to_imagesConvert pages to PNG
from_imagesCreate PDF from images

AI Generation (client.ai.*) — requires api_key

MethodDescription
generate_imageGenerate an image from a text prompt
get_generate_image_jobPoll an image generation job
generate_videoGenerate a video from a text prompt
get_generate_video_jobPoll a video generation job
list_video_modelsList available video models
transcribeTranscribe audio to text
remove_bgRemove image background
ocrExtract text from images/documents
extract_structuredExtract structured data from documents

Web Tools (client.web.*)

MethodDescription
screenshotTake a screenshot of a web page
html_to_pdfConvert a web page to PDF
article_extractExtract readable article content

Intel Tools (client.intel.*)

MethodDescription
dns_lookupDNS record lookup
dns_email_securityCheck SPF, DKIM, DMARC records
ssl_checkCheck SSL/TLS certificate
og_previewGet Open Graph metadata
country_lookupLook up country info
timezone_convertConvert between timezones
timezone_listList all timezones
timezone_nowCurrent time in a timezone
regex_testTest a regex pattern
regex_referenceRegex syntax reference
text_statsText statistics
color_convertConvert between color formats
color_namesNamed CSS colors

Utility Tools (client.tools.*)

MethodDescription
csv_convertConvert CSV to JSON/XML
case_convertConvert text case
slugifyCreate URL-friendly slugs
lorem_ipsumGenerate placeholder text
url_parseParse URL components
http_statusHTTP status code info
mime_lookupMIME type lookup
html_to_mdHTML to Markdown
zip_filesCreate ZIP archives
unzipExtract ZIP archives
cron_validateValidate cron expressions
video_infoVideo metadata
video_thumbnailGenerate video thumbnail
video_gifGenerate animated GIF from video
video_extract_audioExtract audio from video

Agent Substrate (client.agent.*) — requires api_key

MethodDescription
claim_identityClaim/update agent identity handle
get_identityGet current agent identity
get_identity_by_handleLook up identity by handle
directorySearch public agent directory
get_policyGet spend policy
create_approvalCreate approval request
list_approvalsList pending approvals
get_approvalGet approval details
list_receiptsList signed receipts
create_receiptCreate signed receipt
get_receiptGet receipt by ID
verify_receiptVerify receipt signature
create_jobCreate a new job
list_jobsList jobs
get_jobGet job details
claim_jobClaim a job
update_jobUpdate a job
complete_jobComplete a job
cancel_jobCancel a job
heartbeatSend agent heartbeat
shop_checkoutPurchase shop items
shop_purchasesList past purchases
shop_check_accessCheck shop access
provision_humanProvision human account
get_provisionCheck provision status
provision_lookupLook up provisioning info
claim_provisionClaim pending provision

Mailbox (client.mailbox.*)

MethodDescription
createCreate a mailbox
postPost a message
pollLong-poll for new messages
peekPeek at messages
claimClaim mailbox for agent key

Artifact Store (client.artifact.*)

MethodDescription
uploadUpload a file artifact
getGet artifact metadata
rawDownload raw artifact content

Requirements

  • Python 3.8+
  • requests (automatically installed)

Documentation

Full API docs: https://agentmediatools.com/docs

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.114 Aug 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d81bb173550d0dd3a356b7c84616127ec3272157229e1624d4881dce969bf310