KLayout API implementation of gdsfactory
Project description
DoWeb 0.1.6
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.6-cp313-cp313-win_amd64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 274.0 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 | 291263fe8e9f5e7f1c7c37917ab553e2c1631e214e2be08d6cefb5258477af5c |
|
MD5 | 1d1189db76b8dd6ddb315771b61d170b |
|
BLAKE2b-256 | 8e7ad8e7d4917cc87bcf3782b01861a25988de645e5797b55ff50eaf46ae133c |
File details
Details for the file doweb-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.6-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 | f5978a9a0a2c491000582141b1853cd593670315808d503d67decf8673812e5a |
|
MD5 | 6c69f0c80f9e8de7cfd14cb296249002 |
|
BLAKE2b-256 | 3e46fac331265d0fa52239df512f2f75fe15e7e73983945c550204d8cc8bd038 |
File details
Details for the file doweb-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 295.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 | d24a1f0b347b9c167b30f4d676377f2460a2269d4d66be96db39f7c7171c281a |
|
MD5 | 53d747a9c0d434e03dc4d303845b055c |
|
BLAKE2b-256 | 8157410ebba0419f780078a54082cddbeead72759351b6c18a5ca60237e72fe5 |
File details
Details for the file doweb-0.1.6-cp313-cp313-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 312.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 | d36ad8c7c78aeea491fe6568017792afbcb0f852fbc0924e7b2209f6e97de1a6 |
|
MD5 | e160e75eb7540ea5626b5a3c1266085b |
|
BLAKE2b-256 | 6eb8931a675c3955074f8a73357e02b723d0e107d4e06bfbb4bfd6d7ff2aee0f |
File details
Details for the file doweb-0.1.6-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 277.2 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 | f0dd2221949855f98f3d76a419aa2003d1808a4519acf523aa2bed03ab351f45 |
|
MD5 | 831ca0189a0a5d48a15cd5c3debba707 |
|
BLAKE2b-256 | 8ed3b6cf9297dd8ec8473553be7e431368b2a0151ebceff6c785cd0e2da87433 |
File details
Details for the file doweb-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.6-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 | bb537dd18b74e268057a07d48059f16a018113d1522dfd7dfd37a00703821fe1 |
|
MD5 | ed1dce185bd6f05cac3ec17084c6b1f7 |
|
BLAKE2b-256 | a73c669b8903330336f5b7d60d697782b6309222792c569a83be108ea92701e1 |
File details
Details for the file doweb-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 299.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 | 747c6361bf25da2f3d1cf4811c908a819871ff09920e61d02e8e6e4e4329e275 |
|
MD5 | e6ef675cd7c9c4c2cb8084e2db1a2be8 |
|
BLAKE2b-256 | 5e2974ee1a98bf121c756d82d9b2c8ee68d8b0dc13b829fb0902ea6a490e5714 |
File details
Details for the file doweb-0.1.6-cp312-cp312-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 316.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 | 76322caf05b36268e3ca005cf18fef0e9519624b902dcd18ca42eda2c5ef954f |
|
MD5 | 2f2652baf0e8b236894ec0ddced182b4 |
|
BLAKE2b-256 | 83dac2ee760c8b8dec034e40d76bcf113454f3e59d1254288e3bd9a98617c5ce |
File details
Details for the file doweb-0.1.6-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 284.8 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 | c840cfd09bbe20d59e410e1177fa56695ce6ec6154ab521522579b83cb1d2c14 |
|
MD5 | 2f34a5c5134d7960d0fa71b9d5caba3e |
|
BLAKE2b-256 | 38fd1ed94d8da0228ae107f01ce8df79cb9ec0c414cf22146c9257315839bd02 |
File details
Details for the file doweb-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.6-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 | abfb1e224eab6a17add0a55fe412c96f3e8ce8c68984b2f7fa64ec96a27a01b7 |
|
MD5 | 5d64a4a630b50c669989fc90b2a86762 |
|
BLAKE2b-256 | d54ee9545af4b7f0b59391efa64d533a3b9cf68066d3519e26b3161509add6c0 |
File details
Details for the file doweb-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 299.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 | 0ac543ffa87fc4ccae76e403006cf92abe6512513beca62d050f8a2246fdeacb |
|
MD5 | 49bcc81440e4eb51ffb2366da7ab7e2a |
|
BLAKE2b-256 | 846eeee8f34c3801f29d08fad2cd92f2110ad3577b1aac2187ecda774be722c5 |
File details
Details for the file doweb-0.1.6-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: doweb-0.1.6-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 315.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 | fc37210e2afb9cbccf4a2363351c2520cee0c94ac9a0dbb10fc1542af09503a9 |
|
MD5 | bf1fe52b67e4503c794a3011c2b2135f |
|
BLAKE2b-256 | f47b924d276016e3c9dde2834aaeea0ffea2548d0ad5417fb2510cddece9c156 |