semvec/pypi-packages huggingface dataset:
date-builder 1.0.2
Tree-based date filtering utilities
License: MIT
Requires Python: >=3.10

# DateBuilder

**DateBuilder** is a high-level Python utility for managing, filtering, and querying collections of dates stored in a **Red Black Tree (RBTree)**.

It provides a clean, expressive API for adding date ranges, filtering by calendar fields, and performing efficient date queries, while guaranteeing predictable performance and sorted traversal.

---

## Why DateBuilder?

DateBuilder is useful when you need to:

- Store large collections of dates efficiently
- Perform frequent date-based queries (year, month, day)
- Filter dates deterministically and in sorted order
- Enforce constraints like allowed days of the week
- Avoid ad-hoc list filtering or repeated date generation

Dates are stored as **keys** in an RBTree, giving strong performance guarantees and deterministic behavior.

---

## Features

- Store dates in a balanced Red Black Tree
- Add single dates or inclusive date ranges
- Delete individual dates or ranges of dates
- Filter dates by:
  - year
  - month
  - day
  - combinations of the above
- Include or exclude specific days of the week
- Efficient range queries
- Sorted traversal
- Explicit, exception-driven error handling

---

## Basic Usage

This example demonstrates the most common workflow:  
include days of the week, add a date range, and filter results.

```python
from datetime import date
from bintrees import RBTree
from date_tree_builder.date_builder import DateBuilder

tree = RBTree()
builder = DateBuilder(tree, date_obj="example")

# Include all days of the week
builder.include_days_of_week(include_all=True)

# Add an inclusive date range
builder.add_dates(date(2025, 1, 1), date(2025, 1, 31))

# Filter dates in January 2025
filtered = builder.filter_dates(month=1, year=2025)
```

## Installation

Install from PyPI:

```bash
pip install date-builder
PureNote 0.0.5
A small python package
License: MIT
Requires Python: >=3.8

# PureNote
NoteBook PyPi Package

This repository contains the source code and documentation for the Inception Renderer Python package, which is available on PyPi. The Inception Renderer is a powerful tool for rendering any youtube videos and any web page over the Jupyter/Colab Notebook.

# How to run?

## Installation:

#### Create a conda environment

```bash
conda create -n inrenderer python=3.8 -y
```

```bash
conda activate inrenderer
```


```bash
pip install -r requirements_dev.txt
```
django-delete-guard 0.1.1
Blocks dangerous Django ORM QuerySet.delete() calls in production.
License: MIT
Requires Python: >=3.9
Keywords: delete, django, guard, orm, production, safety

# django-delete-guard (DeleteGuard)

**Blocks dangerous Django ORM deletes in production — before they happen.**

Backups and alerts are too late.  
This stops risky `QuerySet.delete()` calls **at execution time**, unless the developer explicitly opts in.

---

## Why this exists

If you’ve ever:
- wiped production with a bad `.delete()`
- underestimated cascade deletes
- run a “quick cleanup” script in prod
- trusted migrations too much

…this is for you.

**Most catastrophic data loss is valid code with invalid intent.**  
Django makes bulk deletes deceptively easy. This guard makes them explicit.

---

## What it does (V1)

In **production only** (`APP_ENV=production|prod`), it blocks:

- ❌ **Unfiltered deletes**  
  `Model.objects.all().delete()`

- ❌ **Bulk deletes over 100 rows**

Unless you explicitly override with intent.

Everything else works normally.

---

## Install (60 seconds)

```bash
pip install django-delete-guard
camptown 0.3.19
Semantic-HTML player engine
License: MIT
Requires Python: <4.0,>=3.11

# Camptown

A simple, accessibility-minded, semantic-HTML-based audio player for embedding albums into webpages. The player has the following features:

* Embed it with any ordinary `<iframe>`, e.g.:

    ```html
    <iframe src="https://example.com/player-embed/index.html"></iframe>
    ```

* Add one of `#compact`, `#playeronly`, `#notracklist`, or `#albumart` to choose a different layout for the embed, e.g.:

    ```html
    <iframe src="https://example.com/player-embed/index.html#compact"></iframe>
    ```

This is just the player template and a Python wrapper. If you want a fully-fledged editor, check out [Bandcrash](https://fluffy.itch.io/bandcrash).

[![Documentation Status](https://readthedocs.org/projects/camptown/badge/?version=latest)](https://camptown.readthedocs.io/en/latest/?badge=latest)