{ "info": { "author": "Cerulean", "author_email": "cerulean.connor@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Pomf.py\nPomf.se uploader made in Python3.5+.\n\nThis script makes it so you can upload to any pomf.se site, only requiring the url of the site. The script is also small enough to be taken wherever you need it to go, only taking up a single file. This script also needs `requests` but seeing as thats such a widely installed module, i dont think anyone DOESNT have it installed!\n\n## Getting started\nTo get started with pomf.py first you must have Python 3.5 or higher as it makes use of asyncio. There is a non-async version you can download in the Github if you want to use it on anything below Python3.5. \n\n```py\n\nimport pomf\n# select a host via get_host.\nhost = pomf.get_host('mixtape')\n\n# you dont need anything other than a file\n# to upload to the host\nret = host.upload(open('hearts.png', 'rb'))\n# {'hash': 'f6bb5ef07fe63759ecfac1c81193c5912b96c45b', 'name': 'hearts.png', 'url': 'https://my.mixtape.moe/hsoali.png', 'size': 25553}\n\n# if you want to add a host:\nnew_host = pomf.add_host('mixtape2', 'https://mixtape.moe')\n\n```\n\n### Asyncio Support\nIf you want to use pomf.py with asyncio, you can add a `_async` to the upload that will return a coroutine:\n```py\nawait host.upload_async(open('hearts.png', 'rb'))\n# {'hash': 'f6bb5ef07fe63759ecfac1c81193c5912b96c45b', 'name': 'hearts.png', 'url': 'https://my.mixtape.moe/hsoali.png', 'size': 25553}\n```\n\n### Pre-installed Hosts\nHere are the hosts that are ready to be used with the script out of the box. \n```py\n# mixtape - https://mixtape.moe\npomf.get_host('mixtape')\n# safe - https://safe.moe\npomf.get_host('safe')\n# void - https://void.cat\npomf.get_host('void')\n```\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AggressivelyMeows/Pomf.py", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pomf", "package_url": "https://pypi.org/project/pomf/", "platform": "", "project_url": "https://pypi.org/project/pomf/", "project_urls": { "Homepage": "https://github.com/AggressivelyMeows/Pomf.py" }, "release_url": "https://pypi.org/project/pomf/0.6/", "requires_dist": null, "requires_python": "", "summary": "Pomf.se clone uploader", "version": "0.6" }, "last_serial": 3927549, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "04bd189dcae4dde7df9476b36a3a7a3e", "sha256": "f1245175c8edd8831213059a3983ee0b08d68f4ac5593302392292ffe82de815" }, "downloads": -1, "filename": "pomf-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "04bd189dcae4dde7df9476b36a3a7a3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5114, "upload_time": "2018-06-04T09:55:59", "url": "https://files.pythonhosted.org/packages/88/ea/a372d744ac947bcaeb4c2a953237bf0d290a33c12dac7884a1cc22210fc1/pomf-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecfa7aaf1549f6195a29754afbdcf096", "sha256": "69981f9c23a11023a82f5f50146379558347e5084412caf606fd450f7e722cd5" }, "downloads": -1, "filename": "pomf-0.5.tar.gz", "has_sig": false, "md5_digest": "ecfa7aaf1549f6195a29754afbdcf096", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3137, "upload_time": "2018-06-04T09:56:00", "url": "https://files.pythonhosted.org/packages/06/7c/d4bf88e1b149449e8bc621f99dda2ad831b62ef89876fb494e6f0fde47b6/pomf-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "642a49d179bce3c33f342567267f7d19", "sha256": "38e221197659da41ed7c67f2c537275afc3d9a7e921ab5973fce5eebc7786ef9" }, "downloads": -1, "filename": "pomf-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "642a49d179bce3c33f342567267f7d19", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6633, "upload_time": "2018-06-04T10:12:07", "url": "https://files.pythonhosted.org/packages/5f/8e/ec04126a60617920077737fe4b847da0988ea336ec801eae174bfdcd6f18/pomf-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4ca7122be92cbe1dacc256c03dd20213", "sha256": "127e62d3f654797dd42091169ba0f1aefee0a088a78e5201fdbb0f305bfae0a7" }, "downloads": -1, "filename": "pomf-0.6.tar.gz", "has_sig": false, "md5_digest": "4ca7122be92cbe1dacc256c03dd20213", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3148, "upload_time": "2018-06-04T10:12:10", "url": "https://files.pythonhosted.org/packages/de/78/a616fe927ac2319994ecff96ebafd07c51169232370935cbd03498a0ce9d/pomf-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "642a49d179bce3c33f342567267f7d19", "sha256": "38e221197659da41ed7c67f2c537275afc3d9a7e921ab5973fce5eebc7786ef9" }, "downloads": -1, "filename": "pomf-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "642a49d179bce3c33f342567267f7d19", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6633, "upload_time": "2018-06-04T10:12:07", "url": "https://files.pythonhosted.org/packages/5f/8e/ec04126a60617920077737fe4b847da0988ea336ec801eae174bfdcd6f18/pomf-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4ca7122be92cbe1dacc256c03dd20213", "sha256": "127e62d3f654797dd42091169ba0f1aefee0a088a78e5201fdbb0f305bfae0a7" }, "downloads": -1, "filename": "pomf-0.6.tar.gz", "has_sig": false, "md5_digest": "4ca7122be92cbe1dacc256c03dd20213", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3148, "upload_time": "2018-06-04T10:12:10", "url": "https://files.pythonhosted.org/packages/de/78/a616fe927ac2319994ecff96ebafd07c51169232370935cbd03498a0ce9d/pomf-0.6.tar.gz" } ] }