semvec/pypi-packages huggingface dataset:
rcsb.utils.chemref 0.97
RCSB Python Chemical Reference Data Utility Classes
Requires Python: >=3.9

# RCSB Python Chemical Reference Utility Classes

[![Build Status](https://dev.azure.com/rcsb/RCSB%20PDB%20Python%20Projects/_apis/build/status/rcsb.py-rcsb_utils_chemref?branchName=master)](https://dev.azure.com/rcsb/RCSB%20PDB%20Python%20Projects/_build/latest?definitionId=6&branchName=master)

## Introduction

This module contains a collection of utility classes for accessing and packaging
PDB chemical reference data.

### Installation

Download the library source software from the project repository:

```bash

git clone --recurse-submodules https://github.com/rcsb/py-rcsb_utils_chemref.git

```

Optionally, run test suite (Python versions > 3.9) using
[tox](http://tox.readthedocs.io/en/latest/example/platform.html):

```bash
tox
```

Installation is via the program [pip](https://pypi.python.org/pypi/pip).

```bash
pip install rcsb.utils.chemref

or install the local repository using:

pip install -e .
```
deep-variable 0.1.0
**Deep Variable** is a lightweight, zero-dependency Python utility designed to eliminate `KeyError` and `TypeError` crashes when working with deeply nested data structures
Requires Python: >=3.12

# Deep Variable 🚀

[![CI](https://github.com/CreativeCubicle/deep-variable/actions/workflows/ci.yml/badge.svg)](https://github.com/CreativeCubicle/deep-variable/actions)
[![PyPI version](https://badge.fury.io/py/deep-variable.svg)](https://badge.fury.io/py/deep-variable)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python Versions](https://img.shields.io/pypi/pyversions/deep-variable.svg)](https://pypi.org/project/deep-variable/)

**Deep Variable** is a lightweight, zero-dependency Python utility designed to eliminate `KeyError` and `TypeError` crashes when working with deeply nested data structures.

---

## ✨ Features

* **Safe Traversal**: Access deeply nested keys without worrying about missing parents.
* **Intelligent List Navigation**: Treat string indices (e.g., `"0"`) as list offsets automatically.
* **Zero Dependencies**: Pure Python Standard Library implementation—fast and secure.
* **Fully Type-Hinted**: Optimized for IDE IntelliSense and `mypy` strict mode.
* **Custom Separators**: Use dots, slashes, or any delimiter that fits your data.

---

## 🚀 The Difference

### The Old Way (Standard Python)
```python
# This is fragile and hard to read
email = None
if data and "users" in data and len(data["users"]) > 0:
    profile = data["users"][0].get("profile")
    if profile:
        email = profile.get("email", "default@site.com")
```

### The Deep Variable Way

```
from deep_variable import DeepVariable

# Flat, clean, and crash-proof
email = DeepVariable.get(data, "users.0.profile.email", default="default@site.com")
```
### 📦 Installation
Install the latest version using pip or uv:

```
pip install deep-variable
# OR
uv add deep-variable
```

### 🛠 Usage Examples
1. Safe Reading (Getter)
```
Python
data = {"org": {"teams": [{"name": "Engineering"}]}}
```

### Navigate through mixed Dicts and Lists
```
name = DeepVariable.get(data, "org.teams.0.name") # Returns "Engineering"
```
### Safe default on missing path
```
role = DeepVariable.get(data, "org.teams.0.role", default="Developer") # Returns "Developer"
```
### 2. Existence Checking
```
Python
data = {"status": {"active": False}}
```
### Returns True even if the value is Falsy
```
DeepVariable.has(data, "status.active") # True
DeepVariable.has(data, "status.missing") # False
```
### 3. Safe Writing (Setter)
```
Python
data = {}
```
#####  Automatically creates intermediate dictionaries
```
DeepVariable.set(data, "meta.tags.primary", "python")
print(data) # {'meta': {'tags': {'primary': 'python'}}}
```
### 🛡 Performance & Safety
Iterative Logic: Unlike recursive utilities, deep-variable uses loops, making it safe for exceptionally deep JSON structures without risking a RecursionError.

Strict Typing: Built with mypy --strict compliance
booklet-splitter 0.0.4
Make booklets out of pdf files

# Booklet splitting tool

[![codecov](https://codecov.io/gh/fanchuo/booklet_splitter/branch/master/graph/badge.svg?token=A5DS31YRIC)](https://codecov.io/gh/fanchuo/booklet_splitter)
![Build pass](https://github.com/fanchuo/booklet_splitter/actions/workflows/python-build.yml/badge.svg)

For a given large PDF file, bind a book.

### Installation

On your python environment, just issue this pip install command:
```bash
pip install booklet_splitter
```

### Usage

```bash
usage: booklets [-h] [--max_size MAX_SIZE] [--log LOG] [--targetdir TARGETDIR] [--no-layout] [--cover] input_pdf

For a given pdf, builds booklets to be printed, folded and eventualy assembled as a book

positional arguments:
  input_pdf             PDF file to be sliced as booklets

optional arguments:
  -h, --help            show this help message and exit
  --max_size MAX_SIZE   Max size for a booklet, must be multiple of 4
  --log LOG             Log level at execution
  --targetdir TARGETDIR
                        Directory where the booklets PDF are written
  --no-layout           Only splits your document in booklets
  --cover               Adds a page at the very beginning and at the very end, to paste a cover
```

### Useful commands to print pdf files
For a given pdf, print odd/even pages:
```bash
lpr -o page-set=odd <file>
lpr -o page-set=even <file>
```

For a given pdf, print recto/verso
```bash
lpr -o sides=one-sided <file>
lpr -o sides=two-sided-long-edge <file>
lpr -o sides=two-sided-short-edge <file>
```

Print black and white
```bash
lpr -o saturation=percent <file>
```