semvec/pypi-packages huggingface dataset:
rustycalc 0.2.0
Add your description here
License: MIT
Requires Python: >=3.8
Keywords: calculator, python, rust, maturin, pyo3

# Rusty Calc

![old-rusty-calculator-with-yellow-black-design-rests-blue-metal-background-calculator-has-digital-display-with-numbers-quot78138780quot-displayed-indicating-calculation_783884-495565](https://github.com/user-attachments/assets/6a66785d-378a-4969-91f7-e2ecb18d3566)

---

## Setup the project

- Clone the repository.

```bash
git clone git@github.com:deependujha/rustycalc.git
cd rustycalc
```

- Run the project.

```bash
uv sync
uv build
pip install dist/rustycalc.{...}.whl --force-reinstall # choose according to yours
```

Or,

```bash
maturin develop --release
pip install -e .
```

---

## Install from `PyPi`

- [RustyCalc on PyPi](https://pypi.org/project/rustycalc)

- Make sure you've `cargo` installed.

```bash
pip install -U rustycalc
```

---

## Usage

```python
import rustycalc as rc

print(f"{dir(rc)=}\n")
print("-"*50)
print(f"{rc.sum(5,4)=}\n")
print(f"{rc.diff(5,4)=}\n")
print(f"{rc.factorial(6)=}\n")
print(f"{rc.fibonacci(7)=}\n")
print("-"*50)
```
svgicon 0.1.0
SVG icons for Django.
License: MIT
Requires Python: >=3.10

# django-svgicon

[![pypi](https://img.shields.io/pypi/pyversions/django-svgicon.svg)](https://pypi.python.org/pypi/django-svgicon)

SVG icons for Django.

- Automatic SVG Sprite generator based on icons used in the page
- Read icons from directory and Python dict
- Customizable template tags
- In-memory cache

## Requirements
- Django >= 5
- Python >= 3.10

## Installation

```bash
pip install django-svgicon
```

To parse SVG files faster, install `lxml` [optional]:
```bash
pip install lxml
```

## Configuration
Add `svgicon` to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = (
    ...
    "svgicon",
    "YOUR_APP",
    ...
)
```

Add the middleware:
```python
MIDDLEWARE = [
    ...
    "svgicon.middleware.SvgiconMiddleware",
    ...
]
```

## Usage

1. Put the icons in `yourapp/static/svgicons`, for example:
```bash
yourapp/static/svgicons/menu.svg
```

2. Use it in your templates like this:
```html
{% load svgicon %}
<!DOCTYPE html>
<html>
  <head>
    <title>The App</title>
    {% svgicon_style %} <!-- before your app.css -->
  </head>
  <body>
    {% svgicon_sprite %}

    <main>
      <p>Click on the {% icon "menu" %} button to open the menu.</p>
      <button>{% icon "menu" %}</button>
    </main>
  </body>
</html>
```

For more examples like changing size or setting `aria-label`, follow the 
[demo template](demo/theapp/templates/index.html).

## Settings
```python
# By default, svgicon searches for icons using Django's static finders, 
# unless you specify a directory like this
SVGICON_ICONS_DIR = BASE_DIR / "myicons"

# Load icons from dict
SVGICON_ICONS = dict(
    square=(
        '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">'
        '<path d="M3,3V21H21V3" />'
        "</svg>"
    ),
)

# svgicon uses '1em' width and height for icons, which are relative to the parent's
# font-size.
SVGICON_WIDTH = '1em'
SVGICON_HEIGHT = '1em'

# Default CSS class for each icon
SVGICON_CSS_CLASS = 'svgicon'

# SVG symbol id prefix
SVGICON_SYMBOL_PREFIX = 'icon-'

# svgicon template tag names
SVGICON_TAGS = dict(
    ICON="icon",
    SPRITE="svgicon_sprite",
    STYLE="svgicon_style",
)
```

To auto-load svgicon without mentioning `{% load svgicon %}`,
modify template settings like this:
```python
TEMPLATES = [
    {
        "BACKEND": "django.template.backends.django.DjangoTemplates",
        "DIRS": [],
        "APP_DIRS": True,
        "OPTIONS": {
            ...
            "builtins": ["svgicon.templatetags.svgicon"], # add this 
            ...
        },
    },
]
```
deep-dummy-maths 0.1.0
A dummy library for mathematical functions created by Deependu Jha.
License: MIT
Requires Python: >=3.9
Keywords: maths, python, rust, maturin, pyo3

# Deep-Dummy-Maths

A dummy library for mathematical functions created by Deependu Jha.

## Installation

```bash
pip install deep-dummy-maths
```

## Usage

```python
from deep_dummy_maths import my_sum, my_diff, my_pro, my_div, my_factorial, hello_from_bin

my_sum(1, 2)  # Output: 3
my_diff(1, 2)  # Output: -1
my_pro(1, 2)  # Output: 0.5
my_div(1, 2)  # Output: 0.5
my_factorial(10)  # Output: 120
hello_from_bin()
```

---

## For future reference

### Using **Poetry** with `src/`

https://browniebroke.com/blog/convert-existing-poetry-to-src-layout/

```toml
[tool.poetry]
# ... other metata
packages = [
     { include = "my_package" },
     { include = "my_package", from = "src" },
  ]



[tool.pytest.ini_options]
pythonpath = ["src"]
```