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.
Metadata
Release files for imserv 0.1.11.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imserv-0.1.11.4.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imserv-0.1.11.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 34.9 kB
Release files / imserv-0.1.11.4.tar.gz
| Download URL | imserv-0.1.11.4.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53015c0d9ffa2d61f5787a9d19d34951b62311fe3bd8c88781441af67ddc8275
|
|
BLAKE2b-256 checksum How to use checksums |
472443a5a52c16fba4aca75846ee6c88acbf19aa83b26d657c54138e57932a4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
|
Release files / imserv-0.1.11.4-py2.py3-none-any.whl
| Download URL | imserv-0.1.11.4-py2.py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a2548d632ad196ed2c72fe20c79e249164d5324c41761a428681d3681b868971
|
|
BLAKE2b-256 checksum How to use checksums |
5b14233d4589578ac4ab359aa5e06fef5829ba3b0313ae7727799de31c357f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
|