{"id":16538628,"url":"https://github.com/spyoungtech/ahk-json","last_synced_at":"2026-02-18T10:38:03.879Z","repository":{"id":190068347,"uuid":"681853205","full_name":"spyoungtech/ahk-json","owner":"spyoungtech","description":"Autohotkey-JSON extension for Python ahk","archived":false,"fork":false,"pushed_at":"2023-09-24T22:34:01.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T00:47:53.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spyoungtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-22T22:50:57.000Z","updated_at":"2024-07-08T15:21:25.000Z","dependencies_parsed_at":"2024-11-19T21:47:21.905Z","dependency_job_id":null,"html_url":"https://github.com/spyoungtech/ahk-json","commit_stats":null,"previous_names":["spyoungtech/ahk-json"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/spyoungtech/ahk-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyoungtech%2Fahk-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyoungtech%2Fahk-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyoungtech%2Fahk-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyoungtech%2Fahk-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spyoungtech","download_url":"https://codeload.github.com/spyoungtech/ahk-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyoungtech%2Fahk-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:46:12.459Z","updated_at":"2026-02-18T10:38:02.827Z","avatar_url":"https://github.com/spyoungtech.png","language":"AutoHotkey","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ahk-json\n\nThis is an extension package intended to be used with the Python [ahk](https://github.com/spyoungtech/ahk) package.\n\nIt provides interfaces from [cocobelgica/AutoHotkey-JSON](https://github.com/cocobelgica/AutoHotkey-JSON) for\nworking with JSON in AutoHotkey. The extensions in this package do not provide any additional methods,\nbut simply provide a convenient way to include `Jxon.ahk` and/or `JSON.ahk` into other extensions.\n\nThis package provides two extensions: `JXON` and `JSON`. It also registers a JSON message type (`ahk_json.message.JsonResponseMessage`)\n\n## Installation\n\nInstall this extension using `pip`\n\n```python\npip install ahk-json\n```\n\n# Usage\n\nTypically, you use this as a dependency when building your own extensions.\n\nIn the following example, a simple extension (`my_extension`) is created. It implements an AHK function `MyTestFunction`\n-- the registered to the extension using the Python function `my_test_function`.\n```python\nfrom ahk.extensions import Extension\nfrom ahk import AHK\n\nfrom ahk_json import JXON  # importing is necessary for ``extensions='auto'`` to work, even if this is not used\n\next_script = '''\\\nMyTestFunction(ByRef command) {\n    arg := command[2]\n    obj := Object(\"test\", arg)\n    res := Jxon_Dump(obj) ; this is available thanks to the extension\n    return FormatResponse(\"ahk_json.message.JsonResponseMessage\", res)\n}\n'''\n\nmy_extension = Extension(script_text=ext_script)\n\n@my_extension.register\ndef my_test_function(ahk: AHK, arg: str):\n    return ahk.function_call('MyTestFunction', [arg])\n\n\ndef main():\n    ahk = AHK(extensions='auto')  # automatically use all imported/created extensions\n    # or use the extensions explicitly:\n    # ahk = AHK(extensions=[JXON, my_extension])\n\n    # now ``.my_test_function`` is a method on the `ahk` instance:\n    assert ahk.my_test_function('foo') == {'test': 'foo'}\n```\n\n\n# License\n\nThis work is licensed under the MIT license.\n\nThis package includes substantial portions of the [original AutoHotkey-JSON](https://github.com/cocobelgica/AutoHotkey-JSON).\nThe code included from AutoHotkey-JSON is owned and copyrighted by its original author(s) and is used/redistributed\nunder the terms of the [WTFPL](http://www.wtfpl.net).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyoungtech%2Fahk-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyoungtech%2Fahk-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyoungtech%2Fahk-json/lists"}