Skip to main content

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)

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.1.0.tar.gz (46.4 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.1.0-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agoras_core-2.1.0.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agoras_core-2.1.0.tar.gz
Algorithm Hash digest
SHA256 64e58cf7f90430ed8729fa453809db533374f165e1c4082efd9a66f8c9be6b2f
MD5 30ffd2f7e073d2858c43427405353945
BLAKE2b-256 895aa492f57c254ed3091fa53fbf70f61685fcd12fc5e257b95903509a53c3d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for agoras_core-2.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: agoras_core-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 46.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agoras_core-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a601436796addb23b158354c004e16bb589179007ae1f1c56d4ef443554e874
MD5 3fe0ffbb16b8512e2485c1bc26300d41
BLAKE2b-256 cc0cea7b988e9c882c8ca0ac66af25daab9adb9f0cb2c4c85d6faa9b5515fa96

See more details on using hashes here.

Provenance

The following attestation bundles were made for agoras_core-2.1.0-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 Sentry Error logging StatusPage Status page