Sketch stores documents in .sketch format, a zipped
archive of JSON formatted data and binary data such as images.
Inspired by sketch-hq/sketch-document
Built package is avaliable in Pypi, install with Pip
pip install sketch-document-pyThis project contains the APIs to work with Sketch documents and document elements in Python dataclass.
sketch-file-format-py: Python dataclass type hint to strongly type objects representing Sketch documents, or fragments of Sketch documents in TypeScript projects.sketch-file: Python APIs to read and write.sketchfiles.
To build this project, you need install Python build dependency management tool Poetry, to install Poetry , follow Poetry installation guide
To install nessasary deps and CLI tools, including a task runner Poe the Poet(CLI executable named poe) that work with Poetry, run command:
This will also install current package to your environment root
For further usages of Poetry Install, check Poetry Install
poetry installTo generate Sketch Dataclass type file, which is nessasary for build or install development, run command:
For further usages of Poe the Poet, check Poe the Poet Homepage
poe gen_typesTo check project typing, run command:
For further usages of Mypy, check Mypy Documentation
poe mypyTo run project test and coverage, run command:
For further usages of Coverage, check Coverage.py Documentation
poe testTo build project to wheel and tar, run command:
For further usages of Poetry build, check Poetry Build
poe buildTo publish project, run command:
For further usages of Poetry, check Poetry Publish
poe publishFor further usages of Poetry, check Poetry Documentation