All Projects → Amatobahn → FigmaPy

Amatobahn / FigmaPy

Licence: Apache-2.0 license
An unofficial Python3+ wrapper for Figma API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to FigmaPy

RTLPLZ
Plugin for Figma to write RTL text
Stars: ✭ 30 (+57.89%)
Mutual labels:  figma
react-figma-ui
🏗️ React implementation for figma-plugin-ds
Stars: ✭ 25 (+31.58%)
Mutual labels:  figma
python-gerrit-api
Python wrapper for the Gerrit REST API.
Stars: ✭ 6 (-68.42%)
Mutual labels:  wrapper-api
Design-Resources
A curated list of design resources from design templates, stock photos, icons, colors, and much more.
Stars: ✭ 943 (+4863.16%)
Mutual labels:  figma
activecampaign-python
ActiveCampaign API wrapper written in python.
Stars: ✭ 25 (+31.58%)
Mutual labels:  wrapper-api
RESTvsGRPC
Evaluating Performance of REST vs. gRPC
Stars: ✭ 36 (+89.47%)
Mutual labels:  webapi
mailerlite-api-python
Python wrapper for Mailerlite API v2
Stars: ✭ 31 (+63.16%)
Mutual labels:  wrapper-api
awesome-flutter-ui
10+ flutter(android, ios) UI design examples ⚡ - login, books, profile, food order, movie streaming, walkthrough, widgets
Stars: ✭ 848 (+4363.16%)
Mutual labels:  figma
ApiDmS
Open Source Document Management System.
Stars: ✭ 16 (-15.79%)
Mutual labels:  webapi
CotacaoMonetariaBot
Chatbot para cotação de algumas moedas estrangeiras para o Real (BRL).
Stars: ✭ 27 (+42.11%)
Mutual labels:  webapi
designto-code
Design to code engine. A design ✌️ code standard. Supports React, Flutter and more.
Stars: ✭ 87 (+357.89%)
Mutual labels:  figma
Wiggles-iOS
Beautiful Puppy adoption app built to Demonstrate the SwiftUI and MVVM Architecture
Stars: ✭ 174 (+815.79%)
Mutual labels:  figma
figma-plugin-typescript-boilerplate
Figma plugin TypeScript boilerplate to start developing right away
Stars: ✭ 43 (+126.32%)
Mutual labels:  figma
Beetle.js
🪲 Javascript ORM, manage your data easily.
Stars: ✭ 53 (+178.95%)
Mutual labels:  webapi
ZestX-Frontend
Month-Long Fest Website ZestX with some Awsome UI and Intact Backend. Implemented admin page for user and event management
Stars: ✭ 28 (+47.37%)
Mutual labels:  figma
Beef
Business Entity Execution Framework
Stars: ✭ 95 (+400%)
Mutual labels:  webapi
plugin-typings
Typings for the Figma Plugin API
Stars: ✭ 91 (+378.95%)
Mutual labels:  figma
WebApiWithBackgroundWorker
Small demo showing how to implement Pub/Sub with a BackgroundWorker in .NET Core
Stars: ✭ 55 (+189.47%)
Mutual labels:  webapi
ms-identity-javascript-react-spa-dotnetcore-webapi-obo
A React & Redux single-page application that authorizes an ASP.NET Core web API to call MS Graph API on-behalf-of a signed-in user.
Stars: ✭ 62 (+226.32%)
Mutual labels:  webapi
dotnet-webapi-boilerplate
Clean Architecture Template for .NET 6.0 WebApi built with Multitenancy Support.
Stars: ✭ 2,200 (+11478.95%)
Mutual labels:  webapi

PyPI version

An unofficial Python3+ wrapper for Figma API

Quick start

import FigmaPy
import pprint

token = 'REPLACE_WITH_YOUR_TOKEN'  # can be found in your figma user profile page
file_key = 'REPLACE_WITH_YOUR_FILE_KEY'  # can be found in the URL of the file
figmaPy = FigmaPy.FigmaPy(token=token)
file = figmaPy.get_file(key=file_key)

print([x.name for x in file.document.children])
# ['Page 1', 'Page 2']

page1 = file.document.children[0]
print([x.name for x in page1.children])
# ['myArrow', 'myGroup', 'myImage']

ids = [x.id for x in page1.children]
print(ids)
# ['7:2', '7:6', '21:4']

images = figmaPy.get_file_images(file_key=file_key, ids=ids)
pprint.pprint(images.images)
# {'21:4': 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/9bc9fdbd-REDACTED-2d1f31e9b57e',
#  '7:2': 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/de2afe63d-REDACTED-8abc-9ca5b5f88ac8',
#  '7:6': 'https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/f56d5d8dd-REDACTED-af17-461010e0af14'}

Install

From Source - most up to date code

Clone or download the repository, navigate to the root folder and run:

python setup.py install

From PyPI

pip install FigmaPy

Using Distributed Wheel from GitHub:

pip install FigmaPy-2018.1.0-py3-none-any.whl

Documentation

API Documentation : https://www.figma.com/developers/docs

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].