Skip to main content

A microservice proxy to convert an rss feed to a GraphQL API endpoint

Project description

RSS TO GRAPHQL

A microservice proxy to convert an RSS feed to a GraphQL API endpoint

Install

shell $ pip install rss-to-graphql

Requires Python3.6 or later.

Usage

CLI for starting the server

    Usage: python -m  rss_to_graphql [OPTIONS]

    optional arguments:
        -h, --help            Output usage information
        --feed_url FEED_URL   RSS feed url
        --port PORT           Server Port
        --subscriptions_enabled SUBSCRIPTIONS_ENABLED Enable subscriptions, requres a redis cache
        --subscription_ttl SUBSCRIPTION_TTL Subscriptions refresh time to live, in seconds
        --redis_url REDIS_URL Redis url string, e.g. redis://[:password]@localhost:6379/0

Subscriptions

Supports subscriptions for new itme in the feed. Items are refreshed based on the time-to-live provided by the feed or a user defined refresh period, defaults to 1 minute if neither is provided

Sample queries

Retrieve channel info

{
    channel {
        title
        link
        atomLink {
            href
            rel
        }
        language
        copyright
        description
    }
}

Retrieve feed items

{
    items {
        title
        description
        link
        pubDate
    }
}

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

rss_to_graphql-0.0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

rss_to_graphql-0.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file rss_to_graphql-0.0.1.tar.gz.

File metadata

  • Download URL: rss_to_graphql-0.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for rss_to_graphql-0.0.1.tar.gz
Algorithm Hash digest
SHA256 21793909521140aba2dea66d041e332ea615d3886f6e3e64827f2c4886066ef0
MD5 17442fa6104950c2a72b3db716d05965
BLAKE2b-256 f0e9f69125bd7e9132d64f428ef654543f7c8637eb104aaf4e8b14893e5e9202

See more details on using hashes here.

File details

Details for the file rss_to_graphql-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rss_to_graphql-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for rss_to_graphql-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0be0efac66f92ad6fd8b311f368b9a1a9d6cc592998701212f628f144c1c8a5b
MD5 838e82709b9ee48dc31d02536facb1a3
BLAKE2b-256 c3532414c11f0b02df1557df29c19c7901c3802ad11dd971f6767a298d3e3645

See more details on using hashes here.

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