semvec/pypi-packages huggingface dataset:
django-rubble 0.7.1
Extend django-model-utils and django-extensions.
Requires Python: <4.0,>=3.11
Keywords: django, django-extensions, django-model-utils

# django-rubble

[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![image](https://img.shields.io/pypi/v/django-rubble.svg)](https://pypi.python.org/pypi/django-rubble)
[![image](https://img.shields.io/pypi/pyversions/django-rubble.svg)](https://pypi.python.org/pypi/django-rubble)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)


## Description

Extend [django-model-utils](https://github.com/jazzband/django-model-utils) and [django-extensions](https://github.com/django-extensions/django-extensions).

>Version 0.4.0 code got deleted but still exists on PyPI.

## Features

- Serialized Number Generation (e.g. PN-0001, PN-0001; MY1, MY2)
    - [`NumberedModel`](models/number_models#django_rubble.models.number_models.NumberedModel)
- Useful Model and Form fields
    - [`SimplePercentageField`](fields/db_fields#django_rubble.fields.db_fields.SimplePercentageField)
- Several Useful Utility Functions
    - [`is_number`](utils/numeric_utils#django_rubble.utils.numeric_utils.is_number): checks if number could be coerced to a `float`
    - [`ratio_to_whole`](utils/numeric_utils#django_rubble.utils.numeric_utils.ratio_to_whole): .1 to 10; useful for percentages to "human"
    - [`whole_to_ratio`](utils/numeric_utils#django_rubble.utils.numeric_utils.whole_to_ratio): 10 to .1; useful for "human" to "percentages"
    - perhaps others, see docs when they're published

## Installation

### From PyPI

`pip install django-rubble`

### From GitHub (for development)

1. Clone the repository: `git clone https://github.com/WoosterTech/django-rubble.git`
2. Install the dependencies: `poetry install`

## Usage

Simply use the functions, fields, models.

The biggest "gotcha" is that `NamedSerialNumber` needs to be imported in your `urls.py` file; not actually sure why, perhaps someone can help me with that?

To use the automatic numbering, subclass `NumberedModel` and make sure to include a `number_config = SerialNumberConfig(...)` attribute. It will set defaults, but just as a standard integer starting at "1" with no prefix.

```python
class PartNumber(NumberedModel):
    name = models.CharField("Part Description", max_length=100)
    number_config = SerialNumberConfig(
        initial_value=10, prefix="PN-", width=4
    )
```

Numbers will be generated starting with "PN-0010" (note the padding to make a width of 4) and increment by the default step of "1."


Contributions are welcome! Please follow the guidelines in [contributing](/contributing/)


This project is licensed under the [MIT License](LICENSE).

## Contact

- Author: Karl Wooster
- Email: <karl@woostertech.com>
- Website: [woostertech.com](https://woostertech.com)

## License

MIT (see [License](LICENSE))

## Contributing

See [contributing](/contributing/)
render-engine-cli 2025.11.1
Command line tool for the Render Engine static site generator
Requires Python: >=3.10

## Render Engine CLI

[![PyTest](https://github.com/render-engine/render-engine-cli/actions/workflows/test.yml/badge.svg)](https://github.com/render-engine/render-engine-cli/actions/workflows/test.yml)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Discord](https://img.shields.io/discord/1174377880118104156?label=Discord&color=purple)](https://discord.gg/2xMQ4j4d8m)

Render Engine CLI is the CLI tool for the Render Engine static site generator.

## Learn More

- [CLI Documentation](https://render-engine.readthedocs.io/en/latest/cli/)
- [Check out the Render Engien Documentation](https://render-engine.readthedocs.io/en/latest/)
- [Contributors and Builders, Check out the Wiki](https://github.com/render-engine/render-engine/wiki)
- [Join the community!](https://discord.gg/2xMQ4j4d8m)

## Installing the Render Engine CLI

To use the render engine, you must have Python 3.10 or greater installed. You can download Python from [python.org](https://python.org).

- Linux/MacOS: [python.org](https://python.org)
- Windows: [Microsoft Store](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K)

The Render Engine CLI is available in PyPI and can be installed via `pip` or `uv`:

```shell
pip install render-engine-cli     # via pip
uv pip install render-engine-cli  # via uv
```

Since render engine itself is one of the dependencies of the CLI there is no need to isntall
them separately. With that, the version of render engine in the CLI dependencies is not pinned
to a specific version so if you want to pin it you can do so either in your `requirements.txt`
(`pip`) or `pyproject.toml` (`uv`) files.

```shell
# requirements.text
render-engine-cli
render-engine==<version to pin>


# pyproject.toml
[project]
dependencies = [
  "render-engine-cli",
  "render-engine==<version to pin>"
]
```

## Getting Started

Check out the [Getting Started](https://render-engine.readthedocs.io/en/latest/page/) Section in the [Documentation](https://render-engine.readthedocs.io)
battery 1.0.4
Cross-platform battery status
Requires Python: >=3.7
Keywords: battery, cross-platform

# Cross-platform, Python battery status

Simply `pip install battery` and use like:

```py
import battery
source = 'battery' if battery.is_discharging() else 'AC power'
print(f'On {source} at {battery.percent()}%')
health = battery.capacity() / battery.design_capacity()
print(f'Battery is at {health*100:4.1f}% health.')
```

The CLI always returns a JSON value:

```
$ python -m battery
{"is_discharging": true, "percent": 92, "minutes_to_empty": 215, "minutes_to_full": null, "capacity": 2388, "design_capacity": 4381}
$ python -m battery percent
92
```

## Functions

The following functions are available:

- `is_discharging`:        **True iff battery is discharging.**
- `is_charging`:           **True iff battery is charging.**
- `percent`:               **Integer percentage charge of battery**.
- `minutes_to_empty`:      **Minutes of battery life left.** May be empty.
- `minutes_to_full`:       **Minutes until the battery is charged.** May be empty (or 0 if full).
- `capacity`:              **The present capacity in mWh.** mAh on macOS; on Apple Silicon this may be a percentage.
- `design_capacity`:       **The factory capacity in mWh.** mAh on macOS.

The following minimum OS versions are supported:

- macOS 10.2 and later
- Linux 2.6.24 and later
- Windows Vista and later

A `NotImplementedError` is raised for unsupported OSes.

Pull requests and issues are always welcome for better compatibility! 

## Other notes

Also check out [`psutil`](https://github.com/giampaolo/psutil/)!

The whole package is **public domain**.
styxgraph 0.6.0
Execution graph middleware for Styx
Requires Python: >=3.10

# Project name

[![Build](https://github.com/styx-api/styxgraph/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/styx-api/styxgraph/actions/workflows/test.yaml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/styx-api/styxgraph/branch/main/graph/badge.svg?token=22HWWFWPW5)](https://codecov.io/gh/styx-api/styxgraph)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/styx-api/styxgraph/blob/main/LICENSE)
[![pages](https://img.shields.io/badge/api-docs-blue)](https://styx-api.github.io/styxgraph)

## Usage

```Python
from styxdefs import set_global_runner, get_global_runner
from styxgraph import GraphRunner

set_global_runner(DockerRunner())  # (Optional) Use any Styx runner like usual
set_global_runner(GraphRunner(get_global_runner()))  # Use GraphRunner middleware

# Use any Styx functions as usual
# ...

print(get_global_runner().mermaid())  # Print mermaid diagram

```
metro-db 0.7.0
A wrapper around the sqlite3 database for easy database development
Requires Python: >=3.8

# MetroDB
A wrapper around the sqlite3 database for easy database development

The overall goal is to write less SQL and more Python.

## Installation
[![PyPI version](https://badge.fury.io/py/metro_db.svg)](https://badge.fury.io/py/metro_db)

    sudo pip3 install metro_db

## Documentation
[![readthedocs badge](https://readthedocs.org/projects/metro_db/badge/?version=latest)](http://metro-db.readthedocs.org/)

[`http://metro-db.readthedocs.org/`](http://metro-db.readthedocs.org/)

## Continuous Integration
[![Build Status](https://app.travis-ci.com/DLu/metro_db.svg?branch=main)](https://app.travis-ci.com/DLu/metro_db)