pysanejs


Namepysanejs JSON
Version 2.0.2 PyPI version JSON
download
home_pagehttps://github.com/CIRCL/PySaneJS
SummaryPython client for SaneJS
upload_time2023-08-17 12:34:15
maintainer
docs_urlNone
authorRaphaël Vinot
requires_python>=3.8,<4.0
licenseAGPL-3.0-or-later
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            PySaneJS
========

This is a simple python module to query [SaneJS](https://github.com/CIRCL/sanejs),
a project that uses [CDNJS](https://github.com/cdnjs/cdnjs) as a source of known JavaScript libraries.

# CLI usage

It is not super useful to use it like that, but you can give it a try:

```bash
# You can pass a list of sha512
sanejs --sha512 908a25a227d1d6dd4397ddbf8ed19d58d092edd11f7dfbe89385e1f340211aed0ef7777edae3d3c1824f410949b7b9373753b83a3178b0f656fb97424bb20bc2
```

```json
{
  "response": [
    "dojo|1.11.0-rc3|resources/dnd.css",
    "dojo|1.9.3|resources/dnd.css",
    "dojo|1.8.10|resources/dnd.css",
    "dojo|1.10.0|resources/dnd.css",
    "dojo|1.9.1|resources/dnd.css",
    "dojo|1.10.2|resources/dnd.css",
    "dojo|1.9.7|resources/dnd.css",
    "dojo|1.8.9|resources/dnd.css",
    "dojo|1.10.1|resources/dnd.css",
    "dojo|1.11.0-rc4|resources/dnd.css",
    "dojo|1.8.2|resources/dnd.css",
    "dojo|1.10.4|resources/dnd.css",
    "dojo|1.8.8|resources/dnd.css",
    "dojo|1.9.6|resources/dnd.css",
    "dojo|1.8.0|resources/dnd.css",
    "dojo|1.11.0-rc5|resources/dnd.css",
    "dojo|1.8.6|resources/dnd.css",
    "dojo|1.9.5|resources/dnd.css",
    "dojo|1.8.1|resources/dnd.css",
    "dojo|1.10.3|resources/dnd.css",
    "dojo|1.8.5|resources/dnd.css",
    "dojo|1.8.3|resources/dnd.css",
    "dojo|1.9.4|resources/dnd.css",
    "dojo|1.9.0|resources/dnd.css",
    "dojo|1.9.2|resources/dnd.css",
    "dojo|1.11.0-rc1|resources/dnd.css",
    "dojo|1.8.4|resources/dnd.css",
    "dojo|1.8.7|resources/dnd.css",
    "dojo|1.11.0-rc2|resources/dnd.css"
  ]
}
```


```bash
sanejs --library jquery-tools  # You can pass a list of tools
```

```json
{
  "response": {
    "jquery-tools": {
      "1.2.0": {
        "jquery.tools.min.js": "f95c034c328d7c3f5bd14e0fd82a9309ab197931ff41120ca8d749036f5a773092dc0f357b190570754f5a17d7a42a71b932793a54b0ec812eef3730ddc93dc9"
      },
      "1.2.1": {
        "jquery.tools.min.js": "ba386f0827c971277c3f6941c58f9dbc410f668b272201127ee38377f57a8ec37c2cb415089cb12205c6ed2c339bf6f5a7d20c6259ae1f55337154257a398204"
      },
      "1.2.2": {
        "jquery.tools.min.js": "b40b56d553cb23c7fb607f31118ba7c2ae1058308795d5b0f6d42025c7aa3f9f2b5fbb3be4c8734cf6f8f2c3dd202aca79de14d7a54d448bbe34c8198b94fc96"
      },
      "1.2.3": {
        "jquery.tools.min.js": "597bb3566588ba0ec2c7fce0f4449022be687878d5c04113526503a0e77b79755c33a9ba1ad6ef8232a4a51b98b7a8b287caba7db699b4374a53370fb51f859d"
      },
      "1.2.4": {
        "jquery.tools.min.js": "1dbcb177bf7b28c72d3b54aa71befa5a6d91e35c1df702a1991c9df7e60aa3efcd59bbdb8fb0a61326c3ebfe046c809ea01030c3fd8de4b90668e2aee778d968"
      },
      "1.2.5": {
        "jquery.tools.min.js": "d91fdfc6cb7529493182d3c7ea12eb6cb3323060434bfd4c98c95c9f223fa97cff9a9254c5655b51818491d9de9f53ba3df1b5cbd1a20ed0dce683829b75db6a"
      },
      "1.2.6": {
        "jquery.tools.min.js": "f8be2202d8ff862849e19562ba93e2743027298d9fc908191ca48978458a7053c584c581f44f37b8a595ce9262fbda1b5bea83330dd3366fc2c44a172e286f96"
      },
      "1.2.7": {
        "jquery.tools.min.js": "b15d794a0289980a2dcffe70eb5ecaf42e2a3785a3dd8324f577fae7e8f381098fa9f8f048f6f0c1029d584d618ff5a30c6112a9baa1e1809f2ffb4781373e11"
      }
    }
  }
}
```

**Note**: As long as the hashes aren't loaded, every query will return the following:

```json
{
  "error": "The hashes are not all loaded yet, try again later."
}
```

When they're all loaded, the repository will be pulled on a regilar basis and load the new hashes.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CIRCL/PySaneJS",
    "name": "pysanejs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Rapha\u00ebl Vinot",
    "author_email": "raphael@vinot.info",
    "download_url": "https://files.pythonhosted.org/packages/67/01/27d20a89fa9828e960d29a0f87681659c991074b54a60f3fe089b67bf9d6/pysanejs-2.0.2.tar.gz",
    "platform": null,
    "description": "PySaneJS\n========\n\nThis is a simple python module to query [SaneJS](https://github.com/CIRCL/sanejs),\na project that uses [CDNJS](https://github.com/cdnjs/cdnjs) as a source of known JavaScript libraries.\n\n# CLI usage\n\nIt is not super useful to use it like that, but you can give it a try:\n\n```bash\n# You can pass a list of sha512\nsanejs --sha512 908a25a227d1d6dd4397ddbf8ed19d58d092edd11f7dfbe89385e1f340211aed0ef7777edae3d3c1824f410949b7b9373753b83a3178b0f656fb97424bb20bc2\n```\n\n```json\n{\n  \"response\": [\n    \"dojo|1.11.0-rc3|resources/dnd.css\",\n    \"dojo|1.9.3|resources/dnd.css\",\n    \"dojo|1.8.10|resources/dnd.css\",\n    \"dojo|1.10.0|resources/dnd.css\",\n    \"dojo|1.9.1|resources/dnd.css\",\n    \"dojo|1.10.2|resources/dnd.css\",\n    \"dojo|1.9.7|resources/dnd.css\",\n    \"dojo|1.8.9|resources/dnd.css\",\n    \"dojo|1.10.1|resources/dnd.css\",\n    \"dojo|1.11.0-rc4|resources/dnd.css\",\n    \"dojo|1.8.2|resources/dnd.css\",\n    \"dojo|1.10.4|resources/dnd.css\",\n    \"dojo|1.8.8|resources/dnd.css\",\n    \"dojo|1.9.6|resources/dnd.css\",\n    \"dojo|1.8.0|resources/dnd.css\",\n    \"dojo|1.11.0-rc5|resources/dnd.css\",\n    \"dojo|1.8.6|resources/dnd.css\",\n    \"dojo|1.9.5|resources/dnd.css\",\n    \"dojo|1.8.1|resources/dnd.css\",\n    \"dojo|1.10.3|resources/dnd.css\",\n    \"dojo|1.8.5|resources/dnd.css\",\n    \"dojo|1.8.3|resources/dnd.css\",\n    \"dojo|1.9.4|resources/dnd.css\",\n    \"dojo|1.9.0|resources/dnd.css\",\n    \"dojo|1.9.2|resources/dnd.css\",\n    \"dojo|1.11.0-rc1|resources/dnd.css\",\n    \"dojo|1.8.4|resources/dnd.css\",\n    \"dojo|1.8.7|resources/dnd.css\",\n    \"dojo|1.11.0-rc2|resources/dnd.css\"\n  ]\n}\n```\n\n\n```bash\nsanejs --library jquery-tools  # You can pass a list of tools\n```\n\n```json\n{\n  \"response\": {\n    \"jquery-tools\": {\n      \"1.2.0\": {\n        \"jquery.tools.min.js\": \"f95c034c328d7c3f5bd14e0fd82a9309ab197931ff41120ca8d749036f5a773092dc0f357b190570754f5a17d7a42a71b932793a54b0ec812eef3730ddc93dc9\"\n      },\n      \"1.2.1\": {\n        \"jquery.tools.min.js\": \"ba386f0827c971277c3f6941c58f9dbc410f668b272201127ee38377f57a8ec37c2cb415089cb12205c6ed2c339bf6f5a7d20c6259ae1f55337154257a398204\"\n      },\n      \"1.2.2\": {\n        \"jquery.tools.min.js\": \"b40b56d553cb23c7fb607f31118ba7c2ae1058308795d5b0f6d42025c7aa3f9f2b5fbb3be4c8734cf6f8f2c3dd202aca79de14d7a54d448bbe34c8198b94fc96\"\n      },\n      \"1.2.3\": {\n        \"jquery.tools.min.js\": \"597bb3566588ba0ec2c7fce0f4449022be687878d5c04113526503a0e77b79755c33a9ba1ad6ef8232a4a51b98b7a8b287caba7db699b4374a53370fb51f859d\"\n      },\n      \"1.2.4\": {\n        \"jquery.tools.min.js\": \"1dbcb177bf7b28c72d3b54aa71befa5a6d91e35c1df702a1991c9df7e60aa3efcd59bbdb8fb0a61326c3ebfe046c809ea01030c3fd8de4b90668e2aee778d968\"\n      },\n      \"1.2.5\": {\n        \"jquery.tools.min.js\": \"d91fdfc6cb7529493182d3c7ea12eb6cb3323060434bfd4c98c95c9f223fa97cff9a9254c5655b51818491d9de9f53ba3df1b5cbd1a20ed0dce683829b75db6a\"\n      },\n      \"1.2.6\": {\n        \"jquery.tools.min.js\": \"f8be2202d8ff862849e19562ba93e2743027298d9fc908191ca48978458a7053c584c581f44f37b8a595ce9262fbda1b5bea83330dd3366fc2c44a172e286f96\"\n      },\n      \"1.2.7\": {\n        \"jquery.tools.min.js\": \"b15d794a0289980a2dcffe70eb5ecaf42e2a3785a3dd8324f577fae7e8f381098fa9f8f048f6f0c1029d584d618ff5a30c6112a9baa1e1809f2ffb4781373e11\"\n      }\n    }\n  }\n}\n```\n\n**Note**: As long as the hashes aren't loaded, every query will return the following:\n\n```json\n{\n  \"error\": \"The hashes are not all loaded yet, try again later.\"\n}\n```\n\nWhen they're all loaded, the repository will be pulled on a regilar basis and load the new hashes.\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "Python client for SaneJS",
    "version": "2.0.2",
    "project_urls": {
        "Homepage": "https://github.com/CIRCL/PySaneJS",
        "Repository": "https://github.com/CIRCL/PySaneJS"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9688422b8469d0a2534099b1f075280262a4d4ca0b19d5f3f136b3b3cfbb8754",
                "md5": "b801f959e2b9e94ef58a8e81c44da58f",
                "sha256": "6cdf462633823979486e721c9cf5c60a814ea949ff7392ae7aed823b35fc2166"
            },
            "downloads": -1,
            "filename": "pysanejs-2.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b801f959e2b9e94ef58a8e81c44da58f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 5266,
            "upload_time": "2023-08-17T12:34:13",
            "upload_time_iso_8601": "2023-08-17T12:34:13.524492Z",
            "url": "https://files.pythonhosted.org/packages/96/88/422b8469d0a2534099b1f075280262a4d4ca0b19d5f3f136b3b3cfbb8754/pysanejs-2.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "670127d20a89fa9828e960d29a0f87681659c991074b54a60f3fe089b67bf9d6",
                "md5": "9e3aaf9e9b776884fc941782dc25d0ed",
                "sha256": "7100009f059dce496cb1945dc31587e3bdf617b4ce68ebaccf9c59e16fe47b52"
            },
            "downloads": -1,
            "filename": "pysanejs-2.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "9e3aaf9e9b776884fc941782dc25d0ed",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 4444,
            "upload_time": "2023-08-17T12:34:15",
            "upload_time_iso_8601": "2023-08-17T12:34:15.398728Z",
            "url": "https://files.pythonhosted.org/packages/67/01/27d20a89fa9828e960d29a0f87681659c991074b54a60f3fe089b67bf9d6/pysanejs-2.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-17 12:34:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CIRCL",
    "github_project": "PySaneJS",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pysanejs"
}
        
Elapsed time: 0.10170s