Wilson Python Package
Python package for creating Wilson animations. See notebooks folder for example.
Usage
A simple example for creating an animation:
import numpy as np
import wilson
r = 5.0
t = np.linspace(0, 2*np.pi)
x = r * np.cos(t)
y = r * np.sin(t)
z = np.zeros_like(t)
path = np.column_stack((t, x, y, z))
orbit = wilson.Path(path, name='Moon Orbit')
earth = wilson.Sphere('Earth', description="That's our planet!", radius=1.0, color='blue')
moon = wilson.Sphere('Moon', description='Our oldest pal!', radius=0.27, color='grey')
moon.position = orbit
project = wilson.Project('Earth Moon',
author='wilson',
description='The Moon orbiting around the Earth.',
animationSpeed=2*np.pi / 5.0,
animatables=[earth, moon])
wilson.saveProject(project, '../examples/earth_moon.wlsn')
Known Issues
Parsing a project and immediately serializing it again might produce a different result. This is due to protobuf returning default values for missing properties of a built-in type (i.e. string, float, etc.).
While it is possible to circumvent this, it would bloat the protobuf files and was thus not done.
TODO
The package lacks early type check which might makes debugging software using a bit more tedious. Nevertheless, the output is guaranteed to meet the protocol as this is assured by protobuf.
Metadata
Release files for wilson3d 0.4.1
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 |
|---|---|---|---|---|
| wilson3d-0.4.1.tar.gz | 2.5 MB | Without provenance | Details for wilson3d-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wilson3d-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for wilson3d-0.4.1-py3-none-any.whl |
Total release size: 4.9 MB
Release files / wilson3d-0.4.1.tar.gz
| Download URL | wilson3d-0.4.1.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
557df388de616e2cd403b99d08a4be7d303b300999be247fe29488c1428ad20d
|
|
BLAKE2b-256 checksum How to use checksums |
6d05a2a446fa75be8741a25802537395f39be5298f4d86e39b5649954e93406c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.10
|
Release files / wilson3d-0.4.1-py3-none-any.whl
| Download URL | wilson3d-0.4.1-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2124e59e848e7d98a1885e8edaabdda12694d242d17c6cb86cec1afd592fc791
|
|
BLAKE2b-256 checksum How to use checksums |
4c4c0f156d406be1e618320cdd916481fe9d9269701ecb65a7df5bddf63eec0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.10
|
Security for wilson3d 0.4.1
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.