Skip to main content

tvrage3

https://badge.fury.io/py/tvrage3.png https://travis-ci.org/kalind/tvrage3.png?branch=master

Python3 client for accessing tv show information from www.tvrage.com

Features

  • Lazy, you can search tvrage with quick-search and still get all the information as you would get with a full search about the specified show. When a Show object is asked to return information not provided by the search method used, it will query tvrage for the information.

  • Will handle the occasional database errors and information inconsistencies in the tvrage database sane and gracefully.

  • High-level api, handles all the XML stuff for you.

Usage

  • Searching

    • Full search

      Returns a list of Show objects.

      from tvrage3.search import search
      results = search('Buffy')
      first = results[0]
      first.name # => 'Buffy the Vampire Slayer'
    • Quick search

      Returns a show object, the closest match to search term or None.

      from tvrage3.search import quick_info
      result = quick_info('Csi crime')
      result.name # => 'CSI: Crime Scene Investigation'
      
      # Enable stricter matching
      result = quick_info('CSI crime', exact=True)
      result == None # => True
    • Search by id

      Returns a Show object, or None if id is incorrect.

      from tvrage3.search import search_id
      result = search_id('2930')
      result.name # => 'Buffy the Vampire Slayer'
  • Show objects

    Show objects should not be initialized manually, it should be done by one of the search functions, but for this example we do.

    from tvrage3.api import Show
    show = Show(show_id='3183')
    
    show.air_day        # => 'Wednesday'
    show.air_time       # => '22:00'
    show.classification # => 'Scripted'
    show.country        # => 'US'
    show.ended_year     # => None
    show.genres         # => ['Action', 'Crime', 'Drama']
    show.link           # => 'http://www.tvrage.com/CSI'
    show.name           # => 'CSI: Crime Scene Investigation'
    show.network        # => OrderedDict([('@country', 'US'), ('#text', 'CBS')])
    show.runtime        # => 60
    show.seasons        # => 14
    show.show_id        # => '3183'
    show.started_year   # => 2000
    show.status         # => 'Returning Series'

History

0.1.1 (2014-05-10)

  • Fixed some style errors

0.1.0 (2014-05-10)

  • First release on PyPI.

Metadata

Release files for tvrage3 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tvrage3 0.1.1
File Size Uploaded Provenance Actions
tvrage3-0.1.1.tar.gz 14.6 kB Without provenance Details for tvrage3-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tvrage3 0.1.1
File Interpreter ABI Platform Actions
tvrage3-0.1.1-py3-none-any.whl Python 3 none any Details for tvrage3-0.1.1-py3-none-any.whl

Total release size: 21.8 kB

Release files / tvrage3-0.1.1.tar.gz

Download URL tvrage3-0.1.1.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
da1c24386e0f6b6988ca01d18dcfc57562ebf2d2c13306d031aa14bf0801c396
BLAKE2b-256 checksum
How to use checksums
a8bef13fae37d6dea5ee789a9251273545233b0e415e49df946c19c551870f05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tvrage3-0.1.1-py3-none-any.whl

Download URL tvrage3-0.1.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a4496569a87c3033d1ef6cb7b12c668e26a3eccb808f024d21a95a49c86304
BLAKE2b-256 checksum
How to use checksums
e614635571323ee16c37af3d3307b9f36cc2f09afd8e23d5db6179a3accfcb8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tvrage3 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page