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.2.tar.gz (29.8 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.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sketch-document-py-1.0.2.tar.gz
  • Upload date:
  • Size: 29.8 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.2.tar.gz
Algorithm Hash digest
SHA256 21dd045e783514ddd0ace9c3318c576060b589e38422146c649fed7be1ca1c6c
MD5 7db8b5c6a54b17a407815b17b7ba8975
BLAKE2b-256 ca73a6f7556392daf7140e7ae90adbefd4ef4c71b5d69bd46de4c69e595e7ba2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sketch_document_py-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c375ba85fb0286446516e348da6ef1881a97b2d3c7aa4dcc26e0d4833d724fa9
MD5 91a9163eafb577410e3911efb645ad81
BLAKE2b-256 7aba7b8983db7f33ca596ecaf13d22045b51d9aebcd422955a99fe88ee433c31

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