Picot is a library to read, select and extract information from RSS feeds.
## Installation
You can install it using `pip install` as usual:
```bash
pip install picot
```
## Usage
### As a module
Picot is intended to be used mostly as a module, providing with some RSS feed goodies.
```python
import picot.feed
entries = picot.feed.Feed(url)
for entry in entries:
print(entry['title'])
```
#### Filter
In order to make filtering easier, you can provide `Feed` with a function determining what entries are selected:
```python
entries = picot.feed.Feed(url, filter_func=lambda x: x['title'].startswith('How to'))
```
#### Formatting
It provides with a formatting function, defining how entries are represented:
```python
entries = picot.feed.Feed(url, format_func=lambda x: '{} {}'.format(x['title'], x['link']))
```
### As a command
While intended to be used as a library, Picot can be invoked as a command line tool to get the titles of the entries in an RSS:
```bash
$ picot <RSS URL>
```
Metadata
Release files for picot 0.1.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 |
|---|---|---|---|---|
| picot-0.1.0.tar.gz | 2.5 kB | Without provenance | Details for picot-0.1.0.tar.gz |
Release files / picot-0.1.0.tar.gz
| Download URL | picot-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66acbfb62df537d34de6cbcad8c3030a5064373b917353d7dd14aebc80a4a947
|
|
BLAKE2b-256 checksum How to use checksums |
5ee0c5b7b57a926be80dbc494f66c3beee3b06c2a8df606c7eaef76f32682da3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for picot 0.1.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.