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

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:

poetry install

To generate Sketch Dataclass type file, which is nessasary for build or install development, run command:

poe gen_types

For further usages of Poetry, check Poetry Documentation For further usages of Poe the Poet, check Poe the Poet Homepage

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.1.tar.gz (29.1 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.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sketch-document-py-1.0.1.tar.gz
  • Upload date:
  • Size: 29.1 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.1.tar.gz
Algorithm Hash digest
SHA256 9fbe8d39f98044ad0d8b3d3672c73f122fc56c6d7f8de4cb7aa9d600710e37a2
MD5 2b78b309f2cf7a39d4889d08f3ac6693
BLAKE2b-256 51b151216ad853d102ad8c76b4b82183835738d0215d73af96414bad0efb5cad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sketch_document_py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf125ec2634ed27cba67c90c0aeb644c375a9b28a362fc3e6ce27f67db89bb6
MD5 83de8e1c368a1e1af9e5fc761e0c36a2
BLAKE2b-256 8f191ae09880d2512ee294583e536268a1acc25c814cae46c235c43aa702cded

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