{ "info": { "author": "dazuling", "author_email": "azuline@riseup.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# bubblegum\n\n[![Build Status](https://travis-ci.org/dazuling/bubblegum.svg?branch=master)](https://travis-ci.org/dazuling/bubblegum)\n[![Pypi](https://img.shields.io/pypi/v/bubblegum.svg)](https://pypi.python.org/pypi/bubblegum)\n[![Pyversions](https://img.shields.io/pypi/pyversions/bubblegum.svg)](https://pypi.python.org/pypi/bubblegum)\n\nbubblegum is a script to make and manage uploads to image hosts. Several image\nhosts are supported, to which one can directly upload images or rehost images\nby URL.\n\n## Usage\n\nBasic image uploading can be done via the `bubblegum upload` command. To upload\na local image file, run `bubblegum upload /path/to/image.png`. To rehost a URL,\nrun `bubblegum upload https://this.url.serves.an/image.png`.\n\nThe default image host is https://vgy.me, as it does not require client\nauthorization. The image host that will be used can be changed with the\n`--host` flag in the upload command, e.g. `bubblegum upload --host=imgur.com\n/path/to/image.png`. The default image host can also be changed in the config\nfile. Host options can be viewed with the `bubblegum upload --help` command.\n\nUploading/rehosting multiple images simultaneously is also supported, via\nmultiple arguments to the `upload` command. `bubblegum upload a.jpg b.png` will\nupload both images simultaneously. By default, 4 workers are spawned for image\nuploading. The number of workers can be increased or decreased in the config.\n\nA history of uploaded images can be viewed with `bubblegum history`. The\noutputted list can be manipulated with the `--sort`, `--limit` and `--offset`\noptions.\n\n### Config\n\nThe configuration can be edited with the `bubblegum config` command. A default\nconfiguration file is created when the script first runs.\n\n#### Image Host Profiles\n\nbubblegum includes loaded profiles for the following two hosts by default:\n\n- `imgur.com` (https://imgur.com)\n- `vgy.me` (https://vgy.me)\n\nOther image host profiles can be found in the `extra_profiles/` directory.\n\nImage host profiles can be created/added to the application by adding a profile\ndictionary to the list of `profiles` in your config file. Each profile must\ncontain 8 key/value pairs:\n\n- `image_host_name` - The name of the image host, for use with the `--host=`\n option.\n- `image_host_url` - The URL of the host's image uploading endpoint.\n- `request_headers` - Extra headers to include in the upload request.\n- `upload_form_file_argument` - The name of the key for the image file in the\n form.\n- `upload_form_data_argument` - A dictionary sent as the form data in a file\n upload.\n- `rehost_form_url_argument` - If the host supports URL rehosting, the name of\n the key for the URL in the form. Otherwise, set it to `null`.\n- `rehost_form_data_argument` - A dictionary sent as the form data in a URL\n rehost.\n- `json_response` - A boolean indicating whether or not the returned data is\n JSON or not. If True, the `data response` variable will be the deserialized\n JSON. If False, the `data` request response variable will be the response\n text.\n- `image_url_template` - A string of an f-string (yeah, sounds confusing) for\n the image URL. Can access the request response via the `data` variable.\n- `deletion_url_template` - A string of an f-string for the deletion URL. Can\n access the request response via the `data` variable.\n\n### Imgur\n\nTo upload to imgur, a Client ID must be created and supplied. Details on\ncreating a Client ID can be found at\nhttps://apidocs.imgur.com/#authorization-and-oauth. Once created, the Client ID\ncan be added to the config, as the `imgur_client_id`.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dazuling/bubblegum", "keywords": "image-uploader", "license": "Apache-2.0", "maintainer": "dazuling", "maintainer_email": "azuline@riseup.net", "name": "bubblegum", "package_url": "https://pypi.org/project/bubblegum/", "platform": "", "project_url": "https://pypi.org/project/bubblegum/", "project_urls": { "Homepage": "https://github.com/dazuling/bubblegum", "Repository": "https://github.com/dazuling/bubblegum" }, "release_url": "https://pypi.org/project/bubblegum/0.4.3/", "requires_dist": [ "click (>=7.0,<8.0)", "requests (>=2.0,<3.0)", "pyperclip (>=1.7,<2.0)", "appdirs (>=1.4,<2.0)" ], "requires_python": ">=3.6,<4.0", "summary": "A script to make and manage uploads to image hosts.", "version": "0.4.3" }, "last_serial": 5793856, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "998d1e6d33d1f354d8c02dc35fd63877", "sha256": "889e81943139aaad6707d695b64365ef8456b9bf64d81f6ce2fc01b5a7cea62a" }, "downloads": -1, "filename": "bubblegum-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "998d1e6d33d1f354d8c02dc35fd63877", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 10284, "upload_time": "2019-07-08T19:59:58", "url": "https://files.pythonhosted.org/packages/a7/d0/ca66bb88d275349eb926deba6d5dea28b43fe922b173337a650ff6e311f6/bubblegum-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8402b5e20b264823144fef6aab5620dd", "sha256": "be1b623d25ac203c05b3be2850735e45a4da262960390e28410474810a8944d5" }, "downloads": -1, "filename": "bubblegum-0.3.1.tar.gz", "has_sig": false, "md5_digest": "8402b5e20b264823144fef6aab5620dd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 9618, "upload_time": "2019-07-08T20:00:00", "url": "https://files.pythonhosted.org/packages/e8/7e/5be2956427cda6b3288e12300d555b42bc3dd5aef8d2f64161e0ad5cfc4d/bubblegum-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "8d978a0eb4d2d68c6aacf52e3b765784", "sha256": "474f3805fe488735f4905947e29394ae3c4bf1f64e0c2ed0e52918f4d6d1e24f" }, "downloads": -1, "filename": "bubblegum-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8d978a0eb4d2d68c6aacf52e3b765784", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 10291, "upload_time": "2019-07-09T23:00:56", "url": "https://files.pythonhosted.org/packages/97/9d/b84eaed14613df3fba009d4c2c5297564d9918ddbf79a462ef032a630b13/bubblegum-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59627675f791d3f0b3d52cb70baf6b20", "sha256": "b0062beb717e95b932664177c15de9e75a4bda8ac5070ca5830497dfcd14d64a" }, "downloads": -1, "filename": "bubblegum-0.4.0.tar.gz", "has_sig": false, "md5_digest": "59627675f791d3f0b3d52cb70baf6b20", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 9607, "upload_time": "2019-07-09T23:00:58", "url": "https://files.pythonhosted.org/packages/a5/6b/5e2e456b0b66544333bd07710231307f43bfee4a610779681e7ebbc73e20/bubblegum-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "a8e82c84a6a0e75be1ad20a59d333ed8", "sha256": "26deb8a764b28c4ce6ea182fc18bef3b956de5349554e92d27394c7753a116f5" }, "downloads": -1, "filename": "bubblegum-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a8e82c84a6a0e75be1ad20a59d333ed8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 13619, "upload_time": "2019-07-10T13:15:46", "url": "https://files.pythonhosted.org/packages/30/83/04b685ec3cde1f6927029658eaaf9e105e0d1d5014d19bec653fd0e2eb40/bubblegum-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4bf616069f9b9e970e6640d96b635673", "sha256": "d2539e8a3ae0b50068c68afb46df384b4149dca92c6ead32974cb140085f9ccc" }, "downloads": -1, "filename": "bubblegum-0.4.1.tar.gz", "has_sig": false, "md5_digest": "4bf616069f9b9e970e6640d96b635673", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 12826, "upload_time": "2019-07-10T13:15:47", "url": "https://files.pythonhosted.org/packages/1f/2b/f3f569fdc990a49a4e77bd5cdfe1181d75dac5012f7b2506f1337e38cec1/bubblegum-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "15d31acc3282771ec6d68e074b40a33c", "sha256": "27c33fb3a832f5758da23ffea1dc274b280caf1226177d506ef8a29b17fd1e37" }, "downloads": -1, "filename": "bubblegum-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "15d31acc3282771ec6d68e074b40a33c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 12761, "upload_time": "2019-07-31T15:55:50", "url": "https://files.pythonhosted.org/packages/b4/78/292f25cf3a06a773e1d9f60793fddc4b2a35dea1b93a4c20dd3959180e3a/bubblegum-0.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c5c9fc3571cde51289d698c07383c892", "sha256": "7a8eba07826a0fd01e524eecf7013c93f777465d152eb22c5783e6b62a5e9dbf" }, "downloads": -1, "filename": "bubblegum-0.4.2.tar.gz", "has_sig": false, "md5_digest": "c5c9fc3571cde51289d698c07383c892", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 12194, "upload_time": "2019-07-31T15:55:52", "url": "https://files.pythonhosted.org/packages/fd/6d/4940fec3db5891e98e914cd9746f2e654c119308a6dadf6a4b5ba757b333/bubblegum-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "91d8d91940bfcc08098bfb242ecdb606", "sha256": "abf2ae32a211126c6793d5f1aae9fba401e87d414e062e3e41bdb679dc5eaf0d" }, "downloads": -1, "filename": "bubblegum-0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "91d8d91940bfcc08098bfb242ecdb606", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 12760, "upload_time": "2019-08-10T04:22:21", "url": "https://files.pythonhosted.org/packages/85/96/1925f71f6ee037253f6ff1ba754f289065e43224742ab882e80d0551e142/bubblegum-0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a0e93c66a15600b829b8950b28436f4", "sha256": "7bfd4628a22be694d1f87d470746c50c6df078924ffa83e1ba907f9885ecfd6b" }, "downloads": -1, "filename": "bubblegum-0.4.3.tar.gz", "has_sig": false, "md5_digest": "5a0e93c66a15600b829b8950b28436f4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 12219, "upload_time": "2019-08-10T04:22:23", "url": "https://files.pythonhosted.org/packages/bc/fe/beeb7bda23ff1085fc310837f1dbeb71688e2d5edf4d68af585d1707deff/bubblegum-0.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "91d8d91940bfcc08098bfb242ecdb606", "sha256": "abf2ae32a211126c6793d5f1aae9fba401e87d414e062e3e41bdb679dc5eaf0d" }, "downloads": -1, "filename": "bubblegum-0.4.3-py3-none-any.whl", "has_sig": false, "md5_digest": "91d8d91940bfcc08098bfb242ecdb606", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 12760, "upload_time": "2019-08-10T04:22:21", "url": "https://files.pythonhosted.org/packages/85/96/1925f71f6ee037253f6ff1ba754f289065e43224742ab882e80d0551e142/bubblegum-0.4.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a0e93c66a15600b829b8950b28436f4", "sha256": "7bfd4628a22be694d1f87d470746c50c6df078924ffa83e1ba907f9885ecfd6b" }, "downloads": -1, "filename": "bubblegum-0.4.3.tar.gz", "has_sig": false, "md5_digest": "5a0e93c66a15600b829b8950b28436f4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 12219, "upload_time": "2019-08-10T04:22:23", "url": "https://files.pythonhosted.org/packages/bc/fe/beeb7bda23ff1085fc310837f1dbeb71688e2d5edf4d68af585d1707deff/bubblegum-0.4.3.tar.gz" } ] }