Skip to main content

Spin an image server, store images from Clipboard in single place, and prevent duplication.

Project description

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:

web.png

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

jupyter0.png jupyter1.png

Related projects

  • jupyter-flashcard - Create a database of Jupyter Notebooks and convert them into flashcards.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for imserv, version 0.1.11.4
Filename, size File type Python version Upload date Hashes
Filename, size imserv-0.1.11.4-py2.py3-none-any.whl (25.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size imserv-0.1.11.4.tar.gz (10.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page