
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
markyp-based RSS 2.0 implementation.
The project is listed on the Python Package Index, it can be installed simply by executing pip install markyp-rss
.
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.
In general, please treat each other with respect and follow the below guidelines to interact with the project:
[Question] <issue-title>
title.[Bug] <issue-title>
title, an adequate description of the bug, and a code snippet that reproduces the issue if possible.[Enhancement] <issue-title>
title and a clear description of the enhancement proposal.Every form of contribution is welcome, including documentation improvements, tests, bug fixes, and feature implementations.
Please follow these guidelines to contribute to the project:
mypy
is used to type-check the codebase, submitted code should not produce typing errors. See this page for more information on mypy
.#refs <issue-id>
to the end of commit messages).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.
The library is open-sourced under the conditions of the MIT license.
FAQs
markyp-based RSS 2.0 implementation.
We found that markyp-rss demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.