Skip to main content

This project contains the APIs to work with Sketch documents and document elements in Python dataclass.

Project description

.sketch document for python

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-py

Sketch file format schemas and APIs.

This 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 .sketch files.

Development

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 install

To 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_types

To check project typing, run command:

For further usages of Mypy, check Mypy Documentation

poe mypy

To run project test and coverage, run command:

For further usages of Coverage, check Coverage.py Documentation

poe test

To build project to wheel and tar, run command:

For further usages of Poetry build, check Poetry Build

poe build

To publish project, run command:

For further usages of Poetry, check Poetry Publish

poe publish

For further usages of Poetry, check Poetry Documentation

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

sketch-document-py-1.0.4.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sketch_document_py-1.0.4-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file sketch-document-py-1.0.4.tar.gz.

File metadata

  • Download URL: sketch-document-py-1.0.4.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.4.0

File hashes

Hashes for sketch-document-py-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c3c44133143483b921078d03f872ff8b64b100a28c573ff4e8d626b2658e876a
MD5 f27fe60c743feae8085c1b1b5a2794d8
BLAKE2b-256 65734687a5b98d88cc89a841586a484281c06ef51487773029f41f187bbd8ef8

See more details on using hashes here.

File details

Details for the file sketch_document_py-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: sketch_document_py-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.4.0

File hashes

Hashes for sketch_document_py-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 832b97980c888001802d1a652b5d5929212bcf35f183d7980df851542541d7e0
MD5 d2712645f232dfd4669111ad260dd2c9
BLAKE2b-256 1afdab1f9689ea68d44772f1d868c27d33087ed40a7c55613b632dc42cd5c007

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page