Skip to main content

KLayout API implementation of gdsfactory

Project description

DoWeb 1.7.3

KLayout Web Viewer based on canvas2canvas

This app contains the logic to render .gds files, including in VSCode.

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

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

doweb-1.7.3-cp314-cp314t-win_amd64.whl (633.2 kB view details)

Uploaded CPython 3.14tWindows x86-64

doweb-1.7.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

doweb-1.7.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

doweb-1.7.3-cp314-cp314t-macosx_11_0_arm64.whl (635.9 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

doweb-1.7.3-cp314-cp314-win_amd64.whl (590.3 kB view details)

Uploaded CPython 3.14Windows x86-64

doweb-1.7.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

doweb-1.7.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

doweb-1.7.3-cp314-cp314-macosx_11_0_arm64.whl (607.3 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

doweb-1.7.3-cp313-cp313-win_amd64.whl (585.6 kB view details)

Uploaded CPython 3.13Windows x86-64

doweb-1.7.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

doweb-1.7.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

doweb-1.7.3-cp313-cp313-macosx_11_0_arm64.whl (605.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

doweb-1.7.3-cp312-cp312-win_amd64.whl (585.8 kB view details)

Uploaded CPython 3.12Windows x86-64

doweb-1.7.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

doweb-1.7.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

doweb-1.7.3-cp312-cp312-macosx_11_0_arm64.whl (606.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

doweb-1.7.3-cp311-cp311-win_amd64.whl (598.6 kB view details)

Uploaded CPython 3.11Windows x86-64

doweb-1.7.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

doweb-1.7.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

doweb-1.7.3-cp311-cp311-macosx_11_0_arm64.whl (612.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file doweb-1.7.3-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: doweb-1.7.3-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 633.2 kB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doweb-1.7.3-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 cf36a0bbea35e3c1a89272f1fcf97b5860ba9c6e45c466cabfd4a2327486f0ea
MD5 9c7fe885c7cee923fcab4ce0e5a4b016
BLAKE2b-256 f16ed9b7981a81c19499ae351a5af9972ddeb17111c186efe9f4d3638d41cdf1

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6e386cdd66bc76e06e2b4ef75b1e72327e094c9c373be1b7b172fb9cb365636f
MD5 35854702dafabde5bdfec531ccc61b78
BLAKE2b-256 69b241cb073551eba000ff3aca70d788c0735aff3da870a98197cf26dbf04194

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ab7424f0a400fe3b9421c4c36f5994aab2fd3c3b1c5ad4109e8e45af5b9a62f
MD5 e89856bf2f7b1bbfa15c8a7dd7aadb60
BLAKE2b-256 ef322ec0b4e4e9797a5b73915882f9f6da45b0f6a3cb18e6c95ce6ab651763a7

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b48797c180b44d21b27df9f95d35d900e808828a7d1a4b2eced0fa7c558a31b
MD5 8bcf390a7e4ecae64588ed58bfeabb9a
BLAKE2b-256 dcbe8b9c9a0ae93a2097077ee42a346aaa2439f2f75f52a260b1486f392236d7

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: doweb-1.7.3-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 590.3 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doweb-1.7.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 09196f29e2464b74c3002ed89994c2a6b6203ff73209171fdaa06ef41a52181d
MD5 4512d8d930b5b024757ef7e68d514c0b
BLAKE2b-256 36de21e682d79b0172f174e08f0d39ea7d7923f1f4fce41378736a0b3c2392d5

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fe1fcefa1790c41a4fe4ae3c69d0f4f9722147ce189360dce3ec2e2061ea6ad6
MD5 8b7e4469d50d03a179174f19e4e2052c
BLAKE2b-256 075a14aead7ada84297d6a916876294a22ac4a38c39d80398584d9dc0855bc48

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8bfe752a2f8e70f483441afa70eecf7e0bc62b721bed5c01b79915996ad0d11
MD5 e08cf8e8545a40324c8168db8de8d59c
BLAKE2b-256 d73855d7caa610052f983042c0c346c76ca77179a2305d38fd07c0b8c9341bf5

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 605c8e621d4752f06904e8df60e8d9c6602e2bddcff5fc52b03fce1c747a50da
MD5 9731ce39dd4a27f96dd809582ad1eca2
BLAKE2b-256 c33b71443a8a2ca7d782bb5ff125d50c99b7b774617c70fd157b159f5e68fa11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doweb-1.7.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 585.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doweb-1.7.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 87194a272fdc0b52f82c3edcdcccdad74387c902217ab28faf5ffe2c88531109
MD5 5ee76a648cc22303ad3e42c8cade1e1b
BLAKE2b-256 0f21640dc5f687f41b7325cef7f84470f4c2a372713c29155f0c7749948569a8

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6273d0316a8c68b7a2fd000d6b95569693a8dac4d1f1facc3c8f5148632e30dc
MD5 83b95610134bd82fae7ac899f728b8af
BLAKE2b-256 cc0a1df0e02640862a74f78e4f8ea7e0167178f1fb909d891ddbd43515f3efe0

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 021c02e026c1b6d470d1b2c06b061c98dc354b56c33db21f2fdc67ed143f544b
MD5 43d03d414737c532b25b09a48d385b9f
BLAKE2b-256 862e7caa09554e0e431035547ad90661d1f4d7ee4e0eba76025e789c6952df9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-1.7.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29dd62600724dfecafbd519ea6642b16b9bebd3dfe1aab3699811fd9a002ee0c
MD5 057f7dd4b9a4b145e521e1be57717793
BLAKE2b-256 236f0b234d89ab4abc0ecc937c0d5462c253b85c6d5e640b6fd5506b536dd655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doweb-1.7.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 585.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doweb-1.7.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 07ecefcf92234e968b75c5ed2808e21a6f6130e89bfacda85acc83e9c4d80f8e
MD5 3a2a297ab54f41693589b023322921c9
BLAKE2b-256 15c4186fb0f5a8bc27fe27586ace4a206a177c800cdba3a74985c03dde3ecf98

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 486d2123925235bbb071e76dfaec4a817ee378f65bb54d91cc164b30f74aff81
MD5 a4b6acc950fe2c905afce088180a5027
BLAKE2b-256 b8b17926dd673754ea3a8cb4cfdbd05885cb0835dbe0b7903cd91a7e02d784eb

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35cdbd4b5b09e6bb85b7c939c3621f8025a653bd6a061ea73ee26703bdf2e221
MD5 7dbd5a43240e2e38396222c023317cb7
BLAKE2b-256 d3b6e104f1933447bc88680436e6e405d306fde25a7276f7cf8420be61fc9f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-1.7.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aa9f2765cf1cd4a4b35504e2a724ff67269d0b77d570ba282f761ff078df11b
MD5 bd0ff90562ae8e0b62e4b92402120255
BLAKE2b-256 a856e1187721fff27054ddd0870b939869f9c4732fd1bf5a130b0d643588ca05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doweb-1.7.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 598.6 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for doweb-1.7.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7f2fee6b95c42d68782a0c7f215577bea89d5ffdcba05f6639749537fec3d1de
MD5 1ab5d58fa6c31b4b10395fdb76030b10
BLAKE2b-256 079f1dff0bbd8583b3f2f5318462ca476343ab0f2112f5608f60631b2348f3a9

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a65d973f4cc23e76f8d27eec685b03d122018a1c070743afae1ac03f74ed09b1
MD5 e6e10c6975baf1b3a574873a8f69c808
BLAKE2b-256 ed51eb57187f841a549da379663af7affcc9189844144786113179e165c4458d

See more details on using hashes here.

File details

Details for the file doweb-1.7.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for doweb-1.7.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb76bf1a61f6501c5b3f378966f0eae23d9c4ebb9de71d4de8c558515bcd2b69
MD5 087688519d538769ebaa922d4ac133d5
BLAKE2b-256 a10a238a1df528063e6e1a7dbd5c610d58eb67fa779b2ee623e5c9e3025eccae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-1.7.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa37fed75855bf5064e72b4b6387a35ad092c5b8e06310ae5f7d662a6fcd6852
MD5 976d3ef995b6165ed6f81cbd8a98c564
BLAKE2b-256 05f9bedbeb652a987680506ab293f1af21d728ede93121b9cf5c0621f0a3b348

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