KLayout API implementation of gdsfactory
Project description
DoWeb 0.1.4
KLayout Web Viewer based on canvas2canvas
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 theDOWEB_FILESLOCATION
env variable of passingfileslocation=<Path object for target folder>
to the function. Alternatively there is a default one indoweb.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 atdoweb.viewer.get_app
. This version doesn't provide a listener for the env variable. Use thefileslocation
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file doweb-0.1.4-cp313-cp313-win_amd64.whl
.
File metadata
- Download URL: doweb-0.1.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 247a936b7366685b9c2a8d5925df708e340f4c97981e170e8abac571df7c8bde |
|
MD5 | 4f9025e4cac258b8d20a1ee799c01c9b |
|
BLAKE2b-256 | bc1a0353d28b47b5c6969594fd5821cc9e05e644a9ec2a8084ce72d100380088 |
File details
Details for the file doweb-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bad45e915d36052de699318c18908a75fad834380eaec54c4475ac93db74a1a9 |
|
MD5 | beebc87522105b13dd409a4f5be6576a |
|
BLAKE2b-256 | 5106ddcc60c9c6ae7e9185baff146a1c81217a2310d481c37ca848f8e67fcd02 |
File details
Details for the file doweb-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 294.9 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfac23b05bb232e2df85d0240297e682fce33339c6ed1ded8e3f6d275dddbff0 |
|
MD5 | b2362c52f6c9d29c18611fd6cb3559f6 |
|
BLAKE2b-256 | cd0345de336451601cfd4172789299c8168b3ba532075f9d0935f30aa87d45ee |
File details
Details for the file doweb-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 311.8 kB
- Tags: CPython 3.13, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0e8a818a639d50b32d892cfdaff48b98507c87e49c6528e2ef3deedbd0c7bf |
|
MD5 | 14a2db30b6ecbd449f46160cf5b45282 |
|
BLAKE2b-256 | 2ce351b13a28a9155fd8a89a094a89249d68bdf9af32845a5057dd800ffaa08a |
File details
Details for the file doweb-0.1.4-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: doweb-0.1.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ae8452ab4c39ba9e0248de84de30169ca13b20af09aa3138f91a0da19d911a |
|
MD5 | 9788e09bfa0cad9a208c8ce79b8e117f |
|
BLAKE2b-256 | 70510a54288aa354e53039c3674c7124c7ec163aa252a6da71f07faef4cd2e23 |
File details
Details for the file doweb-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd90edd2cf2f721942828ebf70e67bbf1e9dc09fdf46ab5feb79fb876008601 |
|
MD5 | 6f0e428d64468faf9e16cbdf4aafa994 |
|
BLAKE2b-256 | bb82cc99abdc2f7da747fb4730bd7a44a6d90f9e372d78174c5a1ac6ccaaa1f5 |
File details
Details for the file doweb-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 298.9 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad06dbf5d46afd98238472304934e5e0fedfbddc916580e17a6154d52ed659b4 |
|
MD5 | 0b5c5ab969b43ab94d9e8be15503b430 |
|
BLAKE2b-256 | 3e7a20071bcc17b700c6d9d5598b112272279493cb17c0b64ccb9b36838d54a3 |
File details
Details for the file doweb-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 315.8 kB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 148da5d7b2c8e7de04c930b31b9ef01de267ca3b2beb79c235c885f3cf4fddec |
|
MD5 | a38ca15255cc244a49c4e15728a89391 |
|
BLAKE2b-256 | af92956708ca33635c54a08f00ec51af4ebb9fd32d765243da70acc9a831d1c1 |
File details
Details for the file doweb-0.1.4-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: doweb-0.1.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 435b5125740459d5848f253ac171df1c249b778043a11508a9bd284268ac318c |
|
MD5 | 84c2f828e9a71e10d4ef3880f14537ee |
|
BLAKE2b-256 | 894a375ebbb0ecfbe6e9107cfe2106536b313231c6c00424b7e1f6e9b11c3fe9 |
File details
Details for the file doweb-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c71eec07093d6d55fa4f0fde977beaab6f6fb1fc1fe63884e1340df4ca6b1c7 |
|
MD5 | e2abe740aa538fbb9449bebedfdffc74 |
|
BLAKE2b-256 | 48963015f03bbff009e5d090549d64165f82c4cbc476cc4a96683e565d8b6fb6 |
File details
Details for the file doweb-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 298.8 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d605de4422614509c7fd2c26983805221d28de2205f9f4d3f6cbea8ebb61489 |
|
MD5 | 96daf98d25135570047a734c09df424c |
|
BLAKE2b-256 | d97d7cb0d11c000d63ce8a0765a46c4a2f5915ced6315cc9d1100a1bf0104c7c |
File details
Details for the file doweb-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 314.2 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 222e97d617915a966f070a7f8708e9a402ba836d454e49bcb5dede613bcdd1bd |
|
MD5 | f495d128f12b4e834a9975c041474cb4 |
|
BLAKE2b-256 | c2b93b704186fb48cf93f2b88d113389ad48384c7a0a117d8ca737e59016bccb |