Catalog PyPI
Back to packageRELEASE DETAILS

0.1.6

PyPI

ai-llama-module

Simple and lightweight Python wrapper for Llama AI API

Published22 Sept 2025
Direct dependencies2
Transitive dependenciesNot calculated

README

Version 0.1.6 documentation

AI Llama Module

ai_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 ai_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:

You can also pass an API key through with the variable api_key when calling the function, otherwise it will default to the enviornment variable.

llama_ai = your_api_key_here

⸻

Usage

from ai_llama_module import call_ai

Single message

response = call_ai("Hello, Llama!")

print(response)

or you can use

response = call_ai("Hello World!", model, api_key = "YOUR KEY HERE")

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
•	You can specify the model used with the variable 'model' which defualts to Llama-4-Maverick-17B-128E-Instruct-FP8

⸻

Dependencies

•	requests
•	python-dotenv

⸻

License

MIT License – see LICENSE for details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
requests>=2.28.0runtime
python-dotenv
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.9",
  "evaluation": "NOT_EVALUATED"
}
python-dotenv>=0.21.0runtime

Distribution files

2 collected
ai_llama_module-0.1.6-py3-none-any.whl

bdist_wheel · 2.68 KB · Python py3

Source file
ai_llama_module-0.1.6.tar.gz

sdist · 2.35 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:11 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:a739f44ed6be4526e7fe0a38bf14d80e59634abd7918b58c6ff9761e7fab4bb6

Other collected versions

View all collected versions →