ImServ
Spin an image server, store images from Clipboard in single place, and prevent duplication.
Installation
- Clone the project from GitHub
- Navigate to the project folder and
poetry install
- Run a Python script:
from imserv.db import create_all_tables
create_all_tables()
The folder ~/Pictures/imserv
will be created, and will be used for storing all images. (Tested only on Mac.)
By default, it uses PostGRESQL of the database named imserv
, so you have to initialize the database first, before running the script.
The image folder can also be changed in ImServ(folder=IMG_FOLDER_PATH)
.
Usage
To run an image server (before running Jupyter Notebook), run in a script:
ImServ().runserver()
This will open the server for the website: http://localhost:8000/, which leads to:
where you can create an image directly from Clipboard. The name of the image will be randomized using UUID.
After that, if you want to use it in Jupyter Notebook:
>>> from imserv import ImServ
>>> ims = ImServ()
>>> ims.last()
'The image accessed last will be shown.'
More screenshots
Related projects
- jupyter-flashcard - Create a database of Jupyter Notebooks and convert them into flashcards.