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.3.tar.gz (13.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.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sketch-document-py-1.0.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Windows/10

File hashes

Hashes for sketch-document-py-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1c58142b196354052cf6477be700e7c5604cce2b0ad6cf011ef9e6e2bab48e11
MD5 3ef2a5b1f307f8c2e5b0b8176c7911fc
BLAKE2b-256 78322aeb1c64c7ec6591f01e0bed454c03fcd74bfd4e2f324dae820f4330ba12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sketch_document_py-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37247207850b7dc6e980c3eeecb487211a5bce4f01bf3d85f85e6c4396d456d7
MD5 db2621e0f6e6846b8fbafa7a7a0ab453
BLAKE2b-256 9a13be1694d432f162c2d0b20111047b4ac6ad46693bb83deba8b02f0af0bf55

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