jwlib


Namejwlib JSON
Version 1.0.0b2 PyPI version JSON
download
home_pageNone
SummaryWrapper for jw.org APIs
upload_time2025-07-23 14:42:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords jw jworg
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =====
jwlib
=====

|build| |version| |docs|

Python wrappers for a few jw.org_ APIs.

Installation
============

.. code-block:: bash

    pip install jwlib

Usage
=====

Video API
---------

.. code-block:: python

    import jwlib.media as jw

    # Select Swedish
    session = jw.Session(language='Z')

    # Fetch the JW Broadcasting category
    studio_category = session.get_category('VODStudio')

    # Iterate through all its subcategories
    # (this will make more API requests as needed)
    for subcategory in studio_category.get_subcategories():

        # Print a category header
        print(f'\n{subcategory.name}\n-----------')

        # Print title and URL of all media items
        for media in subcategory.get_media():
            print(media.title)
            print(media.get_file().url)

See the media_ documentation for more details.

Publication API
---------------

TODO

Search API
----------

TODO

Language API
------------

TODO

.. |build| image:: https://github.com/allejok96/jwlib/actions/workflows/build.yml/badge.svg
    :target: https://github.com/allejok96/jwlib/actions/workflows/build.yml
    :alt: Build Status
.. |version| image:: https://img.shields.io/pypi/v/jwlib.svg
    :target: https://pypi.python.org/pypi/jwlib
    :alt: Package Status
.. |docs| image:: https://readthedocs.org/projects/jwlib/badge/?version=latest
    :target: https://jwlib.readthedocs.io/en/latest/?version=latest
    :alt: Documentation Status

.. _jw.org: https://www.jw.org/
.. _media: https://jwlib.readthedocs.io/en/latest/jwlib.media.html


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "jwlib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "jw, jworg",
    "author": null,
    "author_email": "allejok96 <allejok96@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/30/3e/5ee94e251591a83e16beba0abe13b4492253e603ba81cc478905e7ce3fd8/jwlib-1.0.0b2.tar.gz",
    "platform": null,
    "description": "=====\njwlib\n=====\n\n|build| |version| |docs|\n\nPython wrappers for a few jw.org_ APIs.\n\nInstallation\n============\n\n.. code-block:: bash\n\n    pip install jwlib\n\nUsage\n=====\n\nVideo API\n---------\n\n.. code-block:: python\n\n    import jwlib.media as jw\n\n    # Select Swedish\n    session = jw.Session(language='Z')\n\n    # Fetch the JW Broadcasting category\n    studio_category = session.get_category('VODStudio')\n\n    # Iterate through all its subcategories\n    # (this will make more API requests as needed)\n    for subcategory in studio_category.get_subcategories():\n\n        # Print a category header\n        print(f'\\n{subcategory.name}\\n-----------')\n\n        # Print title and URL of all media items\n        for media in subcategory.get_media():\n            print(media.title)\n            print(media.get_file().url)\n\nSee the media_ documentation for more details.\n\nPublication API\n---------------\n\nTODO\n\nSearch API\n----------\n\nTODO\n\nLanguage API\n------------\n\nTODO\n\n.. |build| image:: https://github.com/allejok96/jwlib/actions/workflows/build.yml/badge.svg\n    :target: https://github.com/allejok96/jwlib/actions/workflows/build.yml\n    :alt: Build Status\n.. |version| image:: https://img.shields.io/pypi/v/jwlib.svg\n    :target: https://pypi.python.org/pypi/jwlib\n    :alt: Package Status\n.. |docs| image:: https://readthedocs.org/projects/jwlib/badge/?version=latest\n    :target: https://jwlib.readthedocs.io/en/latest/?version=latest\n    :alt: Documentation Status\n\n.. _jw.org: https://www.jw.org/\n.. _media: https://jwlib.readthedocs.io/en/latest/jwlib.media.html\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Wrapper for jw.org APIs",
    "version": "1.0.0b2",
    "project_urls": {
        "Changelog": "https://github.com/allejok96/jwlib/blob/main/HISTORY.rst",
        "Documentation": "https://jwlib.readthedocs.io/en/latest",
        "Homepage": "https://github.com/allejok96/jwlib",
        "Issues": "https://github.com/allejok96/jwlib/issues"
    },
    "split_keywords": [
        "jw",
        " jworg"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6bd9a7c645edf7e68200a1ade09138ace693b1509e9d57fa65d054e6cf6d0a0d",
                "md5": "11653951153efb068256c955d54f469a",
                "sha256": "e497a3dd0f722b84e1c7fffaf0745b97355b5bc3af324664d4f05f3c080e719a"
            },
            "downloads": -1,
            "filename": "jwlib-1.0.0b2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "11653951153efb068256c955d54f469a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 34459,
            "upload_time": "2025-07-23T14:42:45",
            "upload_time_iso_8601": "2025-07-23T14:42:45.826007Z",
            "url": "https://files.pythonhosted.org/packages/6b/d9/a7c645edf7e68200a1ade09138ace693b1509e9d57fa65d054e6cf6d0a0d/jwlib-1.0.0b2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "303e5ee94e251591a83e16beba0abe13b4492253e603ba81cc478905e7ce3fd8",
                "md5": "9c53ea3831f68d837a7a87af32441038",
                "sha256": "641da79aacb56bdd858e8c5f3deb596418f0b37403808ab005815fcd1b658941"
            },
            "downloads": -1,
            "filename": "jwlib-1.0.0b2.tar.gz",
            "has_sig": false,
            "md5_digest": "9c53ea3831f68d837a7a87af32441038",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5665531,
            "upload_time": "2025-07-23T14:42:47",
            "upload_time_iso_8601": "2025-07-23T14:42:47.485249Z",
            "url": "https://files.pythonhosted.org/packages/30/3e/5ee94e251591a83e16beba0abe13b4492253e603ba81cc478905e7ce3fd8/jwlib-1.0.0b2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-23 14:42:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "allejok96",
    "github_project": "jwlib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "jwlib"
}
        
Elapsed time: 1.28455s