figma-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
figma_cli/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """Headless Figma CLI for AI coding agents and automated design inspection."""
2
+
3
+ __version__ = "0.1.0"
figma_cli/cli.py ADDED
@@ -0,0 +1,28 @@
1
+ """Console entrypoint shared by the ``figma-cli`` and ``figma`` commands."""
2
+
3
+ import argparse
4
+ from collections.abc import Sequence
5
+
6
+ from figma_cli import __version__
7
+
8
+
9
+ def build_parser() -> argparse.ArgumentParser:
10
+ # prog is left unset so it follows sys.argv[0]: each alias reports its own name.
11
+ parser = argparse.ArgumentParser(
12
+ description=(
13
+ "Headless Figma CLI for AI coding agents and automated design inspection."
14
+ ),
15
+ )
16
+ parser.add_argument(
17
+ "--version", action="version", version=f"%(prog)s {__version__}"
18
+ )
19
+ return parser
20
+
21
+
22
+ def main(argv: Sequence[str] | None = None) -> int:
23
+ build_parser().parse_args(argv)
24
+ return 0
25
+
26
+
27
+ if __name__ == "__main__":
28
+ raise SystemExit(main())
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.5
2
+ Name: figma-cli
3
+ Version: 0.1.0
4
+ Summary: Headless Figma CLI for AI coding agents and automated design inspection.
5
+ Project-URL: Homepage, https://github.com/imperfect-co/figma-cli
6
+ Project-URL: Issues, https://github.com/imperfect-co/figma-cli/issues
7
+ Author: imperfect-co
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Environment :: Console
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Python: >=3.11
19
+ Provides-Extra: dev
20
+ Requires-Dist: build; extra == 'dev'
21
+ Requires-Dist: pytest; extra == 'dev'
22
+ Requires-Dist: ruff; extra == 'dev'
23
+ Requires-Dist: twine>=6.1.0; extra == 'dev'
24
+ Description-Content-Type: text/markdown
25
+
26
+ # figma-cli
27
+
28
+ Headless Figma CLI for AI coding agents and automated design inspection.
29
+
30
+ Requires Python 3.11 or newer. Licensed under MIT.
31
+
32
+ ## Commands
33
+
34
+ The package installs two console scripts that run the same entrypoint:
35
+
36
+ - `figma-cli`
37
+ - `figma` (short alias)
38
+
39
+ Each reports its own name in `--help` and `--version`:
40
+
41
+ ```console
42
+ $ figma-cli --version
43
+ figma-cli 0.1.0
44
+ $ figma --version
45
+ figma 0.1.0
46
+ ```
47
+
48
+ The npm package `silships/figma-cli` also installs a `figma-cli` executable. If both are installed, whichever directory comes first on `PATH` wins. Run `command -v figma-cli` to check which one you get, or use the `figma` alias.
49
+
50
+ ## Run without installing
51
+
52
+ Before the first PyPI release, run straight from the repository with [uv](https://docs.astral.sh/uv/):
53
+
54
+ ```sh
55
+ uvx --from git+https://github.com/imperfect-co/figma-cli figma-cli --help
56
+ ```
57
+
58
+ From a local checkout:
59
+
60
+ ```sh
61
+ uvx --from . figma-cli --version
62
+ ```
63
+
64
+ ## Development
65
+
66
+ ```sh
67
+ python -m venv .venv && . .venv/bin/activate
68
+ pip install -e ".[dev]"
69
+ ruff check .
70
+ ruff format --check .
71
+ pytest tests/
72
+ ```
73
+
74
+ The tests are hermetic: no network access and no Figma token are needed.
75
+
76
+ ## Release
77
+
78
+ Bump `__version__` in `src/figma_cli/__init__.py`, merge, then push a matching tag (`v0.1.0` for `0.1.0`). The release workflow refuses a tag that does not match `__version__`, builds the sdist and wheel, runs `twine check`, and publishes to PyPI through trusted publishing (OIDC, the `pypi` environment).
79
+
80
+ ## License
81
+
82
+ MIT, see [LICENSE](LICENSE).
@@ -0,0 +1,7 @@
1
+ figma_cli/__init__.py,sha256=OotM17S64jORI93B8DOVhOlS0YyAHkoB5ypE50fvNRc,102
2
+ figma_cli/cli.py,sha256=s2A-FtosluFyFkIkW1HHXxJ4K48pFglztawcUr8afSQ,747
3
+ figma_cli-0.1.0.dist-info/METADATA,sha256=bPtil9yakDugkZ41yWXLxhpdLxqkVQfU-yRUhjEB32o,2463
4
+ figma_cli-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
5
+ figma_cli-0.1.0.dist-info/entry_points.txt,sha256=3dG9WVdybSs7fefpxEeWuMlD8XzS5dcnSwXKzJ4UvPI,76
6
+ figma_cli-0.1.0.dist-info/licenses/LICENSE,sha256=Yy3fMfTsJ1LNiTUmhQb62BW0Ts5XoM6juaw5aOXkoBQ,1069
7
+ figma_cli-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ figma = figma_cli.cli:main
3
+ figma-cli = figma_cli.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 imperfect-co
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.