Skip to main content

Official Python SDK for Finnear - Push notification platform for founders & developers

Project description

Finnear Python SDK

Official Python SDK for Finnear - Push notification platform for founders & developers.

Installation

pip install finnear

Quick Start

from finnear import Finnear, EventPayload

client = Finnear(api_key="pk_...")

result = client.track(EventPayload(
    channel="signups",
    title="New user signed up",
    description="user@example.com",
    emoji="🙋",
    metadata={"plan": "pro"},
))

print(result.event_id)

API

Finnear(api_key)

Option Type Required Description
api_key str Yes Your Finnear API key

client.track(event)

Send an event to Finnear. Returns an EventResponse with event_id.

Field Type Required Description
channel str Yes Event channel
title str Yes Event title
description str No Event description
emoji str No Event emoji icon
user_id str No Associated user ID
metadata dict[str, str] No Key-value metadata

Error Handling

from finnear import Finnear, EventPayload, AuthenticationError, ValidationError, ApiError

try:
    client.track(EventPayload(channel="signups", title="New user"))
except AuthenticationError:
    # Invalid API key (401)
    pass
except ValidationError:
    # Invalid payload (400)
    pass
except ApiError as e:
    # Other HTTP error
    print(e.status, str(e))

Requirements

  • Python 3.10+
  • No external dependencies

License

MIT

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

finnear-0.1.1.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.

finnear-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for finnear-0.1.1.tar.gz
Algorithm Hash digest
SHA256 932b2608387f81556e4c759bb339fd846041b486d1dd5874974c44197f8a6d3f
MD5 b403a60c4ee67a3e0fcfa520ab22d631
BLAKE2b-256 12bca240bbf6c7e23c6b83e4de19a7c572cc73f04b5f175a9981a640b7971ef8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: finnear-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for finnear-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24bf98932f0e394d1cc30e56b19eba1b852bcf10fe96d4f38647f6d17182b786
MD5 c8e0ff3da611a882caef560b7bbdf17c
BLAKE2b-256 06eb4f8ef18dc963f5eb176f482daaaf843319c21e619daf0087186f344ad43f

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