Skip to main content

PyRomusa AI — v0.11.0 🤖

  • Version type: STABLE
  • Release date: 2026-10-24

Overview

This version/framework focuses on creating a very simple, beginner-friendly chatbot system, built with:

  • custom logic (Chatbot() object)
  • real machine learning models (RealChatbot() object)

It exists to:

  • help beginners understand how chatbot logic can work
  • allow fast experimentation with simple AI-like behaviour
  • avoid complex frameworks and heavy dependencies (Chatbot() object)

What makes it different:

  • you can avoid neural networks, hidden layers, ML libraries (Chatbot() object)
  • you can using LLM tehnologies (RealChatbot() object)
  • fully custom, readable logic

This version implements two types of chatbot objects:

  • Chatbot() (optimized for few training examples and hardware-undemanding)
  • RealChatbot() (optimized for large, serious projects, real experimentation and hardware-demanding)

Files Included

General structure (exactly this structure will be found if you search in 📁all versions of this repository):

|-📁PyRomusa_AI - vX.Y.Z/
|----📄README.md
|
|----📁PyRomusa_AI/
|-------- 🐍PyRomusa_AI.py
|-------- 🐍errors.py
|
|-------- 📁Datasets/
|------------ more Python files...
|
|-------- 📁Reply_Engines/
|------------ more Python files...

More exact structure (if you search in the 📁src folder):

|- 📁src/
|--- ⚙️pyproject.toml
|--- 📄README.md
├─── 📁pyromusa_ai/
    |--- 🐍core.py
    |--- 🐍__init__.py
    |--- 🐍errors.py
    ├─── 📁Datasets
    └─── 📁Reply_Engines

Where:

File/Folder name Description
📁PyRomusa_AI - vX.Y.Z , 📁src/ The main folder containing everything for that version of the framework (full framework code + 📄README.md)
📄README.md Documentation for this specific version
📁PyRomusa_AI/ , 📁pyromusa_ai/ The secondary folder, which only has all the code that contributes to the 100% functional PyRomusa AI
🐍PyRomusa_AI.py , 🐍core.py The main/core code of PyRomusa AI
📁Datasets/ Folder with some optional code for the main framework code (🐍PyRomusa_AI.py) for ready-made data to train your chatbot
⚙️pyproject.toml A very important file to be able to install with pip install, but completely useless if you install PyRomusa AI manually
🐍errors.py A new file from 0.6.0, here you find different types of errors that you can catch in PyRomusa AI
📁Reply_Engines/ The folder containing the most important lines of code for the main goal of PyRomusa AI. These lines of code are mandatory for generating responses based on a prompt.

What's New

  • Docstrings for all available functions: Now, to find out in an instant what a specific function does and what role each of its parameters plays, you simply need to hover your cursor over that function; you will then see a description of the function along with all the available parameters. (works on VSCode)

  • |RealChatbot() object| Raw text as training example: Do you want your chatbot to learn how the language you’re training it on works, or perhaps you simply lack question-answer pairs? Well, you can now use the bot.trainer.start() function: set the example_type parameter to "raw" and provide your raw text in the training_input_example parameter—it’s as simple as that.

  • |RealChatbot() object| Timer on training loop: Find out how many seconds your training session lasted by setting the show_total_time_of_training_when_ends parameter to True. The result will appear when the training session ends.

  • |RealChatbot() object| Censored words system: This system has actually been in place within Chatbot() for some time now. If you aren't yet familiar with it, its purpose is to replace certain words with others, thereby helping to reduce the use of vulgar language in the responses.

  • |RealChatbot() object| New parameters added (weight_decay & optimizer_type) in bot.trainer.start() function: For greater flexibility, you can now change the optimizer type (currently AdamW or Adam) for training. The weight_decay parameter serves the exact same purpose as it does in PyTorch optimizers.

  • |RealChatbot() object| Specified value type for all parameters available on bot.trainer.start() function: Each parameter here should accept only one type of value (integer, string, float, or boolean). To prevent future errors and avoid running code unnecessarily, you can now receive an error before the code executes, allowing you to correct the mistake immediately.

  • |RealChatbot() object| New tokenizer type option, "semiwords-level": Are you looking for something between a word and a character—a balance between the quality of the responses and the flexibility of generation? Well, this tokenizer groups about 2–3 letters (on average) into a single token.

  • |RealChatbot() object| A optional feedback system (with y/n) while you are talking to the chatbot: This system is recommended if you call the bot.reply_at() function multiple times during a single execution. It serves to refine the chatbot's final responses based on user preferences by calculating the similarity between the most recently generated response and a list of previously rejected responses. If the similarity exceeds the value defined by the max_allowed_similarity_procent_with_banned_replies parameter (a float representing a percentage), the system will attempt to regenerate the response until one with a lower similarity score is produced, subject to a specified maximum number of attempts.

  • |RealChatbot() object| Clear separation between special tokens and normal tokens: In case you didn't know, special tokens form an important part of the training text structure, while normal tokens are those entered by the user to help the chatbot converse more naturally. Well, chatbots can now generate special tokens directly and fully; this positively influences the quality of the generated response, making it less likely that the chatbot will say things unrelated to the prompt (though this also depends on the training examples).

  • |RealChatbot() object| Removing unnecessary comments from the code: To keep the source code cleaner, I have removed many unnecessary comments. This does not, in any way, affect the practical use of the framework.

  • Update to the Romanian language dataset, 'Teacher for PyRomusa AI': It has been added more training examples to be able to answer more prompts. It is now a better dataset than in the previous version.


✅ STABLE release notice:

  • The API is considered stable and ready for regular use
  • Core logic is implemented and tested
  • Behaviour is consistent across typical use cases
  • Minor bugs may still exist, but no breaking changes are expected

Quick Usage Examples

1. Creating your first functional chatbot ever

from pyromusa_ai import Chatbot

# Create a chatbot
bot = Chatbot(chatbot_name="RomusaBot")

# Add training data
bot.trainer.add_data("Hello!", "Hi there!")
bot.trainer.add_data("Bye!", "Goodbye!")

# Start training
bot.trainer.start()

# Get a response
print(bot.reply_at("Hello!"))

2. Learn to start using the framework

from pyromusa_ai import Chatbot

# Create a chatbot
bot = Chatbot()

# Get help
bot.helper.how_to_start()

Note:

Depending on how you installed PyRomusa AI, this framework, in your code, must be imported like this, one of these 2 variants:

a) If you installed with pip install ...:

from pyromusa_ai import Chatbot

b) If you installed manually from this repository, preserving file names, from 📁all versions folder:

from PyRomusa_AI import Chatbot # If your code is located in the same folder as 🐍PyRomusa_AI.py

or

from PyRomusa_AI.PyRomusa_AI import Chatbot # If your code is in the same folder as the folder that has all the resources for PyRomusa AI (📁PyRomusa_AI)

Metadata

Release files for pyromusa-ai 0.11.0

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

Source distribution (sdist)

Source distribution for pyromusa-ai 0.11.0
File Size Uploaded Provenance
pyromusa_ai-0.11.0.tar.gz 282.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyromusa-ai 0.11.0
File Interpreter ABI Platform
pyromusa_ai-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 573.5 kB

Release files / pyromusa_ai-0.11.0.tar.gz

Download URL pyromusa_ai-0.11.0.tar.gz
Size 282.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9c4fb8d31522c3c5990c2864f704dd918a7d4420f8be244d6314b3f05da855a6
BLAKE2b-256 checksum
How to use checksums
117f64e43acde99fa4e62a39017b468d6c776059c138bca84c53bb81f9714d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / pyromusa_ai-0.11.0-py3-none-any.whl

Download URL pyromusa_ai-0.11.0-py3-none-any.whl
Size 291.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
063df1934a0bd39d3302fb503a1ce97bc1bf51ed54e700da76ed4fea760fbb1e
BLAKE2b-256 checksum
How to use checksums
c33e2cf1f3949bbdee81fec406c095d80983a911c9585781478cfcc8eab45120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for pyromusa-ai 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyromusa_ai-0.11.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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