{"id":13765397,"url":"https://github.com/Amatobahn/FigmaPy","last_synced_at":"2025-05-10T21:31:00.677Z","repository":{"id":36283616,"uuid":"132765335","full_name":"Amatobahn/FigmaPy","owner":"Amatobahn","description":"An unofficial Python3+ wrapper for Figma API","archived":false,"fork":false,"pushed_at":"2023-01-14T00:32:26.000Z","size":203,"stargazers_count":47,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T16:08:48.266Z","etag":null,"topics":["api","figma","python","python3","webapi","wrapper-api"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amatobahn.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}},"created_at":"2018-05-09T14:01:52.000Z","updated_at":"2024-06-11T04:57:26.000Z","dependencies_parsed_at":"2023-01-17T00:08:05.892Z","dependency_job_id":null,"html_url":"https://github.com/Amatobahn/FigmaPy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amatobahn%2FFigmaPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amatobahn%2FFigmaPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amatobahn%2FFigmaPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amatobahn%2FFigmaPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amatobahn","download_url":"https://codeload.github.com/Amatobahn/FigmaPy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224989291,"owners_count":17403407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","figma","python","python3","webapi","wrapper-api"],"created_at":"2024-08-03T16:00:38.252Z","updated_at":"2024-11-17T01:31:05.604Z","avatar_url":"https://github.com/Amatobahn.png","language":"Python","funding_links":[],"categories":["Rest API integrations","七、Rest API 集成（优化描述，补充实用工具）"],"sub_categories":[],"readme":"\u003cp align=left\u003e\n  The PyPi package is currently behind on this repo! \n  \u003ca href=\"https://badge.fury.io/py/FigmaPy\"\u003e\n    \u003cimg src=\"https://badge.fury.io/py/FigmaPy.svg\" alt=\"PyPI version\" height=\"18\"\u003e\n  \u003c/a\u003e \n\u003c/p\u003e \n\nAn unofficial Python3+ wrapper for Figma API\n\n## Quick start\n\n```python\nimport figmapy\nimport pprint\n\ntoken = 'REPLACE_WITH_YOUR_TOKEN'  # can be found in your figma user profile page\nfile_key = 'REPLACE_WITH_YOUR_FILE_KEY'  # can be found in the URL of the file\nfigmaPy = figmapy.FigmaPy(token=token)\nfile = figmaPy.get_file(key=file_key)\n\nprint([x.name for x in file.document.children])\n# ['Page 1', 'Page 2']\n\npage1 = file.document.children[0]\nprint([x.name for x in page1.children])\n# ['myArrow', 'myGroup', 'myImage']\n\nids = [x.id for x in page1.children]\nprint(ids)\n# ['7:2', '7:6', '21:4']\n\nimages = figmaPy.get_file_images(file_key=file_key, ids=ids)\npprint.pprint(images.images)\n# {'21:4': 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/9bc9fdbd-REDACTED-2d1f31e9b57e',\n#  '7:2': 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/de2afe63d-REDACTED-8abc-9ca5b5f88ac8',\n#  '7:6': 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/f56d5d8dd-REDACTED-af17-461010e0af14'}\n```\n\n## Install\n##### From Source - most up to date code\n\nClone or download the repository, navigate to the root folder and run:\n```bash\npython setup.py install\n```\n\n\n#### From PyPI\n```bash\npip install FigmaPy\n```\n#### Using Distributed Wheel from GitHub:\n```bash\npip install FigmaPy-2018.1.0-py3-none-any.whl\n```\n\n\n## Documentation\nAPI Documentation : https://www.figma.com/developers/docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmatobahn%2FFigmaPy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAmatobahn%2FFigmaPy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmatobahn%2FFigmaPy/lists"}