Skip to main content

Unofficial Python SDK for the Tally.so API

Project description

PyTally SDK

Unofficial Python SDK for the Tally.so API.

PyPI version Python Versions License Docs


Overview

PyTally SDK is a lightweight, fully typed Python client for the Tally.so API. It provides a clean, Pythonic interface for authenticating, querying, and managing Tally resources -- without worrying about HTTP requests or pagination.

Implemented Resources

[x] Users [x] Organizations [x] Forms [x] Workspaces [x] Webhooks [] MCP

Installation

pip

pip install pytally-sdk

uv (recommended)

uv add pytally-sdk

Requirements: Python ≥ 3.11 httpx (auto-installed)


Quick Start

from tally import Tally

client = Tally(api_key="tly_your_api_key_here")

user = client.users.me()
print(f"Hello, {user.full_name} ({user.email})")

With Context Manager

from tally import Tally

with Tally(api_key="tly_your_api_key_here") as client:
    for form in client.forms:
        print(f"{form.name} ({form.id})")

Webhooks — Example Usage

List Webhooks

from tally import Tally

client = Tally(api_key="tly_your_api_key_here")

# Get all webhooks
for webhook in client.webhooks:
    print(f"{webhook.url} → enabled={webhook.is_enabled}")

Create a Webhook

from tally import Tally

client = Tally(api_key="tly_your_api_key_here")

webhook = client.webhooks.create(
    url="https://your-app.com/webhooks/tally",
    event_types=["FORM_RESPONSE"],
)

print(f"Webhook created: {webhook.id}")

For complete API usage, visit the 📘 Webhooks Reference.


Error Handling

from tally import Tally, UnauthorizedError, NotFoundError

client = Tally(api_key="tly_invalid")

try:
    client.users.me()
except UnauthorizedError:
    print("Invalid API key.")
except NotFoundError:
    print("Resource not found.")

See Error Handling → docs.


Documentation

👉 Full documentation and API reference available at: https://pytally-sdk.fa.dev.br


Development

Wanna help improve the SDK?

git clone https://github.com/felipeadeildo/pytally.git
cd pytally
uv sync
uv run mkdocs serve  # preview docs locally
pre-commit install   # install pre-commit hooks

🔗 Links


⚖️ License

Licensed under the Apache License 2.0.

Disclaimer This is an unofficial SDK and is not affiliated with or endorsed by Tally. “Tally” and the Tally logo are trademarks of Tally B.V.

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

pytally_sdk-0.1.8.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

pytally_sdk-0.1.8-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file pytally_sdk-0.1.8.tar.gz.

File metadata

  • Download URL: pytally_sdk-0.1.8.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytally_sdk-0.1.8.tar.gz
Algorithm Hash digest
SHA256 2ad421ae2e2c7d1431aea034d18ceb0d9eba40c5d0134389da2e58853db96864
MD5 3902dfb8d688d84a7b556c5f49844d9b
BLAKE2b-256 6b352aa3a7b89285c9d20633a40f782e689bb3319e31bc9fc454c2183af9dd0a

See more details on using hashes here.

File details

Details for the file pytally_sdk-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pytally_sdk-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytally_sdk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f7678a7aba840c42aacac133aa3e3dbbbd551bf719dcc90212190c7a01bdc8e8
MD5 3453debaebe74de258ce25e8f5ceae0e
BLAKE2b-256 f55bea08cbe380cba8fd71b69617e7dbd310f0b11cfb50789fa17da1a43c1a36

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