libSG: Scene Generation Library
Project description
scene-builder
Local testing:
pip install --upgrade build
python -m build
pip install -e .
Running Scene Builder Flask App
Fetch stk/scenestate data and place under your FLASK_BASEDIR.
FLASK_BASEDIR=~/path/to/data flask --app libsg.app --debug run
curl localhost:5000/scene/retrieve/
curl -X POST -H 'Content-Type:application/json' -d @object_add_category_position.json http://127.0.0.1:5000/object/add -o object_add_category_position_output.json
curl -X POST -H 'Content-Type:application/json' -d @object_remove_category.json http://127.0.0.1:5000/object/remove -o object_remove_category_output.json
Packaging
Below packaging follows guidelines at https://packaging.python.org/en/latest/tutorials/packaging-projects/
Generate tokens on pypi and store in .pypirc file as below:
[testpypi]
username = __token__
password = pypi-XXX
[pypi]
username = __token__
password = pypi-XXX
NOTE: uploads with a specific version are only allowed once.
Thus, be careful about current version tag in pyproject.toml file.
Deploying test package:
pip install --upgrade build twine
python -m build
python -m twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps libsg
Deploying package to real pypi index is same as above except for much simpler upload and install commands:
python -m twine upload dist/*
pip install libsg
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libsg-0.0.1rc7.tar.gz.
File metadata
- Download URL: libsg-0.0.1rc7.tar.gz
- Upload date:
- Size: 82.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
527f8194de577283f0905f61b8802396a6aa350d646db2cd8462d886c8bf78fc
|
|
| MD5 |
d283459034a912f9910ad8e79fda743f
|
|
| BLAKE2b-256 |
030e2a9278d287d2a6d6f950627ee5eb6a9aa22d4bafef0dbbaac8dd7e698572
|
File details
Details for the file libsg-0.0.1rc7-py3-none-any.whl.
File metadata
- Download URL: libsg-0.0.1rc7-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b18b05747553932b641d898b0abf50401d54bb47fbe8035b5f6bc9e4bfa4eba9
|
|
| MD5 |
22d64f40390d78d8a0aae95cec4dda8f
|
|
| BLAKE2b-256 |
86ee27e44678f2c493f8c81ca38a9c1a44fbaf642fb103c378f7432f55cf04ce
|