Skip to main content

PISTL (pronounced as "Pistol")

Pystl_cover_image

About the figure above: Multiple shapes generated using PISTL as STL file and visualized in Meshmixer for the purpose of this picture. The visualization in PISTL can be done using pyvista, which is installed as a dependency._

What is PISTL?

PISTL is a small (micro) library that can be used in python to programatically create stereolithographic (stl) files of regular geometric shapes like circle, cylinder, tetrahedron, sphere, pyramid and others by morphing these shapes. pystl also provide functions that can be used to translate and rotate these stl objects.

In summary: PISTL can be used for the following purposes:

  • to create simple geometric shape files in .stl format.
  • visualize this stl files. [PySTL uses pyvista for such visualizations].
  • perform simple transformations like translate, rotate and scale shapes.

Examples

# This example creates a sphere stl using pistl

# step 1.0: import PySTL
import pistl
from pistl import shapes

#instantiate a sphere shape
sphere = shapes.Sphere()

# set the radius of the sphere
sphere.radius = 10

# set resolution of the sphere in longitude and latitude
sphere.resolution_latitude = 200
sphere.resoultion_longitude = 200

# once you have set the radius and resolution, call create method
sphere.create()

# call export method to set stl filename and shape name
sphere.export('Results/sphere.stl', 'sphere')

# Finally visualize the shape in trame window or in a jupyter kernal using the visualize method.
sphere.visualize().plot(color='magenta', text=f'{sphere.name}')

Pystl_generated_sphere_stl

PISTL is an open source project that welcomes contributions from developers from diverse community and backgrounds._

contact : sumanan047@gmail.com to get added on the project formally.

Metadata

Release files for pistl 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pistl 1.2.0
File Size Uploaded Provenance Actions
pistl-1.2.0.tar.gz 11.2 kB Without provenance Details for pistl-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pistl 1.2.0
File Interpreter ABI Platform Actions
pistl-1.2.0-py3-none-any.whl Python 3 none any Details for pistl-1.2.0-py3-none-any.whl

Total release size: 22.6 kB

Release files / pistl-1.2.0.tar.gz

Download URL pistl-1.2.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c21092cd5423e1a0c0cf94da14b087912a5a39e1337b13faaeee2e6be9aba896
BLAKE2b-256 checksum
How to use checksums
50acd2da3d8d389688ee4f03ac1c07ce6b5030fb7dfd310fad87d050971a3954
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.9.12 Darwin/23.6.0

Release files / pistl-1.2.0-py3-none-any.whl

Download URL pistl-1.2.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ee004f656c529c882ab5974851dfc03e0eec64d564c1690641fb350950cd27b
BLAKE2b-256 checksum
How to use checksums
d05405373c4fc583dd2762a0041c7043bdc1c1eab7427f7712881ba9bdebf113
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.9.12 Darwin/23.6.0

Security for pistl 1.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page