Skip to main content

LLM Blocks 🤖

GitHub stars PyPI

LLM Blocks is a Python library that provides a flexible and easy-to-use interface for interacting with OpenAI's GPT models. It provides a set of classes and methods to handle different types of interactions with the model, such as chat, template, and streamed responses.

📚 Table of Contents

🚀 Why Use LLM Blocks

LLM Blocks simplifies the process of interacting with OpenAI's GPT models. It provides a set of classes and methods that abstract away the complexity of the underlying API calls, allowing you to focus on what matters most - building your application. Whether you're building a chatbot, a code generator, or any other application that leverages AI, LLM Blocks can help you get there faster.

📂 Repo Structure

llm_blocks
├── blocks.py
├── block_factory.py
├── __init__.py
├── requirements.dev.txt
tests
└── test_blocks.py

💻 Installation

To install LLM Blocks, you can use pip:

pip install llm_blocks

🎯 Usage

Here's a simple example of how to use LLM Blocks:

from llm_blocks import block_factory

# Create a block
block = block_factory.get('block')

# Execute the block with some content
response = block.execute("Hello, world!")
# or execute like a function
response = block("Hello, world!")

# Print the response
print(response)

🧪 Testing

To run the tests, navigate to the root directory of the project and run:

python -m unittest discover tests

🤝 Contributing

Contributions are welcome! Please read our contributing guidelines to get started.

📝 License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

📧 Contact

If you have any questions, feel free to reach out to us at contact@llmblocks.com.

Metadata

Release files for llm-blocks 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-blocks 0.3.6
File Size Uploaded
llm-blocks-0.3.6.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-blocks 0.3.6
File Interpreter ABI Platform
llm_blocks-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / llm-blocks-0.3.6.tar.gz

Download URL llm-blocks-0.3.6.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
197dcfdfabc9087e46ef60e0bb539b7e1d8f5cc68659f2ca50e2938c705c0fc8
BLAKE2b-256 checksum
How to use checksums
7e05a722a9c47b49bbd8b5924324497614793fc04497158bdfc75e8ea319c653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.1

Release files / llm_blocks-0.3.6-py3-none-any.whl

Download URL llm_blocks-0.3.6-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
568486e011a405b94cce4e6d05292b99f4a892ab25d95608149aed8f9500f136
BLAKE2b-256 checksum
How to use checksums
0f89fc06714d9123539414da80473f011a43ea17681eba2c9798639a29597d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.1

Release history Release notifications | RSS feed

0.3.7

2 release files

This release

0.3.6 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page