Skip to main content

CLI commands to catalogue all your movie reviews

Project description

   __  ______  __      ___     __
  /  |/  /| | / /      | | /| / /
 / /|_/ / | |/ /       | |/ |/ / 
/_/  /_/o |___/ie revie|__/|__/ 

Fastfetch inspired movie reviews

Catalogue your own movie review inside your terminal.

Python License GitHub Release

pipx install mvw


  ▁▁     ╭─────────────────────────────────────╮
 ▁▁▁│    │ These are some demos when using MVW │
┌┘└ ░▌   ╰─────────────────────────────────────╯
╚═══╝    F: Psst.. his name is MOAI (nice to meet u)                                     

Interactive

Default usage where you will get to experience the full experience of MVW. You will get to search, rate, review and also save your review. Every reviews will be saved in your local machine!

Interactive Command

List

You will get to see every past reviews that you had done in a simple interface supported by iterfzf) which uses the "Fuzzy Search"

List Command

Config

Everything that you can see in the config list can be configurable. From the poster_width, theme, your name, and even worldwide-boxoffice feature

Config Command

Theme

NOTE: Most modern browser supports nerdfont icons in svg, you just need to choose nerdfont as default in the settings. You can see svg below if it is supported.

  • Gruvbox (The Default Theme) Gruvbox

  • Catppuccin Catpuccin

  • Nord Nord


Features

Features Notes
Auto fetch movie data Uses OMDb API behind the hood to fetch movie data fast
Search movies Just give the movie title or imdbid to fetch the movie (no more EXACT)
Menu List every accessible feature when selected after mvw list
Change poster Change the default poster after fetch
Pixelated poster Unique way to view the poster (fully intentional)
Transparent support Transparent background from png or webp are supported
Configurable poster size Can change the poster width
Review history All review are saved in a database
Autocomplete Provided by the Typer library
Themes Gruvbox, Catppuccin, Nord
Save Review The review can be saved in svg format with the theme
Worldwide Boxoffice Use webscrap tech to find the global box office
Half-star Rating Support 0.5 star rating
Review Editor Use default editor to edit review
Caching Poster No need to download the poster everytime fetching
Easy update When searching same movie, will use past review
Reset Config Default to the factory setting with single command
Moai help Fun gimmick to help you in the process (can be hide dont worry)
  ▁▁     ╭─────────────────────────╮
 ▁▁▁│    │ Why am I at the bottom? │
┌┘└ ░▌   ╰─────────────────────────╯
╚═══╝    F: Cause heroes appear last.. right..                                  

Motivation

I have a deep interest in TUI/CLI and also movie in general. I also have a vault in Obsidian where I catalogue movies that I watch but you know how it goes.. (Legend says that it was still there waiting for me :D) At first, as someone like me whose personality (TUI + Movie) will obviously create a movie player that does everything (find, torrent, play, and done) which has already been done so many times. So instead I just want to make something different and that's where I (finally) remember about my Obsidian movie catalogue. Then the code begins..

And also, I just want to learn new things :)

Can check my personal blog for more info -> here


Installation

Method Command
pipx (recommended) pipx install mvw
uv uv tool install mvw
pip pip install mvw

NOTE: This CLI require a nerdfont to have the icon fully showed --> This repo seems legit way to install nerdfont but its up to you how to install, google it, you got this! --> Also, If you are on Windows, don't forget to set nerdfont as default font in the settings.

Usage

mvw

CLI

# Configure
mvw config -h

# All configure settings
mvw config --api-key "OMDB API key"       # Required
mvw config --name "Name"                  # Optional
mvw config --poster-width 30
mvw config --theme "gruvbox"
mvw config --moai                         # Toggle
mvw config --review                       # Toggle
mvw config --worldwide-boxoffice          # Toggle
mvw config --hide-key                     # Toggle
mvw config --reset                        # Toggle

# List all reviewed movies
mvw list

# Change the poster
mvw poster --id "ttxxxxxx" "poster_path"
mvd poster --title "Inception" "poster_path"

# Preview the reviewed movies
mvw preview --id "ttxxxxxx"
mvd preview --title "Inception"

# Delete the reviewed movies
mvw delete --id "ttxxxxxx"
mvd delete --title "Inception"

Configuration

Settings are automatically configured using mvw config

FAQ

  ▁▁     ╭─────────────────╮
 ▁▁▁│    │ Why am I here?  │
┌┘└ ░▌   ╰─────────────────╯
╚═══╝     F: Just for fun i guess

Why does the poster pixelated?

During the early build of the project, I could not figure out a way to pipe a kitty image into the iterfzf preview section. It took a long time to process so I try another method which is using rich_pixel library which supports rich and also works on every OS. As of now, thats what I could think of to solve it. TLDR: you can think it as the intended style

Why do I need to register an API key?

Short answer: It's easier for me to implement and it's very fast!

Long answer: During the early build, I tried to use an API from TMDb, however I found that the registering process are quite intimidating. Then, I found OMDb (which is almost the same as TMDb but easier API key registration). Later down the road, I also tried a no-API-key path Cinemagoer. However, I couldn't (as of now) make it work yet. Naybe in the future, another non-API option will arise?!

Who is MOAI?

It is just a console.print that I decided to add a face. I choose Moai because, the emoji 🗿 is just too perfect and one of my friends has used it during the phonk era (a lot). The emoji name is also MOAI so I thought why not just MO(AI) it. Same to LLM in Ollama, just too good to not use.


Inspiration

mvw is built with Typer + iterfzf and inspired by:

  • fastfetch - Visual system information Display.

License

GPL-3.0

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

mvw-0.4.3.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

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

mvw-0.4.3-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file mvw-0.4.3.tar.gz.

File metadata

  • Download URL: mvw-0.4.3.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mvw-0.4.3.tar.gz
Algorithm Hash digest
SHA256 8a68edbb726e5892b1afbdb37771382bbdfe2b3a93ed4cebda0deead9fbb3a2f
MD5 c1cbc68759a859356df9a0a1a21f251c
BLAKE2b-256 1d463a67d611f167b2fbed4c9a35ef1b6c5b67f40b86e158e32f9d5a43dc518d

See more details on using hashes here.

File details

Details for the file mvw-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: mvw-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mvw-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 86edc0f1d1bde3701f0b8ff32fba3abf0ea05618924d3b064869b4c0dc9f0cef
MD5 3c720dd1d8042e5b3a37998f0e18a1fb
BLAKE2b-256 623e2b711cbe4badbf922816118782c6cee28355cd11c342cf338d4ec2bf2fec

See more details on using hashes here.

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