Skip to main content

Wrapper for jw.org APIs

Project description

Build Status Package Status Documentation Status

Python wrappers for a few jw.org APIs.

Installation

pip install jwlib

Usage

Video API

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

Development

An example on how to setup the dev environment:

# Create a virtual Python environement
python -m venv venv
. venv/bin/activate

# Install dependencies
# -e keeps the installed jwlib in sync with your changes
# [dev] installs the dependencies for testing
pip install -e '.[dev]'

# If you also want to build documentation:
pip install -e '.[dev,docs]'

# Show some convenience functions
make help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jwlib-1.1.0.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jwlib-1.1.0-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file jwlib-1.1.0.tar.gz.

File metadata

  • Download URL: jwlib-1.1.0.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jwlib-1.1.0.tar.gz
Algorithm Hash digest
SHA256 175f3ad7cbe1093de45afc47b8c1054de49e6e98c4d200c3aa128461bf26df1c
MD5 9150c48eac0e1add0b4ca7f5790db4f8
BLAKE2b-256 e6a75bfac1935d43b6fe90e0cc4221b5374427487268d6434ede0aa7b6c917be

See more details on using hashes here.

Provenance

The following attestation bundles were made for jwlib-1.1.0.tar.gz:

Publisher: build.yml on allejok96/jwlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jwlib-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: jwlib-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jwlib-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 711b9bead20b7df508b03f9db986646ba5a0f627f3eb0c32e2c1a6572ba6911a
MD5 64173160f1140606f961d1314dbffad3
BLAKE2b-256 d0bf50cb2a6ff37fd5aa1a0c71d6ce1929cbe4f613fad14df652f8f756a12b54

See more details on using hashes here.

Provenance

The following attestation bundles were made for jwlib-1.1.0-py3-none-any.whl:

Publisher: build.yml on allejok96/jwlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page