Skip to main content

A Python package for rendering protein structures of PDB format in 3D using Ursina

Project description

Ursina Proteins

Python Version from PEP 621 TOML Poetry Pre-Commit Check pre-commit black Conventional Commits License: MIT

A Python package for rendering protein structures of PDB format in 3D using Ursina, as featured in Ursina's sample projects.

Example proteins

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 Poetry.

# Clone the repo
git clone https://github.com/HarrisonTCodes/ursina-proteins.git
cd ursina_proteins

# Install with poetry
poetry install

Usage

You can use the library in an existing Ursina project by importing the Protein class and creating an instance from a PDB file. You can render any proteins in the PDB file format, and can find many available for download at the RCSB Protein Data Bank.

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).

poetry run python src/demo.py

Contributions

Contributions are welcome. Please use conventional commits and enable pre-commit hooks.

# Enable pre-commit hooks
poetry run pre-commit install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ursina_proteins-1.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ursina_proteins-1.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file ursina_proteins-1.1.0.tar.gz.

File metadata

  • Download URL: ursina_proteins-1.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-60-generic

File hashes

Hashes for ursina_proteins-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4c5a1313b2d7fa0844814d2de1ab28a663ef8353c70a19db5391d4a4c74d702c
MD5 80cd04aa098946de799ec8b1fc3e7a45
BLAKE2b-256 996823dcbcc6e75b572076cf642223c78bf3ca29f532fc57b7dc416975d72d19

See more details on using hashes here.

File details

Details for the file ursina_proteins-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ursina_proteins-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-60-generic

File hashes

Hashes for ursina_proteins-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d4ef0cff53fe99d60b1b421ba27f45713b50d8568beb5dcda0dd10e41745974
MD5 bdee6cebaeb5dc34e74495ab70092867
BLAKE2b-256 a955ce0c8b23e6f32de4bd86cdf6b089ac78a40f86cc5e11a88d1451f94bda5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page