Code Monkey home page Code Monkey logo

biblioteca-guarrilla's Introduction

Biblioteca-Guarrilla

Biblioteca-Guarrilla

Biblioteca-Guarrilla

Biblioteca-Guarrilla

Biblioteca-Guarrilla

  • 1 file.
  • ~300Kb.
  • ~130 Lines of code.
  • 0 Dependencies (libzip may or may not be required depending on your system config, should be present on most OS nowadays).
  • English & Spanish supported.

Requisites

  • A Calibre database metadata.db (with the books on the same folder as the database, as typically used by Calibre App).

Use

Spanish:

./biblioteca_guarrilla --color --filtros --desbichar --limite=42 --autorefresco=9 --mensaje='Un mensaje de Admin aqui' '/ruta/a/calibre/metadata.db'

Opciones:

  • --desbichar Modo de depuracion de errores.
  • --color Usar coloreado de la salide de Terminal.
  • --autorefresco=9 Forzar Auto-Refresco de la Web en Segundos, numero 1 ~ 255.
  • --filtros Usar Filtros por Inicial del nombre del libro en la pagina Web.
  • --mensaje="foo" Mensaje de Admin se ve en la pagina Web, ideal MOTD, COC, etc.
  • --limite=42 Limite maximo de Libros a publicar en la Web, numero 1 ~ 255.
  • --salida='/ruta/a/archivo.html' Escribir Web a un archivo en lugar de servirla.
  • Ver Ayuda con --ayuda.

English:

./biblioteca_guarrilla --color --filters --debug --limit=42 --autorefresh=9 --message='Some Admin message here' '/path/to/calibre/metadata.db'

Options:

  • --debug Debug mode.
  • --color Use colored Terminal output.
  • --autorefresh=9 Force Auto-Refresh of Web on Seconds, 1 ~ 255 integer.
  • --filters Use Filters per book name on the Web.
  • --message="foo" Admin Message seen on the Web, ideal for MOTD, COC, etc.
  • --limit=42 Max number of books to publish on the Web, 1 ~ 255 integer.
  • --output='/path/to/file.html' Write the Web to a file instead of serving it.
  • See Help with --help.

FAQ

  • Works over Wifi?.

Yes.

  • How to set English as default language?.

Its designed in a way that spoken language does not really matter too much.

  • Necesita Nim instalado?.

No.

  • Necesita Servidor Web?.

No.

  • Se puede usar con Python, Flask, Bottlepy, etc?.

Si, usar opcion --salida= y servir la web con la App Python (No provista).

  • Como se instala?.

No se instala. Solo ejecutalo y listo.

  • Como se configura?.

No se configura. Solo ejecutalo y listo.

  • How to use Calibre?.

See docs.

  • Que hace?.

Genera una web a partir de un catalogo de Calibre. Calibre es una App de Libros Digitales. Recorre la carpeta de Calibre procesando archivos. Luego optimiza las tapas de libros de JPG a WebP. WebP pesa la mitad que JPG, para previews es mas que suficiente. La web mostrara una foto paisaje o similar si falta la tapa del libro. Luego optimiza los libros Mobi y PDF comprimiendolos en ZIP. PDF en ZIP es mas liviano. EPUB no se ZIPean. No borra ningun archivo. Al final la misma aplicacion sirve la web y se ve desde el browser.

  • Donde se Descarga?.

https://github.com/juancarlospaco/biblioteca-guarrilla/releases

  • Fails with Error: unhandled exception: cannot open: static/css/spectre.min.css [IOError] ?

Copy over the /static/ folder.

Internal Structure

Biblioteca-Guarrilla

Run nim doc biblioteca_guarrilla.nim for more Documentation.

biblioteca-guarrilla's People

Contributors

juancarlospaco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

biblioteca-guarrilla's Issues

Discrepancy in README

It is stated in the README that there are 0 Dependencies, so I thought you should know that libzip is required :)

Cannot open: static/css/spectre.min.css and fails

After I run the example command to start the biblioteca, a few lines are printed regarding the objects in my calibre library, and then the program exits with this error:

Error: unhandled exception: cannot open: static/css/spectre.min.css [IOError]

It was installed using:
Nim Compiler Version 0.19.2 [Linux: amd64]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.