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:
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file imserv-0.1.11.4.tar.gz
.
File metadata
- Download URL: imserv-0.1.11.4.tar.gz
- Upload date:
- Size: 10.0 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 | 53015c0d9ffa2d61f5787a9d19d34951b62311fe3bd8c88781441af67ddc8275 |
|
MD5 | b371f73aeacc3ff0f89a0b2d937373dd |
|
BLAKE2b-256 | 472443a5a52c16fba4aca75846ee6c88acbf19aa83b26d657c54138e57932a4f |
File details
Details for the file imserv-0.1.11.4-py2.py3-none-any.whl
.
File metadata
- Download URL: imserv-0.1.11.4-py2.py3-none-any.whl
- Upload date:
- Size: 25.0 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 | a2548d632ad196ed2c72fe20c79e249164d5324c41761a428681d3681b868971 |
|
MD5 | 93d15ded4569a41facf7e78e447a0815 |
|
BLAKE2b-256 | 5b14233d4589578ac4ab359aa5e06fef5829ba3b0313ae7727799de31c357f58 |