Skip to main content

Browse and watch anime from anime-sama.fr directly in your terminal

Project description

animesama-cli

Browse and watch anime from anime-sama.fr directly in your terminal.

AUR version PyPI version Linux Windows

Demo

animesama-cli demo

Overview

animesama-cli is a terminal application for browsing and watching anime from anime-sama.fr. It provides catalog search, persistent watch history, and the weekly release schedule. Video playback is handled by mpv.

Features

  • Full-text search of the anime-sama.fr catalog
  • Interactive TUI built with Textual, with a standard CLI fallback
  • Watch history stored in SQLite, with resume support
  • Weekly release schedule from anime-sama.fr
  • Upcoming episodes from animecountdown.com
  • French dub (VF) and Japanese audio with French subtitles (VOSTFR)
  • Linux and Windows support; AUR package available for Arch Linux

Installation

Linux

Debian / Ubuntu: the script installs mpv, pipx and the application.

sudo apt-get install curl -y
curl -fsSL https://raw.githubusercontent.com/Miro-sh/animesama-cli/master/install_unix.sh -o /tmp/animesama-install.sh && chmod +x /tmp/animesama-install.sh && sh /tmp/animesama-install.sh

Arch Linux (AUR):

yay -S animesama-cli

Any distribution with pipx (requires mpv):

pipx install animesama

Windows

Run the following command in PowerShell (no administrator rights required):

irm "https://raw.githubusercontent.com/Miro-sh/animesama-cli/refs/heads/master/install_windows.bat" -OutFile install.bat; .\install.bat

The script installs the application via pipx and downloads mpv. Restart your terminal after installation, then run animesama-cli.

Usage

Command Description
animesama-cli Launch the TUI (falls back to CLI if Textual is not installed)
animesama-cli --cli Force CLI mode
animesama-cli naruto Search directly
animesama-cli --vf naruto Search French dub only
animesama-cli -c Show watch history
animesama-cli -cf History with last-episode check
animesama-cli -p Weekly schedule
animesama-cli -up Upcoming episodes
animesama-cli --debug naruto Search with debug output
animesama-cli -h Show all options

The watch history is stored at ~/.local/share/animesama-cli/history.db and can be opened with any SQLite browser.

Uninstall

AUR:

yay -R animesama-cli

pipx (Linux and Windows):

pipx uninstall animesama

Windows (mpv installed by the script):

rd /s /q "%USERPROFILE%\AnimeSamaCLI"

Old manual installs (before 1.0.7):

sudo rm /usr/local/bin/animesama-cli
rm -rf ~/animesama-cli
rm -rf ~/.local/share/animesama-venv

Dependencies

Category Packages
Python requests, beautifulsoup4, textual (optional, for the TUI), windows-curses (Windows only)
System mpv, git, python3

Built-in Python modules used: sqlite3, re, json, sys, os, time, datetime, locale, pathlib, subprocess, asyncio.

FAQ

Click to expand

Can I change or disable subtitles? No. Subtitles are embedded in the video stream.

Can I watch in French? Yes. Use --vf when searching.

Can I switch the audio language? No. The site only provides French dub and Japanese audio with French subtitles.

Can I use a different video source? No, unless you write your own scraper.

Can I use VLC? No. Only mpv is supported.

Where can I find all the options? Run animesama-cli --help.

Related projects

  • ani-cli: Japanese audio, English subtitles (4anime, gogoanime, allmanga). animesama-cli was inspired by this project.
  • GoAnime: Japanese audio, Portuguese subtitles
  • doccli: Japanese audio, Polish subtitles (docchi.pl)

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening an issue or pull request. You can also join the Discord server to discuss the project.

Disclaimer

This project only fetches publicly available content and hosts nothing itself. Users are responsible for how they use it. See DISCLAIMER.md for details.

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

animesama-1.0.7.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

animesama-1.0.7-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file animesama-1.0.7.tar.gz.

File metadata

  • Download URL: animesama-1.0.7.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for animesama-1.0.7.tar.gz
Algorithm Hash digest
SHA256 0e0eb6aa77e087bd8d7854001dd9224fdc7a59cd05b4d445166522ef4d93b49b
MD5 849e696a0772bb2ead05b330e25bbf34
BLAKE2b-256 7325ac37d56392441bf8262f594256917ae43f67d6c7e88f7392f626251f804b

See more details on using hashes here.

Provenance

The following attestation bundles were made for animesama-1.0.7.tar.gz:

Publisher: release.yml on Miro-sh/animesama-cli

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

File details

Details for the file animesama-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: animesama-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for animesama-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4a5d1dc41e923ce20a8e6a6ecc27c34deac3c3afa9f1981c743c1e9c108403f3
MD5 f8b5f55d73957c65455821033a478fb6
BLAKE2b-256 ae7c8792fad1a3f466bed3f2ec3893981be7c29660030da0ff8070b016cbdd5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for animesama-1.0.7-py3-none-any.whl:

Publisher: release.yml on Miro-sh/animesama-cli

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