Pyttman

Latest version: v1.3.2

Safety actively analyzes 681874 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

1.3.1

:star2: News
* **New setting variable: `STATIC_FILES_DIR`**

This new setting is set by default in all new apps, and offers a standard way to keep static files in a project.
All new apps, even ones created with older versions of Pyttman, will have the `static_files` directory
as part of the app catalog.

* **Simplified the use of the logger in Pyttman**
The logger in pyttman offers a simple, ready-to-use logger for your app.
It offers a decorator previously as `pyttman.logger.logged_method` which is now simplified to `pyttman.logger`.


**🐛 Splatted bugs and corrected issues**

* **Corrected an issue when using `pyttman runfile` to execute scripts**
An issue with the relative path to the script file being exeucted has been
corrected; now, an absolute path can be provided to the script file, and
the script will be executed as expected.
**

1.3.0.1

Hotfix release, addressing an issue with PyttmanCLI executing scripts,
where the directory of the app is included in the path for a script
twice.

1.3.0

In this release, we're introducing some cool new features along with
some bug fixes.
The star of the show this time is the test suite class for improved
testability of Pyttman applications.

:star2: News
* **Test suite class for developing tests**

A new Test suite class has been developed for use in Pyttman apps, for
making it easier to write unit test for Pyttman applications. The test automatically
loads the app context for the app in which the tests are created in.

python
from pyttman.testing import PyttmanTestCase

class TestUserSynchronizer(PyttmanTestCase):

def setUp(self) -> None:
This setup hook works as with any TestCase class.
You have access to your pyttman app just as if the app was running.
app = self.app

def test_some_func(self):
self.fail()


* **New EntityField class for Decimal type**

For finance and other domains, the floating point precision
`float` isn't high enough. An industry standard is the `Decimal` type
and it's now supported in the `EntityField` ecosystem in Pyttman.

python

class EnterIncome(Intent):
income = DecimalEntityField()


* **New mode in Pyttman CLI: `runfile` - Run single scripts with Pyttman**

Some times a single script does the job, or the app you've developed
isn't designed to be conversational. For these situations, the new
PyttmanCLI command `runfile` is perfect. It will invoke a Python file
with the app loaded, providing you all the benefits of using Pyttman
without having to develop your app with a conversational approach.

python
someapp/script.py

from pyttman import app

if __name__ == "__main__":
print(f"Hello! I'm using {app.name} as context.")


Running the file above with PyttmanCLI:
python
$ pyttman runfile pyttman_app_name script.py

> Hello! I'm using pyttman_app_name as context.


* **New mode in Pyttman CLI: `-V` - See the version you're at**

This mode is quite simple. It returns the version of the installed
the version of the installation of Pyttman.

python
pyttman -V
1.3.0


**🐛 Splatted bugs and corrected issues**
* **Fixes problem where words with special characters where ignored in entities**

1.2.1.1

This is a hotfix release, addressing an issue with the integration with discord.py 2.0 API
were Pyttman incorrectly parsed the 'channel' property for the message.


**🐛 Splatted bugs and corrected issues**
* Fixes the discord integration

1.2.1

This release includes an important update for the discord client.
Any application using Pyttman will need to upgrade to this version for the
app to still work after new year 2023 due to Discord API changes.


**🐛 Splatted bugs and corrected issues**
* **Fixes [71](https://github.com/dotchetter/Pyttman/issues/71)**
* Reduced dependencies to 1/3 of previous versions, improving security and reducing dependency exposure.
* Fixes various spelling errors in the code and comments

1.2.0.4

This is a hotfix release, fixing an issue with BoolEntityField instances
not parsing the values correctly if the sought word is also part of the
'lead' and/or 'trail' tuples.


**🐛 Splatted bugs and corrected issues**
* **Fixes [69](https://github.com/dotchetter/Pyttman/issues/69)**

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.