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

# generation
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%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%2Fgeneration%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/core/utils/generation.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F&text=generation)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F&text=generation)[Share on Bluesky](https://bsky.app/intent/compose?text=generation%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F&title=generation)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F&t=generation)[Share on Email](mailto:?subject=generation&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F)[Share on WhatsApp](https://wa.me/?text=generation%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fcore%2Futils%2Fgeneration%2F&text=generation)
# `codeweaver.core.utils.generation`
[Section titled “codeweaver.core.utils.generation”](#codeweavercoreutilsgeneration)
Utility functions for generating identifiers and hashes.

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

**

```
get_blake_hash()
```

Hash a value using blake3 and return the hex digest.

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

**

```
get_blake_hash_generic()
```

Hash a value using blake3 and return the hex digest - generic version.

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

**

```
uuid7()
```

Generate a new UUID7.

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

**

```
uuid7_as_timestamp()
```

Utility to extract the timestamp from a UUID7, optionally as a datetime.