The code powering https://pdfimpose.it
Project description
pdfimpose-web 📕 The code powering https://pdfimpose.it
Installation
python3 -m pip install pdfimpose-web
Run the application
Run the application using the following command.
python3 -m flask --app pdfimposeweb run
You can now use pdfimpose-web at: http://localhost:5000.
Note that you might want to configure the application using the settings described in the following section.
Settings
This application can be run with default settings (but with default settings, data might be reset if you restart it).
To configure it:
-
download file
pdfimposeweb/settings/default.py
to your disk, -
change it (it is self-documented),
-
tell
pdfimpose-web
to use it:export PDFIMPOSEWEB_SETTINGS=/path/to/settings.py python3 -m flask --app pdfimposeweb run
Cleaning
Files uploaded by users are stored during one hour by default. This can be changed in the setting file.
A thread is launched at startup to clean those files. This can be disabled in the setting file. If disabled, the script pdfimposeweb.clean
can be run periodically (e.g. in a crontab) to remove old uploaded PDF files. Note that the very same configuration used to run the application must be used to run this script:
export PDFIMPOSEWEB_SETTINGS=/path/to/settings.py
python3 -m pdfimposeweb.clean
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
Hashes for pdfimpose_web-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ff52e8d8b360d591c11940cb2ae0f4ed840f26c1e65afb28113d4de8d5504a |
|
MD5 | e396d3ca6c2e3ccf59765314d503f141 |
|
BLAKE2b-256 | 188c95c5f8b60c98d8e8f128265c2cae891e9ead6ef48503243a41e2501a9c82 |