Skip to main content

Common utilities and logging for Agoras

Project description

Low-level utilities, logging, and shared constants for the Agoras ecosystem.

Installation

pip install agoras-common

Contents

  • Version Info: __version__, __author__, __email__, __url__, __description__

  • Utilities: Helper functions for URL manipulation, metadata parsing

  • Logger: Centralized logging configuration

Usage

from agoras.common import __version__, logger, add_url_timestamp, parse_metatags

# Version info
print(f"Agoras version: {__version__}")

# Logger
logger.start()
logger.loglevel('INFO')
logger.info("Hello from Agoras!")

# URL utilities
timestamped_url = add_url_timestamp('https://example.com', '20260110')
print(timestamped_url)  # https://example.com?t=20260110

# Metatag parsing
metatags = parse_metatags('https://example.com')
print(metatags['title'], metatags['image'])

Dependencies

  • requests

  • beautifulsoup4

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_common-2.0.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

agoras_common-2.0.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file agoras_common-2.0.2.tar.gz.

File metadata

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

File hashes

Hashes for agoras_common-2.0.2.tar.gz
Algorithm Hash digest
SHA256 273fa50114e99e92f18c72bdb46bdbbb3cb3da4c5e8dc1b9be53b0366879e12c
MD5 8b76197b4ef5b1ac88b9e191b2e69068
BLAKE2b-256 c49541006d8dc13cde47d83f9ccfbe2f6152a71674d2235c207319990d16934b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agoras_common-2.0.2.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_common-2.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for agoras_common-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d81a42ce194cb79a0535056a965b995ad616c4e959523182c47fa30a60ad21d1
MD5 6c1eebe08edbab6d70fcc3fae4a6d029
BLAKE2b-256 be8f198394dce0da35f3ea69773890318f9ebeeb97204160d97f705d93a4b6ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for agoras_common-2.0.2-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