Client library for Miniflux
Project description
Python client library for Miniflux API.
Requirements
Miniflux >= 2.0.49
Python >= 3.7
requests
Installation
python3 -m pip install miniflux
Running Tests
python3 -m unittest -v
Usage Example
import miniflux
# Creating a client using username / password authentication
client = miniflux.Client("https://miniflux.example.org", username="my_username", password="my_secret_password")
# Use an API Key (preferred method)
client = miniflux.Client("https://miniflux.example.org", api_key="My secret API token")
# Get all feeds
feeds = client.get_feeds()
# Refresh a feed
client.refresh_feed(123)
# Discover subscriptions from a website
subscriptions = client.discover("https://example.org")
# Create a new feed, with a personalized user agent and with the crawler enabled
feed_id = client.create_feed("http://example.org/feed.xml", category_id=42, crawler=True, user_agent="GoogleBot")
# Fetch 10 starred entries
entries = client.get_entries(starred=True, limit=10)
# Fetch last 5 feed entries
feed_entries = client.get_feed_entries(123, direction='desc', order='published_at', limit=5)
# Fetch entries that belongs to a category with status unread and read
entries = client.get_entries(category_id=456, status=['read', 'unread'])
# Update entry title and content
client.update_entry(entry_id=1234, title="New title", content="New content")
# Update a feed category
client.update_feed(123, category_id=456)
# OPML Export
opml = client.export_feeds()
# OPML import
client.import_feeds(opml_data)
# Get application version
client.get_version()
# Flush history
client.flush_history()
# Get current user
myself = client.me()
Look at miniflux.py to get the complete list of methods.
License
This library is distributed under MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
miniflux-1.1.1.tar.gz
(10.3 kB
view details)
Built Distribution
File details
Details for the file miniflux-1.1.1.tar.gz
.
File metadata
- Download URL: miniflux-1.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0757eb28ec14370b96a60fb9536f9a54160c50b17f3f7870298fb9ab480a9dc8 |
|
MD5 | ee42bbff224094b1731fcf11f2b42dee |
|
BLAKE2b-256 | ea0220794490c71b45bec6f3c631c5bf73f31ac4119cd3f7f3c382e43b787b5f |
File details
Details for the file miniflux-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: miniflux-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e8a6938cedf39ad9d647c622fb6a2d9f6635fa4386b938f20dd28901a35eae3 |
|
MD5 | 1ac66c58f9336dd645ada8fdfe3e3997 |
|
BLAKE2b-256 | 58d2e9e057897b5509256908d89d2f56cd870b4581da4fcb2530a0165dcc8f77 |