miniflux


Nameminiflux JSON
Version 1.1.1 PyPI version JSON
download
home_pageNone
SummaryClient library for Miniflux
upload_time2024-09-04 04:19:55
maintainerNone
docs_urlNone
authorNone
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": null,
    "name": "miniflux",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "rss, atom, rdf, jsonfeed, feed, miniflux",
    "author": null,
    "author_email": "Fr\u00e9d\u00e9ric Guillot <fred@miniflux.net>",
    "download_url": "https://files.pythonhosted.org/packages/ea/02/20794490c71b45bec6f3c631c5bf73f31ac4119cd3f7f3c382e43b787b5f/miniflux-1.1.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.1.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": "58d2e9e057897b5509256908d89d2f56cd870b4581da4fcb2530a0165dcc8f77",
                "md5": "1ac66c58f9336dd645ada8fdfe3e3997",
                "sha256": "2e8a6938cedf39ad9d647c622fb6a2d9f6635fa4386b938f20dd28901a35eae3"
            },
            "downloads": -1,
            "filename": "miniflux-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ac66c58f9336dd645ada8fdfe3e3997",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7808,
            "upload_time": "2024-09-04T04:19:54",
            "upload_time_iso_8601": "2024-09-04T04:19:54.457114Z",
            "url": "https://files.pythonhosted.org/packages/58/d2/e9e057897b5509256908d89d2f56cd870b4581da4fcb2530a0165dcc8f77/miniflux-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea0220794490c71b45bec6f3c631c5bf73f31ac4119cd3f7f3c382e43b787b5f",
                "md5": "ee42bbff224094b1731fcf11f2b42dee",
                "sha256": "0757eb28ec14370b96a60fb9536f9a54160c50b17f3f7870298fb9ab480a9dc8"
            },
            "downloads": -1,
            "filename": "miniflux-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ee42bbff224094b1731fcf11f2b42dee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10252,
            "upload_time": "2024-09-04T04:19:55",
            "upload_time_iso_8601": "2024-09-04T04:19:55.880847Z",
            "url": "https://files.pythonhosted.org/packages/ea/02/20794490c71b45bec6f3c631c5bf73f31ac4119cd3f7f3c382e43b787b5f/miniflux-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-04 04:19:55",
    "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: 1.34665s