Skip to main content

Browser sessions for AI agents. Connect Playwright/Puppeteer to stealth Chrome in one line.

Project description

Tells Python SDK

Browser sessions for AI agents. Connect Playwright to managed Chrome with unique fingerprints, behavioral modeling, and CDP access.

Install

pip install tells playwright
playwright install chromium

Quick Start

import tells

session = tells.session()
browser, ctx, page = session.connect_playwright()

page.goto("https://example.com")
print(page.title())

session.close()

That's it. The session has a unique fingerprint, behavioral engine, and ad blocking — all automatic.

With Context Manager

import tells

with tells.session() as session:
    browser, ctx, page = session.connect_playwright()
    page.goto("https://news.ycombinator.com")
    titles = page.eval_on_selector_all(".titleline a", "els => els.map(e => e.textContent)")
    print(titles[:5])

Behavioral Engine

session = tells.session()

# Human-like interactions
session.click(500, 300)
session.scroll(400)
session.type("search query", context="search")

Session Profiles

# First session — log in
s1 = tells.session(profile_name="my-account")
browser, ctx, page = s1.connect_playwright()
page.goto("https://example.com/login")
# ... log in ...
s1.close()

# Second session — cookies persist
s2 = tells.session(profile_name="my-account")
browser, ctx, page = s2.connect_playwright()
page.goto("https://example.com/dashboard")  # already logged in

Client Instance

from tells import Tells

client = Tells(api_key="sk_...")
session = client.session()
print(client.usage())

Environment Variable

export TELLS_API_KEY=sk_your_key_here

Links

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

tells_api-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

tells_api-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file tells_api-0.1.0.tar.gz.

File metadata

  • Download URL: tells_api-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for tells_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5d8130a77378465747a1cef770c4eef2f4843068ffbb015a4559a5f47d1c84d
MD5 504cd2cc961fbf8bfacee226bdcf2762
BLAKE2b-256 04d237d2be63bfcc6b2a9458cbb0dd60bde7e9c7777454f53f8b74390a3c9ef2

See more details on using hashes here.

File details

Details for the file tells_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tells_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for tells_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45866fef9faaba6fbd6100b3c788fad33d412b7099c9ea48e490a0449c703f0b
MD5 141a084e7dfbe393e8015514f25dc962
BLAKE2b-256 3067eebfce222cc24989b9b6f5d5251088a84fcc5627f2cd1a745bda59f7def7

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