semvec/pypi-packages huggingface dataset:
pyregdict 0.2
Access to Windows Registry data as if a Unix file path.
License: MIT License

Copyright (c) 2017 Charles Aracil

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description-Content-Type: UNKNOWN
Description: # pyregdict
        Access to Windows Registry data as if a Unix file path.
        
        This is still an alpha release, published under the MIT license. We do not recommend using it in a non-virtual environment.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
django-i18n-utils 1.6.0b0
Utilities for localized Django projects
License: MIT License
Keywords: django i18n

=================================
Django Internationalization Utils
=================================

.. image:: https://travis-ci.org/acdha/django-i18n-utils.svg?branch=master
    :target: https://travis-ci.org/acdha/django-i18n-utils


Data Processing
~~~~~~~~~~~~~~~

clean_unicode
-------------

`utils.clean_unicode` accepts an input string and returns
normalized Unicode

UnicodeNormalizerMixin
----------------------

Model mixin class which ensures that every text field has been processed with
`clean_unicode` during model validation's `clean_fields` step

Testing
~~~~~~~

TranslationSafeTestClient
-------------------------

Django `TestClient` subclass which resets the active translation after each request to avoid leaking
translation state across tests, causing hard-to-debug side-effects like loading fixtures in the wrong
language using `django-modeltranslation <https://pypi.python.org/pypi/django-modeltranslation>`_.

Usage::

    from django_i18n_utils.testclients import TranslationSafeTestClient

    class MyTestCase(TestCase):
        client_class = TranslationSafeTestClient

        def test_foo(self):
            # default language active
            self.client.get('/pt/myview') # Portuguese active when the view executes
            # default language active again


TranslationSafeTestCase
-----------------------

Django `TestCase` subclass which uses `TranslationSafeTestClient` to avoid test failures caused by previous
tests leaving an unexpected locale active.

Usage::

    from django_i18n_utils.testcases import TranslationSafeTestCase

    class MyTestCase(TranslationSafeTestCase):
        …


LocalizedTestCase
-----------------

Django `TestCase` subclass which makes it easy to create per-language tests
without duplication or for-loops::

    class MyLocalizedTests(LocalizedTestCase):
        def test_homepage(self):
            …

will execute and display as if you had really created this::

    class MyLocalizedTests(LocalizedTestCase):
        def test_homepage_en(self):
            … # test English
        def test_homepage_es(self):
            … # test Spanish