nokey.tv_and_film package
Submodules
nokey.tv_and_film.star_trek_api module
- class nokey.tv_and_film.star_trek_api.STAPI(use_caching=False, cache_name='stapi_cache', backend='sqlite', expire_after=3600)[source]
Bases:
objectA class for interacting with the Star Trek API.
- base_url
The base URL of the API.
- about
A short description of the API.
- get_animal_by_id(uid)[source]
Returns information about a Star Trek animal matching the unique id.
- Parameters:
uid (str) – The unique identifier for the animal.
- Returns:
A dictionary containing information about the animal.
- Return type:
dict
- get_animals(pageNumber=0, pageSize=50)[source]
Returns a list of animals of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of animals per page. Defaults to 50.
- Returns:
A dictionary containing a list of animals.
- Return type:
dict
- get_astronomical_object_by_id(uid)[source]
Returns information about a Star Trek astronomical object matching the unique id.
- Parameters:
uid (str) – The unique identifier for the astronomical object.
- Returns:
A dictionary containing information about the astronomical object.
- Return type:
dict
- get_astronomical_objects(pageNumber=0, pageSize=50)[source]
Returns a list of astronomical objects of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of objects per page. Defaults to 50.
- Returns:
A dictionary containing a list of astronomical objects.
- Return type:
dict
- get_book_by_id(uid)[source]
Returns information about a Star Trek book matching the unique id.
- Parameters:
uid (str) – The unique identifier for the book.
- Returns:
A dictionary containing information about the book.
- Return type:
dict
- get_book_collection_by_id(uid)[source]
Returns information about a Star Trek book collection matching the unique id.
- Parameters:
uid (str) – The unique identifier for the book collection.
- Returns:
A dictionary containing information about the book collection.
- Return type:
dict
- get_book_collections(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek book collections of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of book collections per page. Defaults to 50.
- Returns:
A dictionary containing a list of book collections.
- Return type:
dict
- get_book_series(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek book series of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of book series per page. Defaults to 50.
- Returns:
A dictionary containing a list of book series.
- Return type:
dict
- get_book_series_by_id(uid)[source]
Returns information about a Star Trek book series matching the unique id.
- Parameters:
uid (str) – The unique identifier for the book series.
- Returns:
A dictionary containing information about the book series.
- Return type:
dict
- get_books(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek books of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of books per page. Defaults to 50.
- Returns:
A dictionary containing a list of books.
- Return type:
dict
- get_character_by_id(uid)[source]
Returns information about a Star Trek character matching the unique id.
- Parameters:
uid (str) – The unique identifier for the character.
- Returns:
A dictionary containing information about the character.
- Return type:
dict
- get_characters(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek characters of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of characters per page. Defaults to 50.
- Returns:
A dictionary containing a list of characters.
- Return type:
dict
- get_comic_by_id(uid)[source]
Returns information about a Star Trek comic matching the unique id.
- Parameters:
uid (str) – The unique identifier for the comic.
- Returns:
A dictionary containing information about the comic.
- Return type:
dict
- get_comic_collection_by_id(uid)[source]
Returns information about a Star Trek comic collection matching the unique id.
- Parameters:
uid (str) – The unique identifier for the comic collection.
- Returns:
A dictionary containing information about the comic collection.
- Return type:
dict
- get_comic_collections(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek comic collections of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of comic collections per page. Defaults to 50.
- Returns:
A dictionary containing a list of comic collections.
- Return type:
dict
- get_comic_series(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek comic series of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of comic series per page. Defaults to 50.
- Returns:
A dictionary containing a list of comic series.
- Return type:
dict
- get_comic_series_by_id(uid)[source]
Returns information about a Star Trek comic series matching the unique id.
- Parameters:
uid (str) – The unique identifier for the comic series.
- Returns:
A dictionary containing information about the comic series.
- Return type:
dict
- get_comic_strip_by_id(uid)[source]
Returns information about a Star Trek comic strip matching the unique id.
- Parameters:
uid (str) – The unique identifier for the comic strip.
- Returns:
A dictionary containing information about the comic strip.
- Return type:
dict
- get_comic_strips(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek comic strips of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of comic strips per page. Defaults to 50.
- Returns:
A dictionary containing a list of comic strips.
- Return type:
dict
- get_comics(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek comics of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of comics per page. Defaults to 50.
- Returns:
A dictionary containing a list of comics.
- Return type:
dict
- get_companies(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek companies of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of companies per page. Defaults to 50.
- Returns:
A dictionary containing a list of companies.
- Return type:
dict
- get_company_by_id(uid)[source]
Returns information about a Star Trek company matching the unique id.
- Parameters:
uid (str) – The unique identifier for the company.
- Returns:
A dictionary containing information about the company.
- Return type:
dict
- get_conflict_by_id(uid)[source]
Returns information about a Star Trek conflict matching the unique id.
- Parameters:
uid (str) – The unique identifier for the conflict.
- Returns:
A dictionary containing information about the conflict.
- Return type:
dict
- get_conflicts(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek conflicts of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of conflicts per page. Defaults to 50.
- Returns:
A dictionary containing a list of conflicts.
- Return type:
dict
- get_data_version()[source]
Returns the data version of the API.
- Parameters:
None –
- Returns:
A dictionary containing the data version of the API.
- Return type:
dict
- get_docs_url()[source]
Returns the URL for the Star Trek API.
- Parameters:
None –
- Returns:
The URL for the API.
- Return type:
str
- get_element_by_id(uid)[source]
Returns information about a Star Trek element matching the unique id.
- Parameters:
uid (str) – The unique identifier for the element.
- Returns:
A dictionary containing information about the element.
- Return type:
dict
- get_elements(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek elements of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of elements per page. Defaults to 50.
- Returns:
A dictionary containing a list of elements.
- Return type:
dict
- get_episode_by_id(uid)[source]
Returns information about a Star Trek episode matching the unique id.
- Parameters:
uid (str) – The unique identifier for the episode.
- Returns:
A dictionary containing information about the episode.
- Return type:
dict
- get_episodes(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek episodes of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of eposodes per page. Defaults to 50.
- Returns:
A dictionary containing a list of episodes.
- Return type:
dict
- get_food_by_id(uid)[source]
Returns information about a Star Trek food matching the unique id.
- Parameters:
uid (str) – The unique identifier for the food.
- Returns:
A dictionary containing information about the food.
- Return type:
dict
- get_foods(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek foods of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of foods per page. Defaults to 50.
- Returns:
A dictionary containing a list of foods.
- Return type:
dict
- get_literature(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek literature of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of literature per page. Defaults to 50.
- Returns:
A dictionary containing a list of literature.
- Return type:
dict
- get_literature_by_id(uid)[source]
Returns information about Star Trek literature matching the unique id.
- Parameters:
uid (str) – The unique identifier for the literature.
- Returns:
A dictionary containing information about the literature.
- Return type:
dict
- get_location_by_id(uid)[source]
Returns information about a Star Trek location matching the unique id.
- Parameters:
uid (str) – The unique identifier for the location.
- Returns:
A dictionary containing information about the location.
- Return type:
dict
- get_locations(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek locations of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of locations per page. Defaults to 50.
- Returns:
A dictionary containing a list of locations.
- Return type:
dict
- get_magazine_by_id(uid)[source]
Returns information about a Star Trek magazine matching the unique id.
- Parameters:
uid (str) – The unique identifier for the magazine.
- Returns:
A dictionary containing information about the magazine.
- Return type:
dict
- get_magazine_series(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek magazine series of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of magazine series per page. Defaults to 50.
- Returns:
A dictionary containing a list of magazine series.
- Return type:
dict
- get_magazine_series_by_id(uid)[source]
Returns information about a Star Trek magazine series matching the unique id.
- Parameters:
uid (str) – The unique identifier for the magazine series.
- Returns:
A dictionary containing information about the magazine series.
- Return type:
dict
- get_magazines(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek magazines of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of magazines per page. Defaults to 50.
- Returns:
A dictionary containing a list of magazines.
- Return type:
dict
- get_material_by_id(uid)[source]
Returns information about a Star Trek material matching the unique id.
- Parameters:
uid (str) – The unique identifier for the material.
- Returns:
A dictionary containing information about the material.
- Return type:
dict
- get_materials(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek materials of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of materials per page. Defaults to 50.
- Returns:
A dictionary containing a list of materials.
- Return type:
dict
- get_medical_condition_by_id(uid)[source]
Returns information about a Star Trek medical condition matching the unique id.
- Parameters:
uid (str) – The unique identifier for the medical condition.
- Returns:
A dictionary containing information about the medical condition.
- Return type:
dict
- get_medical_conditions(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek medical conditions of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of medical conditions per page. Defaults to 50.
- Returns:
A dictionary containing a list of medical conditions.
- Return type:
dict
- get_movie_by_id(uid)[source]
Returns information about a Star Trek movie matching the unique id.
- Parameters:
uid (str) – The unique identifier for the movie.
- Returns:
A dictionary containing information about the movie.
- Return type:
dict
- get_movies(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek movies of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of movies per page. Defaults to 50 (although at this time there are only 14 entries).
- Returns:
A dictionary containing a list of movies.
- Return type:
dict
- get_occupation_by_id(uid)[source]
Returns information about a Star Trek occupation matching the unique id.
- Parameters:
uid (str) – The unique identifier for the occupation.
- Returns:
A dictionary containing information about the occupation.
- Return type:
dict
- get_occupations(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek occupations of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of occupations per page. Defaults to 50.
- Returns:
A dictionary containing a list of occupations.
- Return type:
dict
- get_organization_by_id(uid)[source]
Returns information about a Star Trek organization matching the unique id.
- Parameters:
uid (str) – The unique identifier for the organization.
- Returns:
A dictionary containing information about the organization.
- Return type:
dict
- get_organizations(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek organizations of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of organizations per page. Defaults to 50.
- Returns:
A dictionary containing a list of organizations.
- Return type:
dict
- get_performer_by_id(uid)[source]
Returns information about a Star Trek performer matching the unique id.
- Parameters:
uid (str) – The unique identifier for the performer.
- Returns:
A dictionary containing information about the performer.
- Return type:
dict
- get_performers(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek performers of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of performers per page. Defaults to 50.
- Returns:
A dictionary containing a list of performers.
- Return type:
dict
- get_season_by_id(uid)[source]
Returns information about a Star Trek season matching the unique id.
- Parameters:
uid (str) – The unique identifier for the season.
- Returns:
A dictionary containing information about the season.
- Return type:
dict
- get_seasons(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek seasons of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of seasons per page. Defaults to 50.
- Returns:
A dictionary containing a list of seasons.
- Return type:
dict
- get_series(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek series of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of series per page. Defaults to 50 (although at this time there are only 12 entries).
- Returns:
A dictionary containing a list of series.
- Return type:
dict
- get_series_by_id(uid)[source]
Returns information about a Star Trek series matching the unique id.
- Parameters:
uid (str) – The unique identifier for the series.
- Returns:
A dictionary containing information about the series.
- Return type:
dict
- get_soundtrack_by_id(uid)[source]
Returns information about a Star Trek soundtrack.matching the unique id.
- Parameters:
uid (str) – The unique identifier for the soundtrack.
- Returns:
A dictionary containing information about the soundtrack.
- Return type:
dict
- get_soundtracks(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek soundtracks of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of soundtracks per page. Defaults to 50 (although at this time there are only 12 entries).
- Returns:
A dictionary containing a list of soundtracks.
- Return type:
dict
- get_spacecraft_by_id(uid)[source]
Returns information about a Star Trek spacecraft matching the unique id.
- Parameters:
uid (str) – The unique identifier for the spacecraft.
- Returns:
A dictionary containing information about the spacecraft.
- Return type:
dict
- get_spacecraft_class_by_id(uid)[source]
Returns information about a Star Trek spacecraft class matching the unique id.
- Parameters:
uid (str) – The unique identifier for the spacecraft class.
- Returns:
A dictionary containing information about the spacecraft class.
- Return type:
dict
- get_spacecraft_classes(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek spacecraft classes of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of spacecraft classes per page. Defaults to 50.
- Returns:
A dictionary containing a list of spacecraft classes.
- Return type:
dict
- get_spacecrafts(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek spacecrafts of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of spacecrafts per page. Defaults to 50.
- Returns:
A dictionary containing a list of spacecrafts.
- Return type:
dict
- get_species(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek species of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of species per page. Defaults to 50.
- Returns:
A dictionary containing a list of species.
- Return type:
dict
- get_species_by_id(uid)[source]
Returns information about a Star Trek species matching the unique id.
- Parameters:
uid (str) – The unique identifier for the species.
- Returns:
A dictionary containing information about the species.
- Return type:
dict
- get_staff(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek staff of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of staff per page. Defaults to 50.
- Returns:
A dictionary containing a list of staff.
- Return type:
dict
- get_staff_by_id(uid)[source]
Returns information about a Star Trek staff matching the unique id.
- Parameters:
uid (str) – The unique identifier for the staff.
- Returns:
A dictionary containing information about the staff.
- Return type:
dict
- get_technologies(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek technologies of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of technologies per page. Defaults to 50.
- Returns:
A dictionary containing a list of technologies.
- Return type:
dict
- get_technology_by_id(uid)[source]
Returns information about a Star Trek technology matching the unique id.
- Parameters:
uid (str) – The unique identifier for the technology.
- Returns:
A dictionary containing information about the technology.
- Return type:
dict
- get_title_by_id(uid)[source]
Returns information about a Star Trek titles matching the unique id.
- Parameters:
uid (str) – The unique identifier for the title.
- Returns:
A dictionary containing information about the title.
- Return type:
dict
- get_titles(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek titles of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of titles per page. Defaults to 50.
- Returns:
A dictionary containing a list of titles.
- Return type:
dict
- get_trading_card_by_id(uid)[source]
Returns information about a Star Trek trading card matching the unique id.
- Parameters:
uid (str) – The unique identifier for the trading card.
- Returns:
A dictionary containing information about the trading card.
- Return type:
dict
- get_trading_card_deck_by_id(uid)[source]
Returns information about a Star Trek trading card deck matching the unique id.
- Parameters:
uid (str) – The unique identifier for the trading card deck.
- Returns:
A dictionary containing information about the trading card deck.
- Return type:
dict
- get_trading_card_decks(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek trading card decks of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of trading card decks per page. Defaults to 50.
- Returns:
A dictionary containing a list of trading card decks.
- Return type:
dict
- get_trading_card_set_by_id(uid)[source]
Returns information about a Star Trek trading card set matching the unique id.
- Parameters:
uid (str) – The unique identifier for the trading card set.
- Returns:
A dictionary containing information about the trading card set.
- Return type:
dict
- get_trading_card_sets(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek trading card sets of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of trading card sets per page. Defaults to 50.
- Returns:
A dictionary containing a list of trading card sets.
- Return type:
dict
- get_trading_cards(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek trading cards of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of trading cards per page. Defaults to 50.
- Returns:
A dictionary containing a list of trading cards.
- Return type:
dict
- get_video_game_by_id(uid)[source]
Returns information about a Star Trek video game matching the unique id.
- Parameters:
uid (str) – The unique identifier for the video game.
- Returns:
A dictionary containing information about the video game.
- Return type:
dict
- get_video_games(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek video games of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of video games per page. Defaults to 50.
- Returns:
A dictionary containing a list of video games.
- Return type:
dict
- get_video_release_by_id(uid)[source]
Returns information about a Star Trek video release matching the unique id.
- Parameters:
uid (str) – The unique identifier for the video release.
- Returns:
A dictionary containing information about the video release.
- Return type:
dict
- get_video_releases(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek video releases of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of video releases per page. Defaults to 50.
- Returns:
A dictionary containing a list of video releases.
- Return type:
dict
- get_weapon_by_id(uid)[source]
Returns information about a Star Trek weapon matching the unique id.
- Parameters:
uid (str) – The unique identifier for the weapon.
- Returns:
A dictionary containing information about the weapon.
- Return type:
dict
- get_weapons(pageNumber=0, pageSize=50)[source]
Returns a list of Star Trek weapons of the specified page number and page size.
- Parameters:
pageNumber (int) – The page number of the list. Defaults to 0, the first page.
pageSize (int) – The number of weapons per page. Defaults to 50.
- Returns:
A dictionary containing a list of weapons.
- Return type:
dict