miniflux


Nameminiflux JSON
Version 1.0.1 PyPI version JSON
download
home_page
SummaryClient library for Miniflux
upload_time2024-03-02 02:06:19
maintainer
docs_urlNone
author
requires_python>=3.7
licenseThe MIT License (MIT) Copyright (c) 2018-2024 Frédéric Guillot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords rss atom rdf jsonfeed feed miniflux
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Miniflux Python API Client
==========================

.. image:: https://badge.fury.io/py/miniflux.svg
    :target: https://badge.fury.io/py/miniflux

Python client library for Miniflux API.

Requirements
------------

- Miniflux >= 2.0.49
- Python >= 3.7
- requests

Installation
------------

.. code:: bash

    python3 -m pip install miniflux

Running Tests
-------------

.. code:: bash

    python3 -m unittest -v

Usage Example
-------------

.. code:: python

    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 <https://github.com/miniflux/python-client/blob/main/miniflux.py>`_  to get the complete list of methods.

Author
------

Frédéric Guillot

License
-------

This library is distributed under MIT License.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "miniflux",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "rss,atom,rdf,jsonfeed,feed,miniflux",
    "author": "",
    "author_email": "Fr\u00e9d\u00e9ric Guillot <fred@miniflux.net>",
    "download_url": "https://files.pythonhosted.org/packages/b0/db/fdbc4b1ef916a0b1b604daf7410be6aad58a01e63cffecd47bcca0c7837b/miniflux-1.0.1.tar.gz",
    "platform": null,
    "description": "Miniflux Python API Client\n==========================\n\n.. image:: https://badge.fury.io/py/miniflux.svg\n    :target: https://badge.fury.io/py/miniflux\n\nPython client library for Miniflux API.\n\nRequirements\n------------\n\n- Miniflux >= 2.0.49\n- Python >= 3.7\n- requests\n\nInstallation\n------------\n\n.. code:: bash\n\n    python3 -m pip install miniflux\n\nRunning Tests\n-------------\n\n.. code:: bash\n\n    python3 -m unittest -v\n\nUsage Example\n-------------\n\n.. code:: python\n\n    import miniflux\n\n    # Creating a client using username / password authentication\n    client = miniflux.Client(\"https://miniflux.example.org\", username=\"my_username\", password=\"my_secret_password\")\n\n    # Use an API Key (preferred method)\n    client = miniflux.Client(\"https://miniflux.example.org\", api_key=\"My secret API token\")\n\n    # Get all feeds\n    feeds = client.get_feeds()\n\n    # Refresh a feed\n    client.refresh_feed(123)\n\n    # Discover subscriptions from a website\n    subscriptions = client.discover(\"https://example.org\")\n\n    # Create a new feed, with a personalized user agent and with the crawler enabled\n    feed_id = client.create_feed(\"http://example.org/feed.xml\", category_id=42, crawler=True, user_agent=\"GoogleBot\")\n\n    # Fetch 10 starred entries\n    entries = client.get_entries(starred=True, limit=10)\n\n    # Fetch last 5 feed entries\n    feed_entries = client.get_feed_entries(123, direction='desc', order='published_at', limit=5)\n\n    # Fetch entries that belongs to a category with status unread and read\n    entries = client.get_entries(category_id=456, status=['read', 'unread'])\n\n    # Update entry title and content\n    client.update_entry(entry_id=1234, title=\"New title\", content=\"New content\")\n\n    # Update a feed category\n    client.update_feed(123, category_id=456)\n\n    # OPML Export\n    opml = client.export_feeds()\n\n    # OPML import\n    client.import_feeds(opml_data)\n\n    # Get application version\n    client.get_version()\n\n    # Flush history\n    client.flush_history()\n\n    # Get current user\n    myself = client.me()\n\n\nLook at `miniflux.py <https://github.com/miniflux/python-client/blob/main/miniflux.py>`_  to get the complete list of methods.\n\nAuthor\n------\n\nFr\u00e9d\u00e9ric Guillot\n\nLicense\n-------\n\nThis library is distributed under MIT License.\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2018-2024 Fr\u00e9d\u00e9ric Guillot  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Client library for Miniflux",
    "version": "1.0.1",
    "project_urls": {
        "Bug Reports": "https://github.com/miniflux/python-client/issues",
        "Homepage": "https://github.com/miniflux/python-client",
        "Source": "https://github.com/miniflux/python-client"
    },
    "split_keywords": [
        "rss",
        "atom",
        "rdf",
        "jsonfeed",
        "feed",
        "miniflux"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "745a66f15e86cc2fd6b71667744a42e5977b29f35af4656419be44d38c61538d",
                "md5": "0e3b3c8fa4a0678cf0138bc298132cd6",
                "sha256": "3d1253b4d1bdf17a4e9be7c423b00b76a176110fa65ed245abe888fb274c1151"
            },
            "downloads": -1,
            "filename": "miniflux-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e3b3c8fa4a0678cf0138bc298132cd6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8020,
            "upload_time": "2024-03-02T02:06:18",
            "upload_time_iso_8601": "2024-03-02T02:06:18.252537Z",
            "url": "https://files.pythonhosted.org/packages/74/5a/66f15e86cc2fd6b71667744a42e5977b29f35af4656419be44d38c61538d/miniflux-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0dbfdbc4b1ef916a0b1b604daf7410be6aad58a01e63cffecd47bcca0c7837b",
                "md5": "55844c98785537ebfa1e4e394fa011b2",
                "sha256": "6fcecc5427cb0b7919a4347213de17689274f2cf32a20b7e5959a97baf9ca3ac"
            },
            "downloads": -1,
            "filename": "miniflux-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "55844c98785537ebfa1e4e394fa011b2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10350,
            "upload_time": "2024-03-02T02:06:19",
            "upload_time_iso_8601": "2024-03-02T02:06:19.329711Z",
            "url": "https://files.pythonhosted.org/packages/b0/db/fdbc4b1ef916a0b1b604daf7410be6aad58a01e63cffecd47bcca0c7837b/miniflux-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-02 02:06:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "miniflux",
    "github_project": "python-client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "miniflux"
}
        
Elapsed time: 0.20763s