Skip to main content

No project description provided

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.

Example proteins

Installation

To install the library locally, 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-0.1.0.tar.gz (5.7 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-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ursina_proteins-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for ursina_proteins-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a0c29610028410eb96a3eadd4e9c19b35cd71dc2f9bcd5ca25cf22f63dafcd8
MD5 af3f0bbba6f1d42ab62b6f82c7d91fc6
BLAKE2b-256 ea44aabaa651ae9ff1c112e7321f654dc68659c4aee5073c94db6c10a8658c3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ursina_proteins-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 073174f9f446d915672a4817ded4ef8d43ab5fe8aac8ec1ce079b98a42b12cd2
MD5 f88d2fb5d9556f5de09eed683a3e969e
BLAKE2b-256 b838e5a3588d10e7893c4e8cf89c70274345064bc1d0ebf387ca71790be6d9f8

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