Skip to main content

peal-sdk

Schedule posts across social platforms, follow how they did, and manage a Peal workspace's channels, media and members.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Package version: 0.2.0
  • Generator version: 7.27.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://peal.social

Requirements.

Python 3.11+

Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735). Install the package with python -m pip install .; install development dependencies with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using python -m pip install --group dev. The latter installs the group, not the package.

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/peal-social/peal.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/peal-social/peal.git)

Then import the package:

import peal

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import peal

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import peal
from peal.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://app.peal.social
# See configuration.py for a list of all supported configuration parameters.
configuration = peal.Configuration(
    host = "https://app.peal.social"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = peal.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with peal.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = peal.AnalyticsApi(api_client)
    workspace_id = 'workspace_id_example' # str | 
    post_id = 'post_id_example' # str | 

    try:
        # Get a post's analytics
        api_response = api_instance.analytics_post(workspace_id, post_id)
        print("The response of AnalyticsApi->analytics_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AnalyticsApi->analytics_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://app.peal.social

Class Method HTTP request Description
AnalyticsApi analytics_post GET /api/workspaces/{workspaceId}/analytics/posts/{postId} Get a post's analytics
AnalyticsApi analytics_summary GET /api/workspaces/{workspaceId}/analytics/summary Summarize the workspace's analytics
ApiKeysApi api_keys_create POST /api/workspaces/{workspaceId}/api-keys Create an API key
ApiKeysApi api_keys_list GET /api/workspaces/{workspaceId}/api-keys List API keys
ApiKeysApi api_keys_revoke DELETE /api/workspaces/{workspaceId}/api-keys/{apiKeyId} Revoke an API key
AssistantApi assistant_status GET /api/workspaces/{workspaceId}/assistant Get the assistant's status
AssistantApi assistant_suggest POST /api/workspaces/{workspaceId}/assistant/suggestions Suggest a change to a post's text
BillingApi billing_get GET /api/workspaces/{workspaceId}/billing Get the workspace's billing
ChannelsApi channels_choose_accounts POST /api/workspaces/{workspaceId}/channels/connect/{platform}/accounts Choose the accounts to connect
ChannelsApi channels_complete_connect POST /api/workspaces/{workspaceId}/channels/connect/{platform}/callback Complete connecting an account
ChannelsApi channels_connect POST /api/workspaces/{workspaceId}/channels/connect/{platform} Start connecting an account
ChannelsApi channels_disconnect DELETE /api/workspaces/{workspaceId}/channels/{channelId} Disconnect a channel
ChannelsApi channels_list GET /api/workspaces/{workspaceId}/channels List channels
ChannelsApi channels_platforms GET /api/workspaces/{workspaceId}/channels/platforms List connectable platforms
ChannelsApi channels_reconnect POST /api/workspaces/{workspaceId}/channels/{channelId}/reconnect Start reconnecting a channel
InvitationsApi invitations_create POST /api/workspaces/{workspaceId}/invitations Invite someone
InvitationsApi invitations_list GET /api/workspaces/{workspaceId}/invitations List invitations
InvitationsApi invitations_revoke DELETE /api/workspaces/{workspaceId}/invitations/{invitationId} Revoke an invitation
MediaApi media_complete POST /api/workspaces/{workspaceId}/media/{mediaId}/complete Complete an upload
MediaApi media_create POST /api/workspaces/{workspaceId}/media Start an upload
MediaApi media_delete DELETE /api/workspaces/{workspaceId}/media/{mediaId} Delete media
MediaApi media_describe PATCH /api/workspaces/{workspaceId}/media/{mediaId} Describe media
MediaApi media_get GET /api/workspaces/{workspaceId}/media/{mediaId} Get media
MediaApi media_list GET /api/workspaces/{workspaceId}/media List media
MediaApi media_usage GET /api/workspaces/{workspaceId}/media/{mediaId}/usage Get where media is used
MembersApi members_list GET /api/workspaces/{workspaceId}/members List members
NoticesApi notices_list GET /api/me/notices List notices
NoticesApi notices_mark_all_read POST /api/me/notices/read-all Mark all notices read
NoticesApi notices_mark_read POST /api/me/notices/read Mark notices read
NoticesApi notices_unread GET /api/me/notices/unread Count unread notices
NotificationPreferencesApi notification_preferences_get GET /api/me/notification-preferences Get notification preferences
NotificationPreferencesApi notification_preferences_update PATCH /api/me/notification-preferences Change notification preferences
PostsApi posts_attempts GET /api/workspaces/{workspaceId}/posts/{postId}/attempts List a post's attempts
PostsApi posts_cancel POST /api/workspaces/{workspaceId}/posts/{postId}/cancel Cancel a post
PostsApi posts_confirm POST /api/workspaces/{workspaceId}/posts/{postId}/targets/{targetId}/confirm Confirm a post on a channel
PostsApi posts_create POST /api/workspaces/{workspaceId}/posts Create a draft
PostsApi posts_discard DELETE /api/workspaces/{workspaceId}/posts/{postId} Discard a draft
PostsApi posts_drafts GET /api/workspaces/{workspaceId}/posts/drafts List drafts
PostsApi posts_get GET /api/workspaces/{workspaceId}/posts/{postId} Get a post
PostsApi posts_list GET /api/workspaces/{workspaceId}/posts List scheduled posts
PostsApi posts_repost POST /api/workspaces/{workspaceId}/posts/{postId}/targets/{targetId}/repost Repost on a channel
PostsApi posts_reschedule POST /api/workspaces/{workspaceId}/posts/{postId}/reschedule Reschedule a post
PostsApi posts_schedule POST /api/workspaces/{workspaceId}/posts/{postId}/schedule Schedule a draft
PostsApi posts_unschedule POST /api/workspaces/{workspaceId}/posts/{postId}/unschedule Unschedule a post
PostsApi posts_update PUT /api/workspaces/{workspaceId}/posts/{postId} Update a draft
SessionApi session_me GET /api/me Get the signed-in user
SystemApi health GET /api/health Check that the server is up
SystemApi ready GET /api/ready Check that the server can take traffic
TiktokApi tiktok_creator GET /api/workspaces/{workspaceId}/channels/{channelId}/tiktok-creator Read a TikTok channel's creator

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer

  • Type: Bearer authentication

Author

hello@peal.social

Request headers

Header names are compared case-insensitively in all Python client libraries. Request headers are copied; supplying _headers does not change the caller's dict or the client's shared defaults. The public _headers argument retains its dict validation and existing value serialization. Pydantic can coerce mappings such as HTTPX Headers to a dict, combining repeated fields into a single value; _headers does not provide a repeated-field or list-of-pairs API.

Precedence, from lowest to highest:

  1. _headers (within one dict, the last inserted case variant wins).
  2. Explicit OpenAPI header parameters and generated Content-Type (or _content_type). Generated Accept is added only when neither _headers nor explicit header parameters contain an Accept case variant.
  3. ApiClient.default_headers (including headers set with set_default_header).
  4. The client's cookie setting, for Cookie.
  5. Authentication headers. A non-empty _request_auth replaces configured authentication for that call; {} retains configured authentication. Cookie authentication appends to the selected Cookie value.

This retains the existing precedence for identically spelled names and extends it to case variants. To override a generated content type, use _content_type; client defaults still take precedence over it. The winning header's spelling and value are retained for replacements. Cookie authentication uses the canonical Cookie spelling and appends its value. Values containing legitimate comma-separated lists are not split or deduplicated. This does not remove duplicate values inside a header or change the handling of repeated fields supplied directly to the transport.

Metadata

Release files for peal-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for peal-sdk 0.2.0
File Size Uploaded Provenance Actions
peal_sdk-0.2.0.tar.gz 112.3 kB With provenance Details for peal_sdk-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for peal-sdk 0.2.0
File Interpreter ABI Platform Actions
peal_sdk-0.2.0-py3-none-any.whl Python 3 none any Details for peal_sdk-0.2.0-py3-none-any.whl

Total release size: 466.3 kB

Release files / peal_sdk-0.2.0.tar.gz

Download URL peal_sdk-0.2.0.tar.gz
Size 112.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a9de2a4371bf1de88829119ced8dac6d81614145c1d63f4ff0cd9898aca0baaa
BLAKE2b-256 checksum
How to use checksums
41a34fe2e6621eb797363cca1b526a27bf56b48610c003e081fa29f7f1b04f13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / peal_sdk-0.2.0-py3-none-any.whl

Download URL peal_sdk-0.2.0-py3-none-any.whl
Size 354.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faee644741ce9debdf83d3c5777d8e9524e8ea9de20e1a9ebc5c7a459ae86ad9
BLAKE2b-256 checksum
How to use checksums
a9eff1a1219c34b0a305f58a77621d971e30e706f1d40a4baa9e698b75509912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for peal-sdk 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for peal_sdk-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page