Skip to main content

Python wrapper for Llama AI API

Reason this release was yanked:

Outdated

Project description

llama_module

llama_module is a lightweight Python wrapper for the Llama AI API, allowing you to easily send messages and receive AI-generated responses.

Installation

Install via pip:

pip install llama_module

Requirements: • Python 3.9+ • requests • python-dotenv

Make sure you have an environment variable llama_ai set with your Llama AI API key, e.g., in a .env file:

llama_ai=your_api_key_here

Usage

from llama_module import call_ai

Single message

response = call_ai("Hello, Llama!") print(response)

Multiple messages

messages = [ {"role": "user", "content": "Hello!"}, {"role": "assistant", "content": "Hi there! How can I help?"} ] response = call_ai(messages) print(response)

Features • Supports single and multi-message inputs • Automatically reads API key from environment variables • Simple and easy-to-use interface

Dependencies • requests • python-dotenv

License

MIT License – see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_llama_module-0.1.4.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_llama_module-0.1.4-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file ai_llama_module-0.1.4.tar.gz.

File metadata

  • Download URL: ai_llama_module-0.1.4.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ai_llama_module-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ad455fc12a9d4f34a577e55bc28594effcc8b0e7f3393dfe044574024240f231
MD5 7518cbb2fe015d11cb8d004364aa7c80
BLAKE2b-256 bd02c77f448686dc61b814a70992af4bdde7219a03e6f9cd992552822ce81f90

See more details on using hashes here.

File details

Details for the file ai_llama_module-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_llama_module-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a13c2dd2fd25664aae02f81772efae1580fcd4a8c590b5c51b65746d03f466b0
MD5 ebb6347475cf3e8b4570ed3bdba3bfcb
BLAKE2b-256 433a6289b911378b2647fe4c25f19f9d87b3b402f6a3ef3b2803566433783be6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page