Skip to main content

KLayout API implementation of gdsfactory

Project description

DoWeb 0.1.7

KLayout Web Viewer based on canvas2canvas

demo

Install & Run

Through pypi

From a python virtual environment run:

python -m pip install doweb
export DOWEB_FILESLOCATION="/path/to/gds/folder" # or the windows equivalent with set
uvicorn --reload doweb.default:app

Advanced Usage

DoWeb offers two basic apps:

  • Browser:

    A version that provides a version with a file browser for a folder and the doweb viewer for viewing the gds file in that folder. This can be used by importing the function doweb.browser.get_app and settings the DOWEB_FILESLOCATION env variable of passing fileslocation=<Path object for target folder> to the function. Alternatively there is a default one in doweb.default.app that will only look for the env variable.

  • Viewer:

    Only enables the /gds/<filename> endpoints, no root path, i.e. no file browser. Available at doweb.viewer.get_app. This version doesn't provide a listener for the env variable. Use the fileslocation parameter in the function instead.

Development

Clone & Install

git clone https://github.com/doplaydo/doweb.git
cd /doweb
python -m pip install -e .[dev]
make clean # to remove the build files

Set a folder for doweb to use when looking for gds files

export DOWEB_FILESLOCATION=/path/to/folder/with/gdsfiles

Run

cd src/doweb
uvicorn --reload default:app

Copy the link http://localhost:8000/gds/file.gds to your browser to open the waveguide example

Contributing

Please make sure you have also installed pre-commit before committing:

python -m pip install pre-commit
pre-commit install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

doweb-0.1.7-cp313-cp313-win_amd64.whl (630.7 kB view details)

Uploaded CPython 3.13 Windows x86-64

doweb-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

doweb-0.1.7-cp313-cp313-macosx_11_0_arm64.whl (651.9 kB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

doweb-0.1.7-cp313-cp313-macosx_10_13_x86_64.whl (669.0 kB view details)

Uploaded CPython 3.13 macOS 10.13+ x86-64

doweb-0.1.7-cp312-cp312-win_amd64.whl (633.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

doweb-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

doweb-0.1.7-cp312-cp312-macosx_11_0_arm64.whl (656.1 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

doweb-0.1.7-cp312-cp312-macosx_10_13_x86_64.whl (672.9 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

doweb-0.1.7-cp311-cp311-win_amd64.whl (641.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

doweb-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

doweb-0.1.7-cp311-cp311-macosx_11_0_arm64.whl (655.9 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

doweb-0.1.7-cp311-cp311-macosx_10_9_x86_64.whl (671.4 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

File details

Details for the file doweb-0.1.7-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: doweb-0.1.7-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 630.7 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for doweb-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c2b7948c3c3639ccdeeb0bc759541a6317a9de67a83a6fb14b083e529f1d79fb
MD5 a85e43addec875a5195b0186c99ba8b2
BLAKE2b-256 f575b587d45541c9cfa65c9800737b9dd380b126900ba1ff7341f0e3f73b2d98

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79314b1c7c0310a0a2ef2336403964b7d39dffd746f2b5975a08c79c13f8199c
MD5 8be9cea2c4ee9ad3c0b2561588d3053a
BLAKE2b-256 383323ccade59ee6ec277443eedc563b76825fc8f374a63b59d387d30344b63c

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9090f937e93d14177a6046ec154e69f6aebb251c131b75c9748791d14a4e55a8
MD5 53321c93e26c791812199a2c198e3298
BLAKE2b-256 b31872ffbb2c8bc62dba425a44601efac8c5e8b4c317a856ae8f9ac72e03641f

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ae9dd6fd858cade3166fa4522b8b057611564e8d4bf611678d023d76b3f52758
MD5 107041cd3a5a06682ffee3c5ec9ad0e2
BLAKE2b-256 8496c9d338fba6be9df722b4200d7ae9882ab685760f1224b81f528a76ac4e1e

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: doweb-0.1.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 633.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for doweb-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d63355600ede8eb046958b92746e77a870fa3f8d32b2f5a8a68cf1d84e399dfe
MD5 86e289b099d356dd028c4029d0d59b9e
BLAKE2b-256 418c1439607d955f9bd3b1a9ab28cf90e48680124a11e140f2f53874cf1ed275

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f65a616627b4805600e12da6d9179274f5d230d9154a91747108e22948940ea
MD5 03695558ecf13f5ee13df36a145f722f
BLAKE2b-256 e9ebebb5d6b5213577ae8574d8c9a5ba62f9b480da3e9b797d8f4bf96bee6f93

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a69ff95554fe43508ef5799e160a0f45cf67412a9b000eecce1f47e8a7f73c6a
MD5 44a19e294e6a4de917fbff096145e5dc
BLAKE2b-256 44dd4ba54fbac76ca98e6d02eb8d758ee927e1f7299a48eb5c1785124bdd328b

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 19fbf1a10ac6e4df02ba90b5e3f3091fb6b8369eaea38a73cb4122fb7425ae4f
MD5 0e72cbdadbffeef618509f19f97a210f
BLAKE2b-256 14a918698e4375c66f217c0bb184fa16ab0b551f3d8c11fd96f6f9cb3614fcda

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: doweb-0.1.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 641.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for doweb-0.1.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c01dbd7a29b29df1d3cc3bb9e888bb1e4eb64c8a722893a11d8d4133bd1ec0ae
MD5 5ef56692c64f3eb60ef39b27e47c0fd1
BLAKE2b-256 57f1e692b2800691cc6b4308d5ba2d99b80f73aa0d66ff6f9c3cb26b5cd33689

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df75e28f9e343d3ec69f3b31ce953a31c0e71fd525420a02a43257dbd9e88aaf
MD5 45d57c7c2f883c29858a44ee06deca07
BLAKE2b-256 a974d6f0d00052491a7b6a93d7e4c739b5b99371695a7f3c1cf5b5906ed311fb

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80ccf623693fb006511ff7490ccd7df246a1a31bbe7bd2fb06cf57a6e855edfc
MD5 2ebb622d87f5b84f071512eb6334aca7
BLAKE2b-256 1ad236d757558a22ebb62702ce24af39739191615a8f2435a85f8c33f7e77498

See more details on using hashes here.

File details

Details for the file doweb-0.1.7-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for doweb-0.1.7-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 20fbb93b737f0b1ef7781131e4d6451cee2a655105e2303460478940d78da573
MD5 d5bc6100f87b5e38d1ae3c7bc36b692c
BLAKE2b-256 b0030103d2f9a234e9e0dfe93a8580f3e5c387d4904d64f35e1462d6b48cae67

See more details on using hashes here.

Supported by

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