Installation
Install it by cloning the git reprository or from PyPi using:
pip install obpcreator
Example from pyvista cube
from obpcreator.simple_input import SimpleBuild
import pyvista as pv
cube1 = pv.Cube(center=(15,-15,5),x_length=10,y_length=10,z_length=10)
cube2 = pv.Cube(center=(15,0,5),x_length=10,y_length=10,z_length=10)
cube3 = pv.Cube(center=(15,15,5),x_length=10,y_length=10,z_length=10)
cube4 = pv.Cube(center=(0,-15,5),x_length=10,y_length=10,z_length=10)
cube5 = pv.Cube(center=(0,0,5),x_length=10,y_length=10,z_length=10)
cube6 = pv.Cube(center=(0,15,5),x_length=10,y_length=10,z_length=10)
cube7 = pv.Cube(center=(-15,-15,5),x_length=10,y_length=10,z_length=10)
cube8 = pv.Cube(center=(-15,0,5),x_length=10,y_length=10,z_length=10)
cube9 = pv.Cube(center=(-15,15,5),x_length=10,y_length=10,z_length=10)
build = SimpleBuild(
meshes = [cube1, cube2, cube3, cube4, cube5, cube6, cube7],
spot_size = [1],
beam_power = [660],
scan_speed = [2031000],
dwell_time = [515000],
infill_strategy = ["line_concentric", "line_concentric", "line_spiral", "line_spiral", "line_snake", "point_random", "point_ordered"],
infill_settings = [{'direction': 'inward'}, {'direction': 'outward'},{'direction': 'inward'}, {'direction': 'outward'}, {},{},{'x_jump':2, 'y_jump':2}],
infill_point_distance = [0.1],
layer_height = 0.1,
rotation_angle = [0],
)
build.prepare_build(r"C:\Users\antwi87\Downloads\slicerTest2")
To package
- Delete old builds in the \dist folder
- Update the version in the pyproject.toml file
- run "python -m build"
- upload to pip with "twine upload dist/*"
Metadata
Release files for obpcreator 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| obpcreator-0.0.12.tar.gz | 14.9 kB | Without provenance | Details for obpcreator-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| obpcreator-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for obpcreator-0.0.12-py3-none-any.whl |
Total release size: 33.0 kB
Release files / obpcreator-0.0.12.tar.gz
| Download URL | obpcreator-0.0.12.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6026e5e85ae6e7d394e5cfc09341fd5266ba242b319dd6bacecab33fe27a6238
|
|
BLAKE2b-256 checksum How to use checksums |
2d1109e57a36072fa30033771705d28528e02058d68810180bd8250b11c78f7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / obpcreator-0.0.12-py3-none-any.whl
| Download URL | obpcreator-0.0.12-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
464dcb2fb4ae611067392d03d30ae46a4490391b16a119fcff578e922fe2082d
|
|
BLAKE2b-256 checksum How to use checksums |
788aa412cfb83f7626422cfb8567324aa4ddb91ad2978698e41e2afdd83baa31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for obpcreator 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.