{ "info": { "author": "theirix", "author_email": "theirix@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Topic :: Utilities" ], "description": "===============\nptpimg_uploader\n===============\n\nUpload image file or image URL to the ptpimg.me image hosting.\n\n\nInstallation\n------------\n\nUsing pip:\n\n pip install ptpimg_uploader\n\nUsing setup.py:\n\n python setup.py install\n\nManually:\n\n Install python3 package requests (usually apt-get install python3-requests or pip3 install requests).\n\n If you want clipboard support, install pyperclip too.\n\n Run the script from the command line with python3 ptimg_uploader.py\n\n\nAPI key\n-------\n\nTo find your PTPImg API key, login to https://ptpimg.me, open the page source\n(i.e. \"View->Developer->View source\" menu in Chrome), find the string api_key\nand copy the hexademical string from the value attribute. Your API key should\nlook like 43fe0fee-f935-4084-8a38-3e632b0be68c.\n\nYou can export your ptpimg.me API key (usually in .bashrc or .zshenv) using:\n\n export PTPIMG_API_KEY=\n\nor use the -k / --api-key command-line switch.\n\nHow to use\n----------\n\nRun\n\n ptpimg_uploader -h\n\nto get command-line help.\n\nTo upload an image file:\n\n ptpimg_uploader ~/seed/mytorrent/folder.jpg\n\nTo rehost an imgur image:\n\n ptpimg_uploader https://i.imgur.com/eaT6j3X.jpg\n\nAn uploaded URL will be printed to the console.\n\nIf pyperclip python package is installed, the URL will be additionally copied to the clipboard.\n\nYou can specify multiple files and URLs on the command line:\n\n ptpimg_uploader ~/seed/mytorrent/folder.jpg https://i.imgur.com/eaT6j3X.jpg\n\nThe resulting URLs are printed each on separate line, and copied to your\nclipboard with newlines in between.\n\nLicense\n-------\n\nBSD\n\nAcknowledgments\n---------------\n\n * mjpieters - a great refactoring and Python packaging", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/theirix/ptpimg-uploader", "keywords": "image uploader", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "ptpimg-uploader", "package_url": "https://pypi.org/project/ptpimg-uploader/", "platform": "", "project_url": "https://pypi.org/project/ptpimg-uploader/", "project_urls": { "Homepage": "https://github.com/theirix/ptpimg-uploader" }, "release_url": "https://pypi.org/project/ptpimg-uploader/0.1/", "requires_dist": null, "requires_python": "", "summary": "PTPImg uploader, handles local files and URLs, from the commandline", "version": "0.1" }, "last_serial": 3000413, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "2ab0aee4098d853d379473a9a56b783b", "sha256": "172c417de1e739953abbaa4df7681317e3853ceef02468428546f0fd66b6d418" }, "downloads": -1, "filename": "ptpimg_uploader-0.1.tar.gz", "has_sig": false, "md5_digest": "2ab0aee4098d853d379473a9a56b783b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3717, "upload_time": "2017-07-05T06:55:06", "url": "https://files.pythonhosted.org/packages/76/3c/be97eff6dc788d4630efe028667f980be9dd75b7f191fd31fc349b787764/ptpimg_uploader-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2ab0aee4098d853d379473a9a56b783b", "sha256": "172c417de1e739953abbaa4df7681317e3853ceef02468428546f0fd66b6d418" }, "downloads": -1, "filename": "ptpimg_uploader-0.1.tar.gz", "has_sig": false, "md5_digest": "2ab0aee4098d853d379473a9a56b783b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3717, "upload_time": "2017-07-05T06:55:06", "url": "https://files.pythonhosted.org/packages/76/3c/be97eff6dc788d4630efe028667f980be9dd75b7f191fd31fc349b787764/ptpimg_uploader-0.1.tar.gz" } ] }