semvec/pypi-packages huggingface dataset:
anfema-django-testutils 0.8.0
Testrunner for django which covers html report and code coverage
Requires Python: >=3.9
Keywords: django,tests,coverage,testrunner

# anfema-django-testutils
The main intention of the `anfema_django_testutils` app is to provide a Django test runner which considers
snapshot tests as well as code coverage and human-readable html test reports. Moreover, the test result
`Precondition Failure` has been added.

This package integrates [snapshottest](https://github.com/syrusakbary/snapshottest) as well as
[coverage](https://coverage.readthedocs.io/en/latest/).

## Links
- Source available at: https://github.com/anfema/anfema-django-testutils
- Documentation available at: https://anfema.github.io/anfema-django-testutils

## Prerequisites
`anfema_django_testutils` is officially supported on:
- Python >= 3.9
- Django >= 3.2

## Installation
```bash
$ pip install anfema-django-testutils
```
## Setting up


Update your Django `settings.py` to use the `anfema_django_testutils` test runner:
```python
# settings.py

INSTALLED_APPS = [
    ...
    "mathfilters",
    "anfema_django_testutils",
]

TEST_RUNNER = "anfema_django_testutils.runner.TestRunner"
```

For further information see the `anfema_django_testutils` documentation.

## Usage
For writing test cases use the `anfema_django_testutils.testcases.TestCase` rather than the `django.test.TestCase`:

```python
# app/tests.py

from anfema_django_testutils.testcases import TestCase


class CustomTest(TestCase):
    ...
```

## Create documentation
To generate the `anfema_django_testutils` documentation from the local sources, run in a terminal:

```bash
$ pip install tox
```

```bash
$ tox -e docs -- docs/build
```

## Run tests
To execute the `anfema_django_testutils` tests, run in a terminal:

```bash
$ pip install tox
```

```bash
$ tox
```

## License
Licensed under the MIT-clause license; see `LICENSE` for details.
pip-qt 0.0.9
pip manager
Requires Python: >=3.4
Keywords: pypi,pip,packages,package,installer

# pip-qt
![PyPI - Version](https://img.shields.io/pypi/v/pip-qt)

pip qt widget to install new python modules from within your python environment.  

> ⚠️ WARNING, since this runs in Qt, you might get bugs when trying to (un)install or update the active Qt bindings.
> or any package that has a Qt binding as (indirect) dependency

![image](https://github.com/hannesdelbeke/pip-qt/assets/3758308/272b56de-ada0-45f3-a813-75db8a749688)

Show the window:
```python
import pip_qt
widget = pip_qt.show()
```

### Dcc plugins
<img src="https://raw.githubusercontent.com/tandpfun/skill-icons/59059d9d1a2c092696dc66e00931cc1181a4ce1f/icons/Blender-Dark.svg" width="32" style="max-width: 100%;"> if using Blender, check out the [pip qt addon](https://github.com/hannesdelbeke/pip-qt-addon)  
<img src="https://raw.githubusercontent.com/hannesdelbeke/gamedev-emojis/main/tools/emoji-maya.png" width="32" style="max-width: 100%;"> if using Maya, check out the [maya-pip-qt plugin](https://github.com/hannesdelbeke/maya-pip-qt)  


## Commands
- For advanced users, you can add options in the package name field, e.g. `--index-url http://my.package.repo/simple/ SomePackage` instead of `SomePackage`
- install auto adds `--target C:/target-path`, so don't add that, instead fill in the target field
- upgrade, type `--upgrade package-name` in the text field & click install
- editable install, type `-e C:/local-package-path` in the text field & click install

### 🔍 search packages on PyPI
- type `PackageName` in package field.
- click search

### ▶️ install a package
- type package name in package field
- click install

### ▶️ install a local package 
A local editable install speeds up your development.
Changes to your scripts in your IDE are automatically loaded in your app (after app restart or `importlib.reload`).
- type `-e path/to/packaged/repo` (ensure your local repo has a `pyproject.toml` or `setup.py`)
- click install

### 📃 list installed packages
See all installed packages, their versions, and location
- click the list button

# TODO
- [ ] ❌ uninstall
- [ ] 📃 list dependencies


### Dependencies
developed on Windows, Mac support in progress
- [py-pip](https://github.com/hannesdelbeke/py-pip)
- `pip-search` (optional, used for search, type `pip-search` and click install)
- qtpy



### Similar
let me know [here](https://github.com/hannesdelbeke/pip-qt/issues/new) if you find a similar project, and I'll link it below:
- DEAD https://github.com/open-cogsci/python-qtpip 3y old, outdated: uses pip search which is not supported anymore , unclear docs
- DEAD https://github.com/techbliss/Pip_QT_Gui 8 year old, PyQt4
- ARCHIVED https://github.com/NathanVaughn/PipQt 4year old, - PySide2, nice UI
tracescopio 2.0.1
Tracescopio - um capturador simples de tracebacks
Keywords: python,traceback

Tracescopio: Simplifying Stack Trace Retrieval for Your Django Applications Remotely

Tracescopio is a tool designed to make obtaining stack traces from your python app easy: the events are sent to your Tracescopio app. (You can install Tracescopio app in your own server. [See more.](https://github.com/t3rcio/tracescopio))

## Get started
Firts of all, make sure your have your own server running.
After that, use the pip command to install the tracescopio in your app:

    pip install tracescopio

Put the the your Tracescopio url server in your project's settings.py file:

    (...)
    TRACERSCOPIO_SERVER = '<your tracescopio-app url>'

Obtain the IDE code for your app:

    python manage.py shell
    from tracescopio import scopio
    TracescopioApp.new(name='foo', url='foo.com')
    {'ide':some-code-for-your-app', 'msg':'Success'}

Put the "ide" code in your project's settings.py file:

	(...)
    APP_TRACESCOPIO_IDE = '<the ide code for you app>'

Finally, to get the stack traces you can use the decorator or the middleware.

Decorator
--
Add the import

    (..)
    from tracescopio.decorators import traceme

Add the decorator

    @trace
    def the_view_raising_some_exception(request, *args, **kwargs):
        (...)

Middleware
--
In your settgins.py's middleware section, add the tracescopio middleware:

    (...)
    MIDDLEWARE = [
    	(...)
        "tracescopio.middleware.telemetria.TelemetryMiddleware",
    ]

That is it!
django-log-to-telegram 2023.12.18
a simple logger that sends 500 exceptions to a Telegram bot of your choice.
Requires Python: >3.0

======================
Django Log to Telegram
======================

This is a simple logger that sends 500 exceptions to a Telegram bot of your choice.

Quick start
-----------

Install django-log-to-telegram:

.. code:: bash

    pip install django_log_to_telegram

1. register a bot on Telegram (`with BotFather <https://core.telegram.org/bots#6-botfather>`_), start a chat with it and put
the Api token in settings.py:

.. code:: python

    LOG_TO_TELEGRAM_BOT_TOKEN = '12345678:replace-me-with-real-token'

Different errors will be fired if the BOT_TOKEN is not active or if there is no chat active with it.

2. add the 'django_log_to_telegram' to your INSTALLED_APPS setting:

.. code:: python

    INSTALLED_APPS = [
        ...
        'django_log_to_telegram',
        ...
    ]

3. add the `django_log_to_telegram.log.AdminTelegramHandler` to your app's logging configuration, for example:

.. code:: python

    LOGGING = {
        'version': 1,
        'disable_existing_loggers': False,
        'filters': {
            'require_debug_false': {
                '()': 'django.utils.log.RequireDebugFalse'
            }
        },
        'handlers': {
            'telegram_log': {
                'level': 'ERROR',
                'filters': ['require_debug_false'],
                'class': 'django_log_to_telegram.log.AdminTelegramHandler',
                'bot_token': LOG_TO_TELEGRAM_BOT_TOKEN,
            }
        },
        'loggers': {
            'django.request': {
                'handlers': ['telegram_log'],
                'level': 'ERROR',
                'propagate': True,
            },
        },
    }

if you want to test this logger in a debug environment, just remove the `filters': ['require_debug_false'],` line in the
'handlers' dictionary.

4. Run `python manage.py migrate` to create the django_log_to_telegram models.

If everything went well, you bot will then begin sending messages on 500 exceptions.

There is a *very basic* test app provided in the folder test_app. It is configured to send errors to telegram even with
DEBUG active, so that it can be useful with just a

.. code:: python

    ./manage.py runserver

It does not provide any database configuration, and most of Django basic settings are stripped out, so any use of it
outside the very basic testing of the django_log_to_telegram mechanism is deprecated to say the least.