Ursina Proteins
A Python package for rendering protein structures in 3D using Ursina, as featured in Ursina's sample projects.
Installation
The package is published on PyPI, and can be installed with pip install ursina-proteins.
You can also clone the repo down and install dependencies with uv.
# Clone the repo
git clone https://github.com/HarrisonTCodes/ursina-proteins.git
cd ursina_proteins
# Install dependencies with uv
uv sync
Usage
You can render proteins from files in the (default) PDB format, or the mmCIF/PDBx format (by passing legacy_pdb = False in the Protein class constructor). Many protein files can be found at the RCSB Protein Data Bank.
You can use the library in an existing Ursina project by importing the Protein class and creating an instance from a protein file.
from ursina_proteins.protein import Protein
Protein("/path/to/file.pdb")
You can also test the library out by running demo.py. This script renders a simple scene with an example protein (insulin).
uv run src/demo.py
Contributions
Contributions are welcome. Please enable pre-commit hooks to catch and fix formatting/linting issues locally before raising a PR.
# Enable pre-commit hooks
uv run pre-commit install
Metadata
Release files for ursina-proteins 2.0.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 |
|---|---|---|---|---|
| ursina_proteins-2.0.1.tar.gz | 7.3 kB | Without provenance | Details for ursina_proteins-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ursina_proteins-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for ursina_proteins-2.0.1-py3-none-any.whl |
Total release size: 17.0 kB
Release files / ursina_proteins-2.0.1.tar.gz
| Download URL | ursina_proteins-2.0.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73246ec3e93abe867f291bc8ed22d030bb16753a9398a272b29838e4634d360b
|
|
BLAKE2b-256 checksum How to use checksums |
51e9d5781166ca3a8c028a77eff9c4a913ebc62313f6e2ef931b663ddb22038b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Release files / ursina_proteins-2.0.1-py3-none-any.whl
| Download URL | ursina_proteins-2.0.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
697a85a62b79ce54e8857d210bfaf3348e288606e9187b5ae9d462527c7186b8
|
|
BLAKE2b-256 checksum How to use checksums |
13dab65f1ad672f52976464cb5d16f898e8dc0972d176130f24516bae6e357f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Security for ursina-proteins 2.0.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.