Solidpython Reloader
Automatically reload and recompile a solidpython project on file changes.
This tool is imitates Djangos runserver behaviour. Actually it depends on Django and uses the Reloader class that powers runserver.
Installation
- If you already haven't done so for solidpython, optionally create a virtualenv
- pip install solidpython-reloader
Usage
This package installs a script named sp-reloader into your PATH. You can use this to start a new project: sp-reloader startproject myproject
This creates a new project directory named myproject.
$ ls myproject/
myproject.py myproject.scad run.py
myproject.py is the file where your solidpython logic will reside in. myproject.scad will contain the translated openscad code. Right now, it is still empty. run.py is the reloader for your project. If you want to start working on your project, execute it:
$ python run.py
INFO:root:Solidpython reloader started.
This starts the reloader, opens openscad and should render the sample code in myproject.py.
Now you are ready to model! Every time you save myproject.py or any other .py file in the project directory, the scad file will be updated and rendered again.
Customization
Out of the box, the run.py script observes changes in all .py and .svg files in the current directory. You can add other files, file types or whole directories by adding additional reloader.watch_dir() directives in run.py. You should add them after the existing lines near the end of the file.
Metadata
Release files for solidpython-reloader 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| solidpython_reloader-0.1.4.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| solidpython_reloader-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / solidpython_reloader-0.1.4.tar.gz
| Download URL | solidpython_reloader-0.1.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
909409fb8868e0aca4ad753923288ec6d47cba5d55de0e6c4157cf6ad4c17681
|
|
BLAKE2b-256 checksum How to use checksums |
383d6a0220d4f883240994b8dc261dca46aa16dc9a7d369e00d4541cb0beec1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|
Release files / solidpython_reloader-0.1.4-py3-none-any.whl
| Download URL | solidpython_reloader-0.1.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b54665cebb40e4e17959cf2db7443dfaa2f72e8519b947a772894d1437a2c02c
|
|
BLAKE2b-256 checksum How to use checksums |
0c3ec67630729405225be0b90aff135f28c09f64ae7741b11cad130f5476d528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|