Skip to main content

Python SDK for the Instantly.ai API

Project description

instantlyai

PyPI version CI License Python versions

A typed, importable Python client for the Instantly.ai V2 API.

  • A clean, resource-based client: client.campaigns.list(...), client.leads.create(...).
  • Full end-to-end typing, generated from Instantly's OpenAPI spec -- real editor and type-checker support.
  • Sync and async clients from a single codebase (Instantly / AsyncInstantly).
  • Typed exceptions, auto-retry with backoff, and auto-paginating list methods.

Status: pre-1.0 (0.x). Minor version bumps may include breaking changes until 1.0.0 -- pin accordingly. See the changelog.

Install

pip install instantlyai

Quickstart

Set INSTANTLY_API_KEY in your environment, or pass api_key=... explicitly.

"""Quickstart: authenticate and list your campaigns.

Runnable as-is once ``INSTANTLY_API_KEY`` is set in the environment. Also
executed in CI (see ``tests/test_examples.py``) against a mocked API, so this
file can never drift from what actually works.
"""

from __future__ import annotations

import instantlyai


def main(client: instantlyai.Instantly) -> None:
    for campaign in client.campaigns.list(limit=10):
        print(campaign.id, campaign.name)


if __name__ == "__main__":
    with instantlyai.Instantly() as client:  # reads INSTANTLY_API_KEY from the environment
        main(client)

Async usage is the same shape, with AsyncInstantly and await/async for.

Docs

Full documentation, including the tutorial and API reference, lives at https://exprtec.github.io/instantlyai-python-sdk.

Contributing

See CONTRIBUTING.md.

Project details


Download files

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

Source Distribution

instantlyai-0.1.1.tar.gz (151.1 kB view details)

Uploaded Source

Built Distribution

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

instantlyai-0.1.1-py3-none-any.whl (77.7 kB view details)

Uploaded Python 3

File details

Details for the file instantlyai-0.1.1.tar.gz.

File metadata

  • Download URL: instantlyai-0.1.1.tar.gz
  • Upload date:
  • Size: 151.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for instantlyai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 265133349a4a0e14478aaf90d01f44cd5f67e3dcd5017ff9b7d260c9c684e9b9
MD5 33375a40af8b9143ad3e17446c8d5a8f
BLAKE2b-256 5c0afe3f5a21eb49f4f97313de4c816662a0a0db7bf0c0ff004d0206d70091d7

See more details on using hashes here.

File details

Details for the file instantlyai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: instantlyai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 77.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for instantlyai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54da28d37714d05d63de7e50ab1271a51da55a7e0e48ff176bdd093033333c69
MD5 bf11be794ae3ab0aca8dc3d271862bbe
BLAKE2b-256 0db8e3f10a7b2c76ada4ac356eaa77f376d3434103d250bcf05b3b3678efbb43

See more details on using hashes here.

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