Skip to main content

KLayout API implementation of gdsfactory

Project description

DoWeb 0.1.5

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.5-cp313-cp313-win_amd64.whl (273.4 kB view details)

Uploaded CPython 3.13 Windows x86-64

doweb-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

doweb-0.1.5-cp313-cp313-macosx_11_0_arm64.whl (294.9 kB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

doweb-0.1.5-cp313-cp313-macosx_10_13_x86_64.whl (311.8 kB view details)

Uploaded CPython 3.13 macOS 10.13+ x86-64

doweb-0.1.5-cp312-cp312-win_amd64.whl (276.6 kB view details)

Uploaded CPython 3.12 Windows x86-64

doweb-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

doweb-0.1.5-cp312-cp312-macosx_11_0_arm64.whl (298.9 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

doweb-0.1.5-cp312-cp312-macosx_10_13_x86_64.whl (315.8 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

doweb-0.1.5-cp311-cp311-win_amd64.whl (284.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

doweb-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

doweb-0.1.5-cp311-cp311-macosx_11_0_arm64.whl (298.8 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

doweb-0.1.5-cp311-cp311-macosx_10_9_x86_64.whl (314.2 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: doweb-0.1.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 273.4 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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6168fe966e725984c9789b85e1f2b5397d18058183205b94fd1ee702bb4484b8
MD5 bab702f8057c440eeb9b02e0e416229c
BLAKE2b-256 128c50544fbd15080ab8016e871a32da982079543abf38873881553f4a5a05e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e44e4dc0b23e48845ca614bffc2f4a46e976035bb539a1a92e027fa7b463ec1f
MD5 9a44c9b5e5fbc71695679f7563e3795c
BLAKE2b-256 d32859f70b9b3b9b4a727cb7d6a5e9d5399f939256ad41343cd0a7152c6b2a9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1954ce4e97719224c4e99887b55ef4af3d0c20644a66a1ca970c576153f33a7
MD5 6d5d30b5bea45d0b5ca570002a0bbdbf
BLAKE2b-256 81617ec496d67af629bc1495927a2b4cdb84a1d0109dbead7d8092a9ecf71cdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f7ffe23bf134fb597828cbb65be605dc432ac8589652d4a9e252c5b42c317420
MD5 1d04f1c872ee02c77a71440c0a9d52ef
BLAKE2b-256 73ae0ddc50d46ebc0f33ecde1c62fd70987e98008e1d71e86df63081430a404b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doweb-0.1.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 276.6 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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 546a95325e1804b0f6f09bb8e837e0e45fd48318ef8b417206f3d5110d2fae0b
MD5 fc27a0ce9c82cfbab2b9dd9f88ae5a8b
BLAKE2b-256 d81c20f475896c8eba404e4ee0eb8bf5b7d282be73519be36c2b351a5b30eb2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14674a88bb9f1198e0e9800857d67de72f908a2737eebc63e2b8091cd8e1587e
MD5 b23010b8c1dda2476512225b205db866
BLAKE2b-256 7c36eb800074da40de4b603b05a16396982de7a9546709ac2d73d97a9252ae42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35e1dd67165ab13c14a04d1e880ec5357ebc4577b939db5b1c06b3904ce08971
MD5 3b963c8500ee4d9ad5991e12b6fed64b
BLAKE2b-256 ab65916ba49b99ec0c3102821e38846417329a1207f0361b77ccd789feaf1dbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5dffdf971b0a16c0b85dbdfbccfbb303ff3cc554baf1fae16eff735c2cf6b71c
MD5 a823740f353cdbf61c19ae8caf82bffc
BLAKE2b-256 e18a84712375c4a4c5653082b821dcc775306660fbbd933c9e67c491516d10d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doweb-0.1.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 284.1 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.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 61dfff561aac113badfa51f4095bf996dabf2eae38eedfbde184d26d9adb79a3
MD5 6c1fe0cbc680be7494bd428e98df48dc
BLAKE2b-256 deca10f063843ee3fbf8b304a87bd62d3f1ef7dc48757934336ee0c89a551d22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14e4d1638204d555a3ea1ac134456a10690c0fe8ff536557bd3e51ea151d7e01
MD5 d4e81e7e36b0a578d0cae3e24f894e8b
BLAKE2b-256 e60ae7e5a0f6a5f2a4591f382092b336e419b3fdb180365dec4df6fdc0bd81c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 486f23b946465b888461d5a6886d7e391b5d473f2925b007d6640d822142e26a
MD5 0f9e83088c7a3998ca4465a7f8505ab9
BLAKE2b-256 eea7394d20a40b0b9b2339a4e04554b9e7b782a617250fdfb69b8f688cc1a2e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for doweb-0.1.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2cccf58743d2e15a9fb35b56afa79c0b250c88b4811a3a3b7e027f55548e3c50
MD5 8b922a73276d3f214f009789f4cc6978
BLAKE2b-256 27bb71216886873c7db6bc26c056c24cdf3560e44a371700671a45302e063e9a

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