semvec/pypi-packages huggingface dataset:
simpel-hookup 0.1
Simpel global hook registry for django
License: MIT
Requires Python: >=3.6

# 🚀 Simpel Hookup

Simpel function hook for Django.
Install :

```shell

pip install simpel-hookup

```

Simpel hookup secara otomatis akan mencari `hooks.py` di dalam setiap aplikasi Django yang terinstall dalam project.

## Registrasi hooks

```python
# app/hooks.py

import simpel_hookup as hookup

@hookup.register("PROCESS_TEXT_HOOKS", order=1)
def process_text_replace_space(text):
    text = text.replace(" ", "-")
    print(text)
    return text

@hookup.register("PROCESS_TEXT_HOOKS", order=2)
def process_text_replace_dash(text):
    text = text.replace("-", "_")
    print(text)
    return text

```

## Memanggil hook

```python

# app/views.py
from django.http.response import HttpResponse
import simpel_hookup as hookup

def index(request):
    text = "Lorem ipsum dolor sit amet"

    hook_funcs = hookup.get_hooks('PROCESS_TEXT_HOOKS')
    for func in hook_funcs:
        text = func(text)

    return HttpResponse(text)

```
slam-cli 1.2.4
Slam is a command-line utility for developing Python applications.
License: MIT
Requires Python: >=3.10,<4.0

# Slam

Slam is a CLI that provides utilities for developing on Python projects. It works well with
[Poetry][] projects in particular, but you're not required to use it.

  [Poetry]: https://python-poetry.org/

### Installation

It is recommended to install Slam via Pipx, but you can also install it with Pip directly.

    $ pipx install slam-cli

> __Note__: Currently, Slam relies on an alpha version of `poetry-core` (`^1.1.0a6`). If you install it into
> the same environment as Poetry itself, you may also need to use an alpha version of Poetry (e.g. `1.2.0a2`).