A Python package for interacting with the Freddy API and other Aitronos services
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Aitronos Python Package
A Python package for interacting with the Freddy API and other Aitronos services. This package provides a command-line interface (CLI) for managing Aitronos projects and services.
Installation
pip install aitronos
CLI Commands
The aitronos CLI provides several commands for project initialization:
Basic Project Initialization
aitronos init <project_name>
Creates a new project with the standard Aitronos project structure:
src/- Source code directoryresources/- Project resourcesconfig.freddy.json- Configuration filerequirements.txt- Python dependenciesdocumentation.txt- Project documentationexecution_log.json- Execution logs
Hello World Example Project
aitronos init-hello-world <project_name>
Creates a basic Hello World example project that includes:
- Basic project structure
- Simple Click-based CLI example in
src/main.py - Pre-configured
requirements.txtwith Click dependency - Example README.md with usage instructions
Hello World with Parameters Example
aitronos init-hello-world-params <project_name>
Creates an advanced Hello World example that demonstrates CLI parameter handling:
- Complete project structure
- Advanced Click-based CLI example with parameter handling
- Example of using command-line options and arguments
- Detailed README.md with usage examples
Interactive Hello World Command
aitronos hello [OPTIONS]
A simple interactive command to demonstrate CLI parameter handling.
Options:
--name, -n TEXT: Name to greet (default: "World")--count, -c INTEGER: Number of times to greet (default: 1)
Example usage:
# Basic usage
aitronos hello
# Custom name
aitronos hello --name Alice
# Multiple greetings
aitronos hello --name Bob --count 3
Development
To set up the development environment:
- Clone the repository:
git clone https://github.com/Freddy-Development/aitronos-python-package.git
cd aitronos-python-package
- Install development dependencies:
pip install -e ".[dev]"
- Run tests:
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
Support
For support, please open an issue on the GitHub repository or contact the development team.
Library Usage
from Aitronos import Aitronos, Message, MessageRequestPayload
# Initialize with API key (recommended)
client = Aitronos(api_key="your_api_key")
# Or with username/password
client = Aitronos(username="your_username", password="your_password")
# Use the assistant messaging
messaging = client.assistant_messaging
response = messaging.execute_run(
MessageRequestPayload(
organization_id=123,
assistant_id=456,
messages=[Message(content="Hello!", role="user")]
)
)
Command Line Interface (CLI)
The Aitronos package includes a powerful CLI for common operations and project management.
Configuration
Before using the CLI, set up your configuration:
- Create a
config.jsonfile in your project root:
{
"test_key": "your_api_key",
"test_org_id": your_organization_id,
"test_assistant_id": your_assistant_id,
"test_username": "your_username",
"test_password": "your_password"
}
- Add
config.jsonto your.gitignoreto keep credentials secure:
echo "config.json" >> .gitignore
Available Commands
- Initialize a new project:
aitronos init my_project
This creates a new project with the following structure:
my_project/
├── config.freddy.json
├── documentation.txt
├── execution_log.json
├── requirements.txt
├── resources/
│ ├── __init__.py
│ ├── current_user.py
│ ├── helpers.py
│ ├── org_data.json
│ └── user_data.json
└── src/
├── main/
│ └── my_project.py
└── tests/
└── test_script.py
- Run the hello world example:
aitronos hello
Tests your setup with a simple hello world example using the Aitronos API.
- Use StreamLine functionality:
# Interactive mode
aitronos streamline
# Process a file
aitronos streamline --input input.txt --output output.txt
Project Templates
When initializing a new project with aitronos init, you get:
- Basic project structure
- Configuration files
- Example code
- Resource templates
- Test setup
The generated project includes:
- Logging setup
- Error handling
- User management
- API integration
- Basic test structure
Development Workflow
- Initialize a new project:
aitronos init my_aitronos_project
cd my_aitronos_project
- Update the configuration:
# Edit config.json with your credentials
vim config.json
- Install project dependencies:
pip install -r requirements.txt
- Start developing:
# Your main code is in src/main/my_aitronos_project.py
# Tests are in src/tests/
Development
To contribute or modify the package:
- Clone the repository:
git clone https://github.com/Freddy-Development/aitronos-python-package.git
cd aitronos-python-package
- Install development dependencies:
pip install -e ".[dev]"
- Run tests:
python -m unittest discover tests
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, please:
- Open an issue
- Contact us at support@aitronos.com
Security
To report security vulnerabilities, please email security@aitronos.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aitronos-4.5.2.tar.gz.
File metadata
- Download URL: aitronos-4.5.2.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2161bbf2e56b3caac347136295cf891bbe8e151f3087be49a31f95b25f55b438
|
|
| MD5 |
23129a69e80892fb814eb937b9131907
|
|
| BLAKE2b-256 |
62ca17078a74ffe78d30b46c3f9c555691f4365e48b52b0cad3b899c2d7c209e
|
File details
Details for the file aitronos-4.5.2-py3-none-any.whl.
File metadata
- Download URL: aitronos-4.5.2-py3-none-any.whl
- Upload date:
- Size: 43.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
156f79984387cb06419058398c21804d891bae7c98ba9cea8cdcba742576fed8
|
|
| MD5 |
edb4bb22bf65496a967818d1d64f75c3
|
|
| BLAKE2b-256 |
58ad3f58bec55b94f68eae8b2d5d2289eb9724c0680a8d340bd6774781a3ec3f
|