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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size imagedb-0.2.1.3-py2.py3-none-any.whl (32.5 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size imagedb-0.2.1.3.tar.gz (10.6 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for imagedb-0.2.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefaa7ddfa96ac073536c68d7564ade1cdaa604b4109f4dc5d9c7c801ccbe156 |
|
MD5 | d2dfd3a49394050421daa9a2e0f1007a |
|
BLAKE2-256 | aee0c0138995570c58ccc3798e7e9bc08ace45f23b0658a1a748b62a755f2de9 |