semvec/pypi-packages huggingface dataset:
crispr-toolkit 0.1.0
A pure-Python utility library for CRISPR and prime editing sequence design and validation.
License: MIT
Requires Python: >=3.10
Keywords: bioinformatics, crispr, genome-editing, prime-editing

# crispr-toolkit

A small, pure-Python utility library for CRISPR and prime-editing sequence design, validation, and basic scoring. This package is intended as a clean, well-tested FOSS backend for browser tools and scripting workflows.

> This project is fully independent from Helix Studio internals and is provided as a standalone, open-source utility library.

## Installation

```bash
python -m pip install crispr-toolkit
```

## Quickstart

```python
from crispr_toolkit import (
    normalize_seq,
    find_pam_sites,
    validate_guide,
    design_pegRNA,
    basic_on_target_score,
)

seq = normalize_seq("acgtacgtGGGcttacggt")
sites = find_pam_sites(seq, "NGG")
result = validate_guide(seq[2:24])

print(sites)
print(result.is_valid, result.gc_content)

# Example: simple prime editing scaffold
components = design_pegRNA(
    ref_seq=seq,
    edit_pos=5,
    edit_type="substitution",
    edit_seq="A",
)
print(components.pbs, components.rtt)

# Example: basic rule-based on-target score
score = basic_on_target_score(seq[2:22])
print(score)
```

## Roadmap

Planned future features include:

- More PAM presets and convenience helpers.
- Simple off-target enumeration utilities.
- Additional rule-based prime editing recipes and presets.

## License

This project is released under the MIT License. See `LICENSE` for details.
pynjector 0.1.4
A lightweight Dependency Injection (DI) container for Python
License: MIT
Requires Python: >=3.12
Keywords: dependency injection, di, ioc, python

# Pynjector
![PyPI](https://img.shields.io/pypi/v/pynjector?style=flat-square)

A lightweight Dependency Injection (DI) container for Python that allows automatic resolution of dependencies based on constructor type hints.

## 🚀 Features
- Simple and intuitive API
- Automatic dependency resolution based on type hints
- Supports binding classes, factory functions, and pre-initialized instances
- Inspired by C#'s dependency injection approach

## 📦 Installation

Install via pip:

```sh
pip install pynjector
```

Install via poetry:

```sh
poetry add pynjector
```

## 🎯 Usage

```python
from src.pynjector import DIContainer


class Database:
    def query(self) -> str:
        return "Data from Database"


class Service:
    def __init__(self, db: Database):
        self.db = db

    def get_data(self) -> str:
        return self.db.query()


# Create the pynjector
container = DIContainer()

# Register dependencies
container.bind(Database)

# Resolve a service instance
service = container.resolve(Service)

print(service.get_data())  # Output: "Data from Database"
```