Skip to main content

Python SDK for Analog — instantly distill webpages into structured data.

Reason this release was yanked:

Superseded by 0.10.0. This version predates the current sign-in flow (retired server-side) and is below the backend's minimum supported version — it can no longer authenticate or extract. Install the current release: pip install -U analog-sdk.

Project description

analog-sdk

Python SDK for Analog — instantly distill webpages into structured data.

Installation

pip install analog-sdk

For JS-heavy pages (single-page apps, infinite scroll, content that hydrates client-side), also install the companion fetcher:

pip install "analog-sdk[fetcher]"

This gives you the AnalogFetcher, which is used as the default automatically — cheap HTTP fetch on first contact, escalates to a Playwright-rendered fetch only when the page actually needs it, and caches the decision per-domain so subsequent visits skip the probe.

Authenticate

analog login

Opens browser-based sign-in (no credential is ever shown in the terminal). Subsequent SDK usage picks up the stored key automatically; the LLM driving your session never sees it.

Other auth paths if analog login doesn't suit you:

  • analog login --api-key <KEY> — paste a key you already have.
  • export ANALOG_API_KEY=<KEY> — env-var override; wins over the stored credential. Useful for one-off scripts or CI runs that need a different identity than your interactive session.
  • Client(api_key=<KEY>) — constructor argument, wins over everything. Useful for tests and embedded scenarios where you pass the key explicitly.

Run analog --help to see all commands (login, logout, whoami, status).

If you don't want a globally-installed analog binary, use pipx install analog-sdk or uv tool install analog-sdk instead of plain pip install.

Usage

from analog import analog

result = analog("https://example.com")

Same one-liner whether or not the JS-aware fetcher is installed. When it is, JS-heavy pages just work.

See https://getanalog.io for full documentation.

License

MIT — see LICENSE.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

analog_sdk-0.1.2.tar.gz (53.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

analog_sdk-0.1.2-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file analog_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: analog_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for analog_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8ae47db37c2f11482fc9a519edcd244842df9d093fd5bcdced76994c6fdf04df
MD5 132757d0bd98395d7b35771de82a269d
BLAKE2b-256 fa04e5f1fd083f9cb76e40642c4d96b5e027910d9164593e6ae6e8fd63911e18

See more details on using hashes here.

Provenance

The following attestation bundles were made for analog_sdk-0.1.2.tar.gz:

Publisher: release-sdk-python.yml on getanalog/monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file analog_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: analog_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for analog_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa2311ee3748d09236f19a3f362f29d3c32b4d4faba032a726b17f8956d1816
MD5 18c7611c5edf055589870ef7e5445225
BLAKE2b-256 1a948062ea8e1db91b7bba40e21d669a030dda0aecc28f75d7afe5be0d7db2d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for analog_sdk-0.1.2-py3-none-any.whl:

Publisher: release-sdk-python.yml on getanalog/monorepo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page