semvec/pypi-packages huggingface dataset:
aesrepeat 1.0.0
Multiple encryption library
License: MIT

# py-aesrepeat

## To install

pip install aesrepeat

## Short Description (Japanese)

## Sample code

```
from aesrepeat import *

text = "Pythonの暗号化ライブラリとそれらの概要を表にまとめました。非常にたくさんのライブラリがあることがわかりました。それぞれのライブラリが得手不得手を持っているためユースケースに応じて適切なライブラリを使用する必要があります。"
bytes = text.encode()

ar = AES128(["aa", "bb"])

print("")
encoded = ar.encode_text(text)
print(encoded)
decoded = ar.decode_text(encoded)
print(decoded)

print("")
encoded = ar.encode_bytes(bytes)
print(encoded)
decoded = ar.decode_bytes(encoded)
print(decoded.decode())

print("")
list = [11, 22, 33]
encoded = ar.encode_pickle(list)
print(encoded)
decoded = ar.decode_pickle(encoded)
print(decoded)

ar = AES256(["aa", "bb"])

print("")
encoded = ar.encode_text(text)
print(encoded)
decoded = ar.decode_text(encoded)
print(decoded)

print("")
encoded = ar.encode_bytes(bytes)
print(encoded)
decoded = ar.decode_bytes(encoded)
print(decoded.decode())

print("")
list = [11, 22, 33]
encoded = ar.encode_pickle(list)
print(encoded)
decoded = ar.decode_pickle(encoded)
print(decoded)
```
dj-test-queries 0.3.0
Extension of assertNumQueries that can record queries that were executed and show the differences in future runs.
License: MIT
Keywords: dj-test-queries

=============================
Django test queries
=============================

.. image:: https://badge.fury.io/py/dj-test-queries.svg
    :target: https://badge.fury.io/py/dj-test-queries

.. image:: https://codecov.io/gh/PetrDlouhy/django-test-queries/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/PetrDlouhy/django-test-queries

Extension of assertNumQueries that can record queries that were executed and show the differences in future runs.
It also shows tracebac of where the query was called.

Documentation
-------------

The full documentation is at https://dj-test-queries.readthedocs.io.

Quickstart
----------

Install ``dj-test-queries``:

.. code-block:: bash

   pip install dj-test-queries

Apply ``NumQueriesMixin`` to your test and use ``assertNumQueries`` as you would normally do:

.. code-block:: python

    from test_queries import NumQueriesMixin

    class XYZTests(NumQueriesMixin, TestCase):
        def test_xyz(self):
            with self.assertNumQueries(3):
                xyz()

Generating SQL log records
--------------------------

Run the tests with ``TEST_QUERIES_REWRITE_SQLLOGS`` environment variable to generate sqllog files:

.. code-block:: bash

    TEST_QUERIES_REWRITE_SQLLOGS="true" manage.py test

Files like ``test_views.XYZTests.test_xyz.sqllog`` will appear in ``sqllog`` directory next to your ``test_views.py`` file.

If you will run the test next time and the queries will differ from previous, the test will print out output detailing the change with stacktrace from where the query was executed.
You can also enlist the ``*.sqllog`` files to your repository to see the changes.

If the tests are executed without the ``TEST_QUERIES_REWRITE_SQLLOGS`` environment variable, the logs are created to files named like ``test_views.XYZTests.test_xyz.sqllog`` to make possible to compare the difference.

Running Tests
-------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox


Development commands
---------------------

::

    pip install -r requirements_dev.txt
    invoke -l


Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.3.0 (2024-05-16)
++++++++++++++++++

* output messages to the error report and replace Django SQL output
* sort queries before diffing
* store stacktrace and other information in .sqllog.full_record file

0.2.2 (2023-08-26)
++++++++++++++++++

* Real fix for DDT 3.8.1

0.2.1 (2023-08-24)
++++++++++++++++++

* Remove DDT version requirements


0.2.0 (2023-08-15)
++++++++++++++++++

* Fixes for new version of DDT (tested in 3.8.1 - 4.2.0)
* Automatic testing

0.1.0 (2023-04-21)
++++++++++++++++++

* First release on PyPI.