{ "info": { "author": "Jonas Wielicki", "author_email": "jonas@wielicki.name", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: POSIX", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3 :: Only", "Topic :: Communications :: Chat" ], "description": "``dont-puush-me``\n#################\n\nChallenged by the ease of use of existing tools to capture and upload\nscreenshots so that they are available for the general public, this script was\nmade.\n\nThe only required dependencies are ``scp`` and ``scrot``. Optional dependencies\nare:\n\n* ``optipng`` (used by default, can be turned off in configuration)\n* ``xclip`` (to save URLs to clipboard or to capture PNG images from clipboard)\n* ``zenity`` (to display URLs in a window)\n\nConfiguration\n=============\n\nThe upload URL is configured using a config file ``dont-puush-me.ini``. It can\nbe placed anywhere in your XDG configuration paths (usually ``~/.config`` and\n``/etc/xdg``).\n\nThe config file has the following format::\n\n [upload]\n scp_format=user@host:/path/to/directory/{}.png\n url_format=https://host.example/directory/{}.png\n\n [process]\n optipng=true\n\n [to-selections]\n primary=false\n secondary=false\n clipboard=false\n\nThe ``scp_format`` and ``url_format`` settings are required and no default\nexists for them. In those, the first occurence of ``{}`` is replaced with the\nautomatically generated filename for the image. You need to set those values\nsuch that ``scp`` can be used to upload the file so that it will be reachable\nat the url given by ``url_format`` afterwards.\n\nThe ``optipng`` setting is a boolean setting which enables or disables the\ndefault use of optipng before uploading an image.\n\nThe ``to-selections`` section provides a boolean flag for each of the X11\nselections. They default to false and can be overriden by command line flags.\nThe URL is put into each of the selections which are set to true either by\ncommand line arguments or the configuration file.\n\nUsage\n=====\n\nThe tool features a lot of options, but the actual usage is usually simple. For\nexamples scroll down. Here is the full usage::\n\n usage: dont-puush-me [-h] (-f | -r | -c | -l FROM_FILE) [-d SECONDS]\n [--no-optipng | --optipng] [--save-locally FILE] [-z]\n [-p] [--no-to-primary] [-s] [--no-to-secondary] [-b]\n [--no-to-clipboard] [-v]\n\n Use scrot to create a screenshot which is either saved locally or uploaded to\n a configured server.\n\n optional arguments:\n -h, --help show this help message and exit\n -v, --verbose Increase verbosity\n\n Capture settings:\n -f, --fullscreen Make a shot of the entire screen\n -r, -w, --select Select a region or window to screenshot\n -c, --from-clipboard Use the image from the clipboard\n -l FROM_FILE, --from-file FROM_FILE\n Use the image in the given PNG file\n -d SECONDS, --delay SECONDS\n Delay the screenshot by the given amount of seconds\n\n Image processing:\n --no-optipng Disable use of optipng before uploading (overrides\n config option)\n --optipng Enable use of optipng before uploading (overrides\n config option)\n\n Upload settings:\n --save-locally FILE Save the file locally instead of uploading it to a\n server\n\n URL output settings:\n -z, --zenity Show the URL using zenity\n -p, --to-primary Save the URL in the primary X11 selection (overrides\n config option).\n --no-to-primary Do not save the URL in the primary X11 selection\n (overrides config option).\n -s, --to-secondary Save the URL in the secondary X11 selection (overrides\n config option).\n --no-to-secondary Do not save the URL in the secondary X11 selection\n (overrides config option).\n -b, --to-clipboard Save the URL in the clipboard X11 selection (overrides\n config option).\n --no-to-clipboard Do not save the URL in the clipboard X11 selection\n (overrides config option).\n\nExamples:\n\n* Capture a fullscreen screenshot and copy the resulting URL to the primary X11\n selection::\n\n dont-puush-me -fp\n\n* Capture a rectangle from the screen (the rectangle is picked using the mouse;\n clicking without dragging selects the rectangle of the clicked window)::\n\n dont-puush-me -r\n\n The URL is printed to the terminal.\n\n* Capture a rectangle, do not apply optipng and display the URL in a window\n (requires zenity)::\n\n dont-puush-me --no-optipng -rz\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pubgit.sotecware.net/jonas.wielicki/dont_puush_me", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "dont_puush_me", "package_url": "https://pypi.org/project/dont_puush_me/", "platform": "", "project_url": "https://pypi.org/project/dont_puush_me/", "project_urls": { "Homepage": "https://pubgit.sotecware.net/jonas.wielicki/dont_puush_me" }, "release_url": "https://pypi.org/project/dont_puush_me/0.2/", "requires_dist": null, "requires_python": "", "summary": "A short script to upload screenshots to an SFTP server", "version": "0.2" }, "last_serial": 2489040, "releases": { "0.1": [], "0.2": [ { "comment_text": "", "digests": { "md5": "a2112c038c32937f76bbfcf1a28a471d", "sha256": "e0e5180c9109f6854c7ad39384def7848c9d385b11aa2703be4dc50251fcd829" }, "downloads": -1, "filename": "dont_puush_me-0.2.tar.gz", "has_sig": false, "md5_digest": "a2112c038c32937f76bbfcf1a28a471d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5141, "upload_time": "2016-11-29T07:17:03", "url": "https://files.pythonhosted.org/packages/94/98/79dec889bbaec7d2bdffdb71af65726dbbeaeca34210537bc578f06f0aa8/dont_puush_me-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2112c038c32937f76bbfcf1a28a471d", "sha256": "e0e5180c9109f6854c7ad39384def7848c9d385b11aa2703be4dc50251fcd829" }, "downloads": -1, "filename": "dont_puush_me-0.2.tar.gz", "has_sig": false, "md5_digest": "a2112c038c32937f76bbfcf1a28a471d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5141, "upload_time": "2016-11-29T07:17:03", "url": "https://files.pythonhosted.org/packages/94/98/79dec889bbaec7d2bdffdb71af65726dbbeaeca34210537bc578f06f0aa8/dont_puush_me-0.2.tar.gz" } ] }