Skip to main content

markyp-based RSS 2.0 implementation.

Project description

Build Status Downloads Downloads Downloads

markyp-rss

markyp-based RSS 2.0 implementation.

Installation

The project is listed on the Python Package Index, it can be installed simply by executing pip install markyp-rss.

Getting started

If you are not familiar with the basic concepts of markyp, please start by having a look at its documentation here.

Creating an RSS 2.0 feed using markyp-rss is as easy as instantiating the required RSS elements and converting the RSS object to string when the feed is ready.

from typing import List, Optional

from markyp_rss.elements import Category, Channel, Image, Item, RSS

def get_items() -> Optional[List[Item]]:
    """Returns the items to be included in the channel."""
    return [
        Item("First", "https://markyp.demo/first"),
        Item("Second", "https://markyp.demo/second"),
        Item("Third", "https://markyp.demo/third")
    ]

rss = RSS(
    Channel(
        "markyp-rss RSS 2.0 Demo Channel",
        "https://markyp.demo/channel.rss",
        "RSS 2.0 example built using markyp-rss.",
        language="en-us",
        image=Image("markyp-rss RSS 2.0 Demo Channel", "https://markyp.demo/channel.jpeg", "https://markyp.demo/channel.rss"),
        ttl=40,
        categories=[Category("Demo"), Category("Example")],
        items=get_items()
    )
)

print(rss)

For more details, please have a look at the markyp_rss.elements module.

Community guidelines

In general, please treat each other with respect and follow the below guidelines to interact with the project:

  • Questions, feedback: Open an issue with a [Question] <issue-title> title.
  • Bug reports: Open an issue with a [Bug] <issue-title> title, an adequate description of the bug, and a code snippet that reproduces the issue if possible.
  • Feature requests and ideas: Open an issue with an [Enhancement] <issue-title> title and a clear description of the enhancement proposal.

Contribution guidelines

Every form of contribution is welcome, including documentation improvements, tests, bug fixes, and feature implementations.

Please follow these guidelines to contribute to the project:

  • Make sure your changes match the documentation and coding style of the project, including PEP 484 type annotations.
  • mypy is used to type-check the codebase, submitted code should not produce typing errors. See this page for more information on mypy.
  • Small fixes can be submitted simply by creating a pull request.
  • Non-trivial changes should have an associated issue in the issue tracker that commits must reference (typically by adding #refs <issue-id> to the end of commit messages).
  • Please write tests for the changes you make (if applicable).

If you have any questions about contributing to the project, please contact the project owner.

As mentioned in the contribution guidelines, the project is type-checked using mypy, so first of all, the project must pass mypy's static code analysis.

The project is tested using pytest. The chosen test layout is that tests are outside the application code, see this page for details on what it means in practice.

If pytest is installed, the test set can be executed using the pytest test command from within the project directory.

If pytest-cov is also installed, a test coverage report can be generated by executing pytest test --cov markyp_rss from the root directory of the project.

License - MIT

The library is open-sourced under the conditions of the MIT license.

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

markyp-rss-0.1910.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

markyp_rss-0.1910.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file markyp-rss-0.1910.0.tar.gz.

File metadata

  • Download URL: markyp-rss-0.1910.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

File hashes

Hashes for markyp-rss-0.1910.0.tar.gz
Algorithm Hash digest
SHA256 18940a8bc804fce32b2c7083181e05c7ac03a47891c41bf8b91bec0c0566dc5f
MD5 63a9ca52294b77172e5958c330263aaf
BLAKE2b-256 300ee6413b405d67abf845a91d4f09d7d3fcf0d75adb8f38c7336caec6a3260c

See more details on using hashes here.

File details

Details for the file markyp_rss-0.1910.0-py3-none-any.whl.

File metadata

  • Download URL: markyp_rss-0.1910.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3

File hashes

Hashes for markyp_rss-0.1910.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a45b11273ff35a3f966d4bfb415a6bb23a0bcae94df21a7a3904cc54d6e8bd50
MD5 1877fda7f9c2008e31e197ea33835a94
BLAKE2b-256 052ccce694ea78b01e548b95651948244bbc3cffa8185f1af927da83ced396f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page