feedendum
A python library to parse and generate RSS or atom feeds.
Features
This module can:
- parse and generate RSS feeds
- parse and generate RDF (RSS v1.0) feeds (thanks to @inigoserna)
- parse and generate Atom feeds
- access standard fields via
feedclass andfeed.itemlist - preserve all data parsed, even in custom fields, when generating a RSS/Atom/RDF text
- read an url if
requestsis installed - access non-standard fields via
_datadict - create arbitrary feed
- modify an existing feed
Usage
Parsing a file
For RSS:
feed = feedendum.from_rss_file(file_path)
feed = feedendum.from_rss_text(txt)
For RDF (RSS v1.0):
feed = feedendum.from_rdf_file(file_path)
feed = feedendum.from_rdf_text(txt)
For Atom:
feed = feedendum.from_atom_file(file_path)
feed = feedendum.from_atom_text(txt)
Accessing to parsed data
Standard fields:
print("Title", feed.title)
print("First entry title", feed.items[0].title)
For other fields, not defined in Feed class:
print("Extra attributes in the feed", feed._data)
print("Extra attributes in the first entry", feed.items[0]._data)
Writing a file
For RSS:
feedendum.to_rss_string(feed)
For RDF (RSS v1.0):
feedendum.to_rdf_string(feed)
For Atom:
feedendum.to_atom_string(feed)
Metadata
Release files for feedendum 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feedendum-0.4.0.tar.gz | 83.3 kB | Without provenance | Details for feedendum-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feedendum-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for feedendum-0.4.0-py3-none-any.whl |
Total release size: 117.8 kB
Release files / feedendum-0.4.0.tar.gz
| Download URL | feedendum-0.4.0.tar.gz |
|---|---|
| Size | 83.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb12bd086ab3cf7229a9041dd8d41d01943bd6e5ee7a9e31cd347490b9b03fab
|
|
BLAKE2b-256 checksum How to use checksums |
61297c576770ad2776e5412afec7f932b5d533126397531bba0db1ac17ac252a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Release files / feedendum-0.4.0-py3-none-any.whl
| Download URL | feedendum-0.4.0-py3-none-any.whl |
|---|---|
| Size | 34.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c6a41177766c4205a6e6fd6110a91fc681c29d63405c3881de39f3c7f300ed9
|
|
BLAKE2b-256 checksum How to use checksums |
176267409e7db9da41c5afe207bc28c1b46c8c5f5b99d6c90f27515cd696ca80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Security for feedendum 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.