Directly upload Figma designs to Q
Project description
How to install
python setup.py sdist bdist_wheel
pip install .
How to use
In you project folder, create a file called q.yaml.
The file should contain a link to the q-infographic you
want to update, and the links to the figma frames that should be used.
- type: infographic
q: https://qv2.st.nzz.ch/editor/infographic/560x7350xf5bxb3a50cb836998edabcd
staging: https://qv2.st-staging.nzz.ch/editor/infographic/560x7350xf5bxb3a50cb836998edabcd
mw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Mein-Projekt?node-id=1-1787&node-type=FRAME
cw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Mein-Projekt?node-id=1-1982&node-type=FRAME
kw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Mein-Projekt?node-id=1-1983&node-type=FRAME
fw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Mein-Projekt?node-id=1-1984&node-type=FRAME
Then run the script with the following command in the folder with the q.yaml file:
fig2q .
Only mw and cw are required. The other links are optional.
Also, the staging link is optional. If it is not provided, the script will not update the staging version of the q-infographic.
You can also use the script to update a scroll_graphic. In this case, the q.yaml file should look like this:
- type: scroll_graphic
q: https://qv2.st.nzz.ch/editor/scroll_graphic/599cb06749192d5221a2f8e4dcabcdef
staging: https://qv2.st-staging.nzz.ch/editor/infographic/560x7350xf5bxb3a50cb836998edabcd
steps:
- mw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Untitled?node-id=1-2&node-type=frame&t=dVqDEKkaO47UMmde-11
cw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Untitled?node-id=1-17&node-type=frame&t=dVqDEKkaO47UMmde-11
text: Text of the first textbox
- mw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Untitled?node-id=1-18&node-type=frame&t=dVqDEKkaO47UMmde-11
cw: https://www.figma.com/design/26LECd2dAce34lxzgCtala/Untitled?node-id=1-19&node-type=frame&t=dVqDEKkaO47UMmde-11
text: Text of the second textbox
Use it without Figma
If you are not using Figma or don't want to link Frames directly, you can also add image paths.
- type: infographic
q: https://qv2.st.nzz.ch/editor/infographic/560x7350xf5bxb3a50cb836998edabcd
mw: pngs/mw.png
cw: pngs/cw.png
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fig2q-0.1.0.tar.gz.
File metadata
- Download URL: fig2q-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35d5fe368e7748536892100c25727090757ef9ea90c150f91f6c5ba851b06a7
|
|
| MD5 |
9b48e16ff5adc997f87b05170d7c864f
|
|
| BLAKE2b-256 |
a4a38947a60b40abe89ba40226889b56a73efe73beb2670a07d75b6edf7469da
|
File details
Details for the file fig2q-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fig2q-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc7d470fde2742598744557510910849c9f8fcfee7fc88938b48af6f8252d5f5
|
|
| MD5 |
df9183ce350bdc0975e91a9686954434
|
|
| BLAKE2b-256 |
03b3a5d923687b08895294a761b33432cde475e0d0bd53b2a3a53e6e19afca3e
|