Coder Social home page Coder Social logo

bobotig / shaarlimages Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 1.38 MB

Shaarlimages, la galerie des shaarlis !

Home Page: https://www.shaarlimages.net

License: MIT License

CSS 3.70% JavaScript 3.71% Shell 0.92% Python 84.54% Smarty 7.13%
python310 shaarli gallery-images

shaarlimages's Introduction

Shaarlimages

Shaarlimages, la galerie des shaarlis !

URL : www.shaarlimages.net

API

Galleries:

Files:

RSS feeds (a link is made accessible when clicking on "images" at the top-right on the website):

Production

Copy all files from the host folder to the PythonAnywhere hosting account.

Details:

  • Web app type: Bottle
  • Python version: 3.10
  • Force HTTPS: enabled

Tasks:

  • "Sync all shaarlis":
    • when: daily at 06:00 UTC
    • command: CI=true PYTHONPATH='/home/tiger222/shaarlimages' python -m host sync

Check Batteries Included to know what modules are already provided.

Backup

Command to fully sync back the data on a local machine:

# Usage:
# rsync -avzhe ssh <USER>@ssh.pythonanywhere.com:<SHAARLIMAGES_FOLDER>/data <LOCAL_FOLDER>/

# Example:
$ rsync -avzhe ssh [email protected]:/home/tiger222/shaarlimages/data /home/tiger-222/projects/shaarlimages/

OSError: write error

In the server logs, we might see lots of OSError: write error messages. They are not related to the current application, more information here.

Development

Installation

$ python3.10 -m venv venv
$ . venv/bin/activate
$ python -m pip install -U pip
$ python -m pip install -r requirements-dev.txt

Quality

$ ./checks.sh

Tests

$ python -m pytest --doctest-modules host tests/unit

# To be run from time to time to ensure solvers are still working
$ python -m pytest tests/integration

Local Server

$ python server.py

CLI

$ python -m host -h

Synchronization

Sync all registered shaarlis:

$ python -m host sync [--force]

Sync any Shaarli instance (registered or not):

$ python -m host sync --url URL [--force]

# Example:
# python -m host sync --url 'https://shaarli.example.org/feed/atom'

In both cases, use --force to (re)sync from the beginning.


Historique

Suite à cette requête.

Ajouter un shaarli

La liste des instances shaarli est récupérée depuis BoboTiG/shaarlis. N'hésitez pas à proposer un patch pour ajouter d'autres liens.

Remerciements

shaarlimages's People

Contributors

bobotig avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

inscriptionweb

shaarlimages's Issues

Custom 404 error

Implementation:

@application.error(404)
def error404(error: str) -> None:
    return helpers.render_404()

Now, we "just" need a great looking page. I'll have a look when I'll have some inspiration (help is welcome, of course ^^).

A fresh new favicon

The current favicon is too small, and I do not find the source image (I guess it was a SVG).
Either find that SVG, and regenerate the favicon with a bigger size; or create a new one.

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.