piwiPre


NamepiwiPre JSON
Version 0.17.17 PyPI version JSON
download
home_pagehttps://gitlab.com/fabien.battini/piwipre
Summarypictures & video preparation tool for piwigo
upload_time2024-04-15 15:15:47
maintainerNone
docs_urlNone
authorFabien BATTINI
requires_python>=3.6
licenseNone
keywords piwigo images pictures video
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # piwiPre

piwiPre is a python/windows tool to prepare pictures and video for piwigo (and any other album management), 
and maintain the piwigo album and database

It was initially developed for a piwigo instance running on a remote server such as a Synology NAS, 
while the 'photo' and 'web' directories are accessible from a PC where piwiPre is run, 
but it can run on many other configurations. 

Many features can be useful even when piwigo is not used.

piwiPre executes the following tasks:

1. Read configuration files and command-line argument to insure a high level of configuration.

2. Process new pictures/video on the local host in the TRIAGE directory and copy them on the piwigo server
   - process copy of content and leave original unmodified
   - convert most (managed by python) pictures formats to JPG
   - convert most (managed by ffmpeg) video formats to MP4
   - realign picture rotation, according to EXIF data
   - perform correction on picture/video dates according to settings
   - insert metadata (copyright, instructions, author) in the JPEG IPTC or MP4 file
   - rename pictures according to a user-defined scheme
   - replace by '_' characters that piwigo does not support in filenames
   - avoid collision of filenames
   - create the corresponding sub-album in piwigo, inserted in the increasing order of subdirectories
   - put updated copies into ALBUM, through file copy, NFS or ssh/sftp
   - build piwigo thumbnails, even for video
   - copy thumbnails to the appropriate location, through file copy, NFS or ssh/sftp
   - self-configure ALBUM for maintenance
   - update the piwigo SQL database with metadata and MD5 checksum

3. Maintain ALBUM 
   - work only on selected directories
   - Ensure the directory is aligned with the current configuration
   - Insert pictures and video in the piwigo database, with metadata, md5 checksum and author
   - Update the information stored in the piwigo database
   
4. log intensively the actions

piwiPre comes with:
   - a Windows graphical installer: pwpInstaller.exe
   - a Windows graphical configurator: pwpConfigurator.exe
   - a python version of pwpConfigurator, that runs on Linux and Windows
   - Python source code, 
   - a Python library downloadable from Pypi, 
   - Windows Executable versions
   - a complete user documentation in english and french 
   - test coverage at 95% of the code

## what piwiPre does *not*

piwiPre does not manage synology thumbnails created by Synology file-station in @eaDir directories,
which is not a concern because those thumbnails are small (less than 500KB).


## How to get piwiPre

- Python module on Pypi : https://pypi.org/project/piwiPre
- Python source on gitlab: https://gitlab.com/fabien_battini/piwiPre
- Windows installer and one-file exes on gitlab artifacts: https://fabien_battini.gitlab.io/piwipre/html/download.html


# How to use piwiPre (short)

1. Copy new pictures and videos from your cameras to the TRIAGE directory.

2. Create subdirectories is TRIAGE according to your taste
   - The name of the subdirectory will be a base for the new filename of pictures
   - move files into one of those.

3. Optionally edit the pictures in TRIAGE with digiKam, gimp or other image processing tool.

4. If you want managed files to be written to a remote piwigo server, then you need a piwiPre.ini configuration file.
   - If it does not exist, create one by running 'piwiPre --reset-ini' and edit it.
   - If ALBUM, WEB and AUTO-CONFIG directories are accessible, album, web and auto-config should be set.
   - If the sql database is accessible, sql-user, sql-pwd, sql-host, sql-port should be set. 
   - You may want to change the (english speaking) default values for month-name, copyright, instructions.
   
5. Run piwiPre

6. Results:
   - pictures have metadata inserted
   - picture rotation is reset to default
   - Files are renamed according to directories, dates
   - the thumbnails are generated
   - the corresponding sub-album has been created in piwigo, inserted in the increasing order of subdirectories
   - files have been copied to ALBUM
   - piwigo database is updated
   - so, the corresponding pictures should be visible in piwigo without further action
   - piwiPre.log holds an exhaustive log
   
# piwiPre as a tool

piwiPre is also a command-line tool, with command-line options.
For more information:

``piwiPre --help
  or python -m piwiPre --help
``

# Documentation

Documentation is built using Sphinx https://www.sphinx-doc.org/

Documentation is generated in https://fabien_battini.gitlab.io/piwipre/html/
This process is achieved automatically through gitlab CI pipelines.

gitlab: https://gitlab.com/fabien_battini/piwipre

doc : https://fabien_battini.gitlab.io/piwipre/html/ 

test coverage: https://fabien_battini.gitlab.io/piwipre/html/htmlcov/index.html  

pypi: https://pypi.org/project/piwipre/

LinkedIN: https://www.linkedin.com/in/fabien-battini-supelec/

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/fabien.battini/piwipre",
    "name": "piwiPre",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "piwigo images pictures video",
    "author": "Fabien BATTINI",
    "author_email": "fabien.battini@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/dd/66/b3c21413276b59d5caabd385f7185b69964447953f38fd08c05b5ae821a6/piwiPre-0.17.17.tar.gz",
    "platform": null,
    "description": "# piwiPre\r\n\r\npiwiPre is a python/windows tool to prepare pictures and video for piwigo (and any other album management), \r\nand maintain the piwigo album and database\r\n\r\nIt was initially developed for a piwigo instance running on a remote server such as a Synology NAS, \r\nwhile the 'photo' and 'web' directories are accessible from a PC where piwiPre is run, \r\nbut it can run on many other configurations. \r\n\r\nMany features can be useful even when piwigo is not used.\r\n\r\npiwiPre executes the following tasks:\r\n\r\n1. Read configuration files and command-line argument to insure a high level of configuration.\r\n\r\n2. Process new pictures/video on the local host in the TRIAGE directory and copy them on the piwigo server\r\n   - process copy of content and leave original unmodified\r\n   - convert most (managed by python) pictures formats to JPG\r\n   - convert most (managed by ffmpeg) video formats to MP4\r\n   - realign picture rotation, according to EXIF data\r\n   - perform correction on picture/video dates according to settings\r\n   - insert metadata (copyright, instructions, author) in the JPEG IPTC or MP4 file\r\n   - rename pictures according to a user-defined scheme\r\n   - replace by '_' characters that piwigo does not support in filenames\r\n   - avoid collision of filenames\r\n   - create the corresponding sub-album in piwigo, inserted in the increasing order of subdirectories\r\n   - put updated copies into ALBUM, through file copy, NFS or ssh/sftp\r\n   - build piwigo thumbnails, even for video\r\n   - copy thumbnails to the appropriate location, through file copy, NFS or ssh/sftp\r\n   - self-configure ALBUM for maintenance\r\n   - update the piwigo SQL database with metadata and MD5 checksum\r\n\r\n3. Maintain ALBUM \r\n   - work only on selected directories\r\n   - Ensure the directory is aligned with the current configuration\r\n   - Insert pictures and video in the piwigo database, with metadata, md5 checksum and author\r\n   - Update the information stored in the piwigo database\r\n   \r\n4. log intensively the actions\r\n\r\npiwiPre comes with:\r\n   - a Windows graphical installer: pwpInstaller.exe\r\n   - a Windows graphical configurator: pwpConfigurator.exe\r\n   - a python version of pwpConfigurator, that runs on Linux and Windows\r\n   - Python source code, \r\n   - a Python library downloadable from Pypi, \r\n   - Windows Executable versions\r\n   - a complete user documentation in english and french \r\n   - test coverage at 95% of the code\r\n\r\n## what piwiPre does *not*\r\n\r\npiwiPre does not manage synology thumbnails created by Synology file-station in @eaDir directories,\r\nwhich is not a concern because those thumbnails are small (less than 500KB).\r\n\r\n\r\n## How to get piwiPre\r\n\r\n- Python module on Pypi : https://pypi.org/project/piwiPre\r\n- Python source on gitlab: https://gitlab.com/fabien_battini/piwiPre\r\n- Windows installer and one-file exes on gitlab artifacts: https://fabien_battini.gitlab.io/piwipre/html/download.html\r\n\r\n\r\n# How to use piwiPre (short)\r\n\r\n1. Copy new pictures and videos from your cameras to the TRIAGE directory.\r\n\r\n2. Create subdirectories is TRIAGE according to your taste\r\n   - The name of the subdirectory will be a base for the new filename of pictures\r\n   - move files into one of those.\r\n\r\n3. Optionally edit the pictures in TRIAGE with digiKam, gimp or other image processing tool.\r\n\r\n4. If you want managed files to be written to a remote piwigo server, then you need a piwiPre.ini configuration file.\r\n   - If it does not exist, create one by running 'piwiPre --reset-ini' and edit it.\r\n   - If ALBUM, WEB and AUTO-CONFIG directories are accessible, album, web and auto-config should be set.\r\n   - If the sql database is accessible, sql-user, sql-pwd, sql-host, sql-port should be set. \r\n   - You may want to change the (english speaking) default values for month-name, copyright, instructions.\r\n   \r\n5. Run piwiPre\r\n\r\n6. Results:\r\n   - pictures have metadata inserted\r\n   - picture rotation is reset to default\r\n   - Files are renamed according to directories, dates\r\n   - the thumbnails are generated\r\n   - the corresponding sub-album has been created in piwigo, inserted in the increasing order of subdirectories\r\n   - files have been copied to ALBUM\r\n   - piwigo database is updated\r\n   - so, the corresponding pictures should be visible in piwigo without further action\r\n   - piwiPre.log holds an exhaustive log\r\n   \r\n# piwiPre as a tool\r\n\r\npiwiPre is also a command-line tool, with command-line options.\r\nFor more information:\r\n\r\n``piwiPre --help\r\n  or python -m piwiPre --help\r\n``\r\n\r\n# Documentation\r\n\r\nDocumentation is built using Sphinx https://www.sphinx-doc.org/\r\n\r\nDocumentation is generated in https://fabien_battini.gitlab.io/piwipre/html/\r\nThis process is achieved automatically through gitlab CI pipelines.\r\n\r\ngitlab: https://gitlab.com/fabien_battini/piwipre\r\n\r\ndoc : https://fabien_battini.gitlab.io/piwipre/html/ \r\n\r\ntest coverage: https://fabien_battini.gitlab.io/piwipre/html/htmlcov/index.html  \r\n\r\npypi: https://pypi.org/project/piwipre/\r\n\r\nLinkedIN: https://www.linkedin.com/in/fabien-battini-supelec/\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "pictures & video preparation tool for piwigo",
    "version": "0.17.17",
    "project_urls": {
        "Homepage": "https://gitlab.com/fabien.battini/piwipre"
    },
    "split_keywords": [
        "piwigo",
        "images",
        "pictures",
        "video"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8dfdeca1ecb4536bb181f2cfed308138d4dd88f24550bd2094133090d3327086",
                "md5": "2a2c4e73565cd7fe24d6e14778279921",
                "sha256": "d6ca748ad535a77fc284496d48ac7fa462848fa7fbaa4ccf382fa9f578348834"
            },
            "downloads": -1,
            "filename": "piwiPre-0.17.17-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2a2c4e73565cd7fe24d6e14778279921",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 125964,
            "upload_time": "2024-04-15T15:15:45",
            "upload_time_iso_8601": "2024-04-15T15:15:45.325994Z",
            "url": "https://files.pythonhosted.org/packages/8d/fd/eca1ecb4536bb181f2cfed308138d4dd88f24550bd2094133090d3327086/piwiPre-0.17.17-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dd66b3c21413276b59d5caabd385f7185b69964447953f38fd08c05b5ae821a6",
                "md5": "d5739a8d36ee018ffca02f0ede657c13",
                "sha256": "38bdf890ee7d401f17fc07f42e0b4b850166558e13dbe9c6b533d1de268fa09c"
            },
            "downloads": -1,
            "filename": "piwiPre-0.17.17.tar.gz",
            "has_sig": false,
            "md5_digest": "d5739a8d36ee018ffca02f0ede657c13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 140654,
            "upload_time": "2024-04-15T15:15:47",
            "upload_time_iso_8601": "2024-04-15T15:15:47.166633Z",
            "url": "https://files.pythonhosted.org/packages/dd/66/b3c21413276b59d5caabd385f7185b69964447953f38fd08c05b5ae821a6/piwiPre-0.17.17.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-15 15:15:47",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "fabien.battini",
    "gitlab_project": "piwipre",
    "lcname": "piwipre"
}
        
Elapsed time: 0.33321s