Skip to main content

langchain-megalania

LangChain document loader and tools for the Megalania scraping API.

pip install langchain-megalania
export MEG_API_KEY=...
from langchain_megalania import MegalaniaLoader, megalania_tools

docs = MegalaniaLoader(["https://docs.megalania.io/"]).load()
crawl = MegalaniaLoader("https://docs.megalania.io/", crawl={"max_pages": 20}).load()
tools = megalania_tools()
  • The loader returns Markdown with source, request_id, credits_charged and target_status in the metadata. A blocked page raises MegalaniaError; pass continue_on_failure=True to skip it.
  • The tools are scrape, map_site, create_batch and get_batch. Each page costs at most max_credits (default 128); pass megalania_tools(max_credits=...) to raise it.
  • One create_batch call takes at most max_pages pages (default 100), crawls included; pass megalania_tools(max_pages=...) to raise it. The agent can raise neither cap.
  • Blocked pages and errors are free.

Guide: https://docs.megalania.io/integrations/langchain. MIT license.

Metadata

Release files for langchain-megalania 0.1.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 langchain-megalania 0.1.0
File Size Uploaded Provenance Actions
langchain_megalania-0.1.0.tar.gz 6.7 kB With provenance Details for langchain_megalania-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-megalania 0.1.0
File Interpreter ABI Platform Actions
langchain_megalania-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_megalania-0.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / langchain_megalania-0.1.0.tar.gz

Download URL langchain_megalania-0.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a7274c33effc986358a199e2bba06a8057ddc691950e5d5c19eb6ff44263023c
BLAKE2b-256 checksum
How to use checksums
61fd9497be50d1de3d2ff3b4ce5ee8d5d659fbdde84509f64ec2288abedb4b3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / langchain_megalania-0.1.0-py3-none-any.whl

Download URL langchain_megalania-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7b4b0aa49492696cfe66a9c238d4db47020fb2278d2166aaf27d252c72f03a6
BLAKE2b-256 checksum
How to use checksums
4de5f519c9a64f4e88916cb6389f01036900c2071ab3cad5da2fff92eb8d2820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for langchain-megalania 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_megalania-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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.1.0 This release

2 release files Full 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