Socket
Socket
Sign inDemoInstall

imserv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imserv

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


Maintainers
1

ImServ

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

Installation

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

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc