{ "info": { "author": "softashell", "author_email": "foreturiga@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3" ], "description": "IQDB TAGGER\n===========\n\n.. image:: https://travis-ci.org/rachmadaniHaryono/iqdb_tagger.svg?branch=master\n :target: https://travis-ci.org/rachmadaniHaryono/iqdb_tagger\n\n.. image:: https://img.shields.io/badge/python-3-brightgreen.svg\n\nOverview\n--------\n\nGet result from iqdb.org from CLI using python3.\n\nFeature::\n\n - Written for python3\n - iqdb and danbooru.iqdb parser\n - Hydrus integration\n\n\nUsage\n-----\n\n\nUse as Hydrus as cli program\n````````````````````````````\n\nTo parse folder of images (e.g. in this example :code:`image_folder:`) and write tags to text file, use following command:\n\n.. code:: bash\n\n iqdb-tagger cli-run --resize --match-filter best-match --write-tags --input-mode folder image_folder\n\n\nUse as Hydrus iqdb script server\n````````````````````````````````\n1. Run :code:`iqdb-tagger run` and note the server address.\n\n To run it on `127.0.0.1` on port `5006`, run the following command:\n\n.. code:: bash\n\n `iqdb-tagger run -h 127.0.0.1 -p 5006`\n \n2. Import one of the parsing scripts below to Hydrus parsing scripts.\n3. Check the server address and edit it as needed.\n\nIQDB parsing script\n\n.. code:: json\n\n [32, \"local iqdb\", 2, [\"http://127.0.0.1:5006\", 1, 0, [55, 1, [[], \"some hash bytes\"]], \"file\", {\"place\": \"0\", \"resize\": \"on\"}, [[29, 1, [\"link\", [27, 5, [[[\"a\", {\"data-status\": \"best-match\", \"class\": \"img-match-detail\"}, null]], 0, \"href\", [51, 1, [3, \"\", null, null, \"example string\"]], [55, 1, [[], \"parsed information\"]]]], [[30, 2, [\"\", 0, [27, 5, [[[\"li\", {\"class\": \"tag-creator\"}, null]], 1, \"\", [51, 1, [3, \"\", null, null, \"example string\"]], [55, 1, [[], \"parsed information\"]]]], \"creator\"]], [30, 2, [\"\", 0, [27, 5, [[[\"li\", {\"class\": \"tag-series\"}, null]], 1, \"\", [51, 1, [3, \"\", null, null, \"example string\"]], [55, 1, [[], \"parsed information\"]]]], \"series\"]], [30, 2, [\"\", 0, [27, 5, [[[\"li\", {\"class\": \"tag-character\"}, null]], 1, \"\", [51, 1, [3, \"\", null, null, \"example string\"]], [55, 1, [[], \"parsed information\"]]]], \"character\"]], [30, 2, [\"\", 0, [27, 5, [[[\"li\", {\"class\": \"tag-general\"}, null]], 1, \"\", [51, 1, [3, \"\", null, null, \"example string\"]], [55, 1, [[], \"parsed information\"]]]], \"\"]]]]]]]]\n\nEvery uploaded and match history can be seen on Front page (in this case http://127.0.0.1:5006).\n\nUsing IQDB-tagger with Hydrus API\n`````````````````````````````````\n\nSet up your hydrus to get the access key, which will be used for this feature.\n\nInstall the required hydrus package \n\n.. code:: bash\n\n pip install https://gitlab.com/cryzed/hydrus-api/-/archive/master/hydrus-api-master.zip\n\n\nAfter that you can run the command below. For example to run the command with image tagged as 'thread:cat' on hydrus\n\n.. code:: bash\n\n # to get tags\n iqdb-tagger search-hydrus-and-send-tag --access-key 1234_your_access_key 'thread:cat'\n # to get matching urls\n iqdb-tagger search-hydrus-and-send-url --access-key 1234_your_access_key 'thread:cat'\n\nNote: hydrus version 349 have default bandwidth of 100 mb data per month,\nwhich may raise `ApiError` when the bandwidth reached.\n\nto fix it, go to `services` menu -> `manage services` -> client api and raise your bandwidth limit\n\nSetting Hydrus iqdb script server on NAS\n````````````````````````````````````````\n\nHere is example for Synology DS1817+ with DSM6.1.7 running on an Intel Atom C2538\n\n0. Make sure SSH is turned on in your control panel\n1. Install python 3 community package: https://synocommunity.com/package/python3\n2. Install pip3\n\n.. code:: bash\n\n install pip3 with:\n sudo -i\n wget https://bootstrap.pypa.io/get-pip.py\n python3 get-pip.py\n\n3. Install iqdb-tagger\n\n.. code:: bash\n\n cd /volume1/@appstore/py3k/usr/local/bin\n ./pip install iqdb_tagger\n\n3.1 Add `bin` folder to path (optional)\n\n.. code:: bash\n\n export PATH=$PATH:/volume1/@appstore/py3k/usr/local/bin \n\nThat command line above can also be put on `~/.bashrc`, so NAS will run it everytime user login.\n\nInstallation\n------------\n\nInstall it with from pypi\n\n.. code:: bash\n\n $ pip install iqdb_tagger\n\nOr install it manually\n\n.. code:: bash\n\n $ git clone https://github.com/softashell/iqdb_tagger.git\n $ cd iqdb_tagger\n # run the command below\n $ python setup.py install\n # for windows user: to force it using python3 run following command\n $ python -3 setup.py install\n # or\n $ pip install .\n\nIf you are in windows and get SyntaxError, check your python version.\nTo install under python3 follow the instruction on this link https://stackoverflow.com/a/18059129/1766261\n\nFAQ\n---\n\nlibxml error in Windows\n```````````````````````\n\nIf you are encounter this error on Windows\n\n.. code::\n\n Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?\n\nPlease follow this guide to install lxml: `StackOverflow - how to install lxml on windows?`_\n\nContributing\n------------\n\nTBD\n\nLicence\n-------\n\nThis project is licensed under the MIT License - see the LICENSE file for details\n\n\nAuthors\n-------\n\niqdb_tagger was written by softashell and maintained by Rachmadani Haryono\n\n.. _StackOverflow - how to install lxml on windows?: https://stackoverflow.com/questions/29440482/how-to-install-lxml-on-windows", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/softashell/iqdb_tagger/tarball/0.3.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/softashell/iqdb_tagger", "keywords": "", "license": "BSD", "maintainer": "Rachmadani Haryono", "maintainer_email": "foreturiga@gmail.com", "name": "iqdb-tagger", "package_url": "https://pypi.org/project/iqdb-tagger/", "platform": "", "project_url": "https://pypi.org/project/iqdb-tagger/", "project_urls": { "Download": "https://github.com/softashell/iqdb_tagger/tarball/0.3.1", "Homepage": "https://github.com/softashell/iqdb_tagger" }, "release_url": "https://pypi.org/project/iqdb-tagger/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "Get result from iqdb.org.", "version": "0.3.1" }, "last_serial": 5586261, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "807cff2f836d2ace754d7bffe77f231b", "sha256": "341d5e03c4fb2aa0780887cc6802883466553235a79bd371ed5f1aa7d8e2890e" }, "downloads": -1, "filename": "iqdb_tagger-0.1.0.tar.gz", "has_sig": false, "md5_digest": "807cff2f836d2ace754d7bffe77f231b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15736, "upload_time": "2018-02-26T00:11:05", "url": "https://files.pythonhosted.org/packages/66/04/35128e5040a3790302ef71bd02a338e8f77b5a02012256e6d99c74b86f32/iqdb_tagger-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5c7699b6d95a5d3a959a73208ddc37a6", "sha256": "18ba7ef116cdf8cf09fb16d783f5387790491a744da5217fb51e76f3a816cf58" }, "downloads": -1, "filename": "iqdb_tagger-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5c7699b6d95a5d3a959a73208ddc37a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16585, "upload_time": "2018-03-31T09:28:34", "url": "https://files.pythonhosted.org/packages/a1/4e/8b3a385262e301144cc3cf6243b9f3152012bb55a6b7f43c84b89a4507d4/iqdb_tagger-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e222ce25e457e55f41485474bc9d270b", "sha256": "6dcf96d4d3be45dee7ffe341f68717c5db1a4f1344437d0e1afec10d4a2b0ae1" }, "downloads": -1, "filename": "iqdb_tagger-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e222ce25e457e55f41485474bc9d270b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17027, "upload_time": "2018-05-31T03:32:39", "url": "https://files.pythonhosted.org/packages/99/84/9a20fa7ba57f7159ec8fbd51165551826e3cecbec10e5fa274fb89515ccc/iqdb_tagger-0.2.1.tar.gz" } ], "0.2.2.post1": [ { "comment_text": "", "digests": { "md5": "0307bd27cdc6a09793c6ea4f607cf71a", "sha256": "7102c1952e1dbed4996ad81bef12b3dc43ab5cafec09c274e3faf4552ca36580" }, "downloads": -1, "filename": "iqdb_tagger-0.2.2.post1.tar.gz", "has_sig": false, "md5_digest": "0307bd27cdc6a09793c6ea4f607cf71a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17806, "upload_time": "2018-07-01T12:01:32", "url": "https://files.pythonhosted.org/packages/db/21/964342bf2252907978583d357fa750b076625b5cc1bf16cb2c5420b986ec/iqdb_tagger-0.2.2.post1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "37cf1e0520a2dbb95ce661c8d1f76bd1", "sha256": "c5d6c4c83826eed67bc8498f0641cd419027497b0ce18db321d510ab859e9826" }, "downloads": -1, "filename": "iqdb_tagger-0.3.0.tar.gz", "has_sig": false, "md5_digest": "37cf1e0520a2dbb95ce661c8d1f76bd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20261, "upload_time": "2019-04-30T04:40:27", "url": "https://files.pythonhosted.org/packages/4c/6c/b86439fcee1b446f8f9dbdfbddd2acb3ac405268148c88a5d56ac741e646/iqdb_tagger-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "e069a56e4a8ce98dd109b2c4f5c369c4", "sha256": "f33e30ecf6c1855f0669c959153bb0ed5cf64757bf17237ba1550d50965003fd" }, "downloads": -1, "filename": "iqdb_tagger-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e069a56e4a8ce98dd109b2c4f5c369c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20340, "upload_time": "2019-07-26T00:40:48", "url": "https://files.pythonhosted.org/packages/5a/35/8e21dfeb0a670209a31a9d51ae7ac05c9921ce29cadaf3f07b8a7a4b17e9/iqdb_tagger-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e069a56e4a8ce98dd109b2c4f5c369c4", "sha256": "f33e30ecf6c1855f0669c959153bb0ed5cf64757bf17237ba1550d50965003fd" }, "downloads": -1, "filename": "iqdb_tagger-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e069a56e4a8ce98dd109b2c4f5c369c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20340, "upload_time": "2019-07-26T00:40:48", "url": "https://files.pythonhosted.org/packages/5a/35/8e21dfeb0a670209a31a9d51ae7ac05c9921ce29cadaf3f07b8a7a4b17e9/iqdb_tagger-0.3.1.tar.gz" } ] }