---
title: general | CodeWeaver Docs
description: API reference for codeweaver.core.utils.general
url: "https://docs.knitli.com/api/core/utils/general"
type: static
generatedAt: "2026-04-17T17:21:08.302Z"
---

# general
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/core/utils/general.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F&text=general)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F&text=general)[Share on Bluesky](https://bsky.app/intent/compose?text=general%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F&title=general)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F&t=general)[Share on Email](mailto:?subject=general&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F)[Share on WhatsApp](https://wa.me/?text=general%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneral%2F&text=general)
# `codeweaver.core.utils.general`
[Section titled “codeweaver.core.utils.general”](#codeweavercoreutilsgeneral)
General utilities for CodeWeaver.

## Function: `deep_merge_dicts`
[Section titled “Function: deep_merge_dicts”](#function-deep_merge_dicts)

**

```
deep_merge_dicts()
```

Deep merge two dictionaries.

## Function: `dict_set_to_tuple`
[Section titled “Function: dict_set_to_tuple”](#function-dict_set_to_tuple)

**

```
dict_set_to_tuple()
```

Convert all sets in a dictionary to tuples.

## Function: `ensure_iterable`
[Section titled “Function: ensure_iterable”](#function-ensure_iterable)

**

```
ensure_iterable()
```

Ensure the value is iterable.

Note: If you pass `ensure_iterable` a `Mapping` (like a `dict`), it will yield the keys of the mapping, not its items/values.

## Function: `generate_collection_name`
[Section titled “Function: generate_collection_name”](#function-generate_collection_name)

**

```
generate_collection_name()
```

Generate a collection name for the project.

## Function: `rpartial`
[Section titled “Function: rpartial”](#function-rpartial)

**

```
rpartial()
```

Return a new function that behaves like func called with the given arguments from the right.

## Function: `supported_language_count`
[Section titled “Function: supported_language_count”](#function-supported_language_count)

**

```
supported_language_count()
```

Return the count of supported languages.

## Function: `supported_languages`
[Section titled “Function: supported_languages”](#function-supported_languages)

**

```
supported_languages()
```

Return the supported languages.