Skip to main content

Core interfaces, Feed, Sheet, and Base API/Auth classes for Agoras

Project description

Core interfaces, Feed management, Sheet management, and Base API/Auth classes.

Installation

pip install agoras-core

Contents

  • SocialNetwork Interface: Abstract base class for all platforms

  • Feed: RSS feed parsing and management

  • Sheet: Google Sheets integration for scheduled posts

  • BaseAPI: Base API client with rate limiting

  • BaseAuthManager: OAuth2 authentication base

  • OAuthCallbackServer: Local callback server for OAuth flows

  • SecureTokenStorage: Secure token storage

Usage

import asyncio
from agoras.core.interfaces import SocialNetwork
from agoras.core.feed import Feed
from agoras.core.sheet import ScheduleSheet
from agoras.core.auth import OAuthCallbackServer

# Download RSS feed
async def get_feed_items():
    feed = Feed('https://example.com/feed.xml')
    await feed.download()
    items = feed.get_latest_items(5)
    return items

# Use OAuth callback server
async def oauth_flow():
    server = OAuthCallbackServer(expected_state='random_state')
    # Server will capture authorization code automatically
    code = await server.start_and_wait()
    return code

asyncio.run(get_feed_items())

Dependencies

  • agoras-common

  • agoras-media

  • feedparser (RSS parsing)

  • gspread (Google Sheets)

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

agoras_core-2.0.4.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

agoras_core-2.0.4-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file agoras_core-2.0.4.tar.gz.

File metadata

  • Download URL: agoras_core-2.0.4.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agoras_core-2.0.4.tar.gz
Algorithm Hash digest
SHA256 010e46dc1ca672419537fea911bf3d2953062c65f313dca0952becd1643ebf4f
MD5 2e9f8da121332d9fdec614de64df1767
BLAKE2b-256 ce626c400bb83350662cea97fc6a60d4d2d79dcaa2e2583927b014a65c740382

See more details on using hashes here.

Provenance

The following attestation bundles were made for agoras_core-2.0.4.tar.gz:

Publisher: release.yml on LuisAlejandro/agoras

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agoras_core-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: agoras_core-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agoras_core-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d2e95849ebff7399fa958f1e7e4df67cecf1c3cb263bccbf735c005beec059
MD5 84ecf5f14bd2d574b950b7a0e1c2f816
BLAKE2b-256 53009bfb0d25f7389a8a0721da73dee814e5598bbec189b0e216fb6ef616c899

See more details on using hashes here.

Provenance

The following attestation bundles were made for agoras_core-2.0.4-py3-none-any.whl:

Publisher: release.yml on LuisAlejandro/agoras

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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