Skip to main content

Search Providers package for Mediacloud

Project description

Media Cloud Providers Library

A package of search providers for Media Cloud, wrapping up interfaces for different social media platform.

Install with pip (pip install .) and the install.sh script.

Requires environment variables set for various interfaces to work correctly.

Build

Make sure pip install flit twine so you can build and deploy to PyPI.

  1. Bump the version number in pyproject.toml
  2. Add a note about changes to the version history below
  3. Commit the changes and tag it with a semantic version number
  4. A github action will build and push the repository on committing a tagged version

Version History

  • v3.1.2 - Fix random sampling behavior in ES provider to be genuinely random, bugfix related to marginal sorting error, additional counters for fine-grained visibility
  • v3.1.1 - Fix ES Provider to send None as last page pagination token
  • v3.1.0 - Add new ProviderException classes to pass more meaningful errors to consumer processes
  • v3.0.1 - Fix ES Provider to accept sort_{order,field} paging arguments like NSA-based Provider
  • v3.0.0 - New "OnlineNewsMediaCloudProvider" using Elasticsearch DSL for direct access to the ES cluster. Retain old provider as "OnlineNewsMediaCloudOldProvider" for now.
  • v2.2.0 - Added an optional argument to providers to toggle caching behavior, added more specific error on 504
  • v2.1.1 - Bugfix
  • v2.1.0 - Mediacloud news client code incorperated into this package
  • v2.0.5 - Build-system in pyproject.toml
  • v2.0.4 - reintroduce stopwords
  • v2.0.3 - version bump for automatic releases
  • v2.0.2 - respect domain filters on Media Cloud searches
  • v2.0.1 - more work on caching strategies
  • v2.0.0 - change CachingManager interface to support online news providers better
  • v1.0.1 - fix default timeout option that applies across all providers
  • v1.0.0 - Remove legacy Media Cloud, add timeout option to provider_for
  • v0.5.3 - Temporary fix to onlinenews-mediacloud search handling
  • v0.5.3 - Tweaks to onlinenews-mediacloud for compatibility with new database pattern
  • v0.5.2 - Fix to allow override of chunk'ing in MC client
  • v0.5.1 - Fix use of media cloud to respect domains clause on story list paging
  • v0.5.0 - Integrate new mediacloud-news-client into onlinenews-mediacloud
  • v0.4.0 - Specify custom base URLs via new string param to provider_by_name and provider_for
  • v0.3.0 - Add support for paging through stories directly, and including text in paged results for speed
  • v0.2.6 - Fixed querying by domain on new mediacloud system
  • v0.2.5 - Alignment with new mediacloud system. Old onlinenews provider is now "onlinenews-mclegacy", "onlinenews-mediacloud" now queries the new index.
  • v0.2.4 - Added support for api keys via "provider_by_name"
  • v0.2.3 - removed support for API keys in environment variables- now expected as an argument in providers.provider_for
  • v0.2.2 - transition to use the dedicated mediacloud-api-legacy package to avoid version conflictsgit
  • v0.2.1 - add in a date hack to resolve a lower-level bug in the Media Cloud legacy count-over-time results
  • v0.2.0 - add in support for Media Cloud legacy database
  • v0.1.7 - corrected support for a "filters" kwarg in online_news
  • v0.1.6 - Added support for a "filters" kwarg in online_news
  • v0.1.5 - Added politeness wait to all chunked queries in twitter provider
  • v0.1.4 - Added Query Chunking for large collections in the Twitter provider
  • v0.1.3 - Added Query Chunking for large queries in the onlinenews provider
  • v0.1.2 - Test Completeness
  • v0.1.1 - Parity with web-search module, and language model
  • v0.1.0 - Initial pypi upload

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

mc_providers-3.1.2.tar.gz (108.4 kB view details)

Uploaded Source

Built Distribution

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

mc_providers-3.1.2-py3-none-any.whl (117.5 kB view details)

Uploaded Python 3

File details

Details for the file mc_providers-3.1.2.tar.gz.

File metadata

  • Download URL: mc_providers-3.1.2.tar.gz
  • Upload date:
  • Size: 108.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mc_providers-3.1.2.tar.gz
Algorithm Hash digest
SHA256 0490f101c7f1200e8e27c24358219ea8fe2e9e6edf1efce0557d94c792452bb3
MD5 c9de8f483384dc22361c3fe2ead4e793
BLAKE2b-256 fbdee7622a62668c7fa8e745ccaeedc6d0ea66e63e3935b1983d099fd304bc6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mc_providers-3.1.2.tar.gz:

Publisher: publish-to-pypi.yml on mediacloud/mc-providers

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

File details

Details for the file mc_providers-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: mc_providers-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 117.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mc_providers-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33b7925cd0ef4bbde9ffcb57f364836d2e6604c0a8cf3c50a23689d89ca6ff30
MD5 bfda03189a8faa5102e88b130112233b
BLAKE2b-256 abbb79504f7b935e571b534a77eb1d966ff5e77a99b0f1d0b96bdc8c3384a3cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mc_providers-3.1.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on mediacloud/mc-providers

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