Skip to main content

libert

CLI extremamente rápida e direta para download de livros do welib.

Instale via PyPI:

pip install libert

Uso rápido

libert <URL_DO_WELIB>
libert -f pdf <URL_DO_WELIB>
libert --format epub <URL_DO_WELIB>
libert -l links.txt
libert --list ./meus-links.txt
libert            # abre o menu interativo

Exemplo:

libert https://pt.welib.st/md5/55d053185d2b4871c7a0549b997135f9

Fluxo no terminal (1 livro):

[+] Conectando ao welib...
[+] Livro encontrado: "Nome do Livro"
[+] Formatos disponíveis:
  [1] PDF  (15.4 MB)
  [2] EPUB (2.1 MB)
Escolha o formato desejado (1-2):
  • Com apenas 1 formato disponível, o download começa automaticamente.
  • Com -f/--format, o modo é não-interativo.
  • Arquivos são salvos em ~/Downloads (Linux) ou ~/storage/downloads (Termux/Android).
  • Barra de progresso com tamanho total, porcentagem e velocidade.

Menu interativo (libert sem argumentos)

=== libert - Gerenciador de Downloads do welib ===

  [1] Baixar um único livro (inserir URL)
  [2] Baixar múltiplos livros (colar lista de URLs)
  [3] Baixar a partir de arquivo de texto (ex: links.txt)
  [0] Sair

Escolha uma opção (0-3):
  • Opção 1: pede a URL e segue o fluxo padrão (auto se 1 formato, pergunta se N).
  • Opção 2: cole um link por linha; uma linha em branco (Enter vazio) inicia o lote.
  • Opção 3: informa o .txt (Enter = links.txt do diretório atual, ou seja, da pasta onde o terminal está aberto). Linhas vazias e comentários # são ignorados.

Lote (batch)

[1/3] Processando: https://pt.welib.st/md5/aaa...
[+] Conectando ao welib...
...
[2/3] Processando: https://pt.welib.st/md5/bbb...
...
[+] Resumo: 2 baixado(s) com sucesso, 1 falha(s) de 3.
  • 1 formato → baixa sem pausar; N formatos → pergunta o formato daquele livro.
  • Falhas de um link (URL inválida, 404/403, rede) não abortam o lote.

Arquivo .txt de exemplo (links.txt):

# meus livros
https://pt.welib.st/md5/55d053185d2b4871c7a0549b997135f9
https://welib.st/md5/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Opções

libert [-f FORMATO] [-o PASTA] [-l ARQUIVO.txt] [URL]
libert -V

Desenvolvimento

pip install -e .
python -m build

Licença

MIT

Metadata

Release files for libert 0.2.0

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

Source distribution (sdist)

Source distribution for libert 0.2.0
File Size Uploaded
libert-0.2.0.tar.gz 13.7 kB Details

Built distribution (wheel)

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

Total release size: 27.9 kB

Release files / libert-0.2.0.tar.gz

Download URL libert-0.2.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4631688794295ce591dbf24315cab8c8bb9a365b5948e7b74eb45464f9ba1950
BLAKE2b-256 checksum
How to use checksums
6d659a50733a724347e7c5e974bcd216dac5049aff8f3be824de8b845fee9723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / libert-0.2.0-py3-none-any.whl

Download URL libert-0.2.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ed4f50fc1354495890b0a45f36f41ffbfaa0003cc4dd38bc11855d7ee482694
BLAKE2b-256 checksum
How to use checksums
10c8d39345e4510f6588e23bdccc1a4cb4243233d990e774af209b52cbc97b5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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