Store images, especially from Clipboard, in a database, and spin an image server (for usage in Jupyter Notebook).
Project description
ImageDB
Store images, especially from Clipboard, in a database, and spin an image server (for usage in Jupyter Notebook).
Installation
$ pip install imagedb
Or
- Clone the project from GitHub
poetry add imagedb --path path/to/imagedb/folder
Usage
Run an image server
In a Python script (outside Jupyter Notebook).
from imagedb import ImageDB
ImageDB('images.db').runserver()
# Then, go to `http://localhost:8000` in your browser to register an image (from the clipboard).
Get images from the image server
In Jupyter Notebook
>>> from imagedb import ImageDB
>>> idb = ImageDB('images.db')
>>> idb.last()
# The latest image in the server will be shown. `idb.last(5)` is also supported.
>>> from IPython.display import display
>>> for image in idb.search(tags='bar'):
... display(image)
# All images corresponding to the tag 'bar' will be shown.
Screenshots
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imagedb-0.2.1.3.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file imagedb-0.2.1.3.tar.gz
.
File metadata
- Download URL: imagedb-0.2.1.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec514261473df6380a1990ee8fbc2972688fdb45677f3c6f94683facb39bd084 |
|
MD5 | db39eee8fd9d207f882b3ff125f7b5e5 |
|
BLAKE2b-256 | c26de8ff5394813da2f2da436bbda45410af0af1b734039353949e782ffb9d89 |
File details
Details for the file imagedb-0.2.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: imagedb-0.2.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefaa7ddfa96ac073536c68d7564ade1cdaa604b4109f4dc5d9c7c801ccbe156 |
|
MD5 | d2dfd3a49394050421daa9a2e0f1007a |
|
BLAKE2b-256 | aee0c0138995570c58ccc3798e7e9bc08ace45f23b0658a1a748b62a755f2de9 |