semvec/pypi-packages huggingface dataset:
PoTrans 0.1.7
gettext PO files translate by Yandex translator
License: MIT
Keywords: translate po gettext yandex localization

========================================
PoTrans python3 library and console tool
========================================

Purpose
-------

Automatically translate gettext's *.po files to specified language, using Yandex Translate

Install
-------

::
    # pip3 install potrans


Usage of library
----------------

To use it, use must acquire Yandex Translator API key here: https://tech.yandex.ru/keys/get/?service=trnsl
it looks like "trnsl.1.1.20160716T101753Z.a0378f5552843fb4.c5a82afc2a581d1e3717f92d4c753f3f798deb2a"

::
    from potrans import Translator

    key = "trnsl.1.1.20160716T101753Z.a0378f5552843fb4.c5a82afc2a581d1e3717f92d4c753f3f798deb2a"
    translator = Translator(key)
    translator.open_po_file("./en_US.po")
    translator.go_translate("en", "de")
    translator.save_po_file("./de_DE.po")
    translator.save_mo_file("./de_DE.mo")

Usage of console script
-----------------------

Translate from Russian to Italian and save result to po-file:

::
    potrans translate -i ./ru_RU.po -il ru -ol it -o ./it_IT.po --key trnsl.1.1.20160716T101753Z.a0378f5552843fb4.c5a82afc2a581d1e3717f92d4c753f3f798deb2a

if you don't like to specify key every time, you can put it into ~/.config/potrans.key:

::
    echo "trnsl.1.1.20160716T101753Z.a0378f5552843fb4.c5a82afc2a581d1e3717f92d4c753f3f798deb2a" >> ~/.config/potrans.key

now, you can run the same command without key:

::
    potrans translate -i ./ru_RU.po -il ru -ol it -o ./it_IT.po

Translate and save result to *.po and *.mo files:

::
    potrans translate -i ./ru_RU.po -il ru -ol it -o ./it_IT.po -om ./it.IT.mo

Translate with outputting all the phrases and it's translate strings:

::
    potrans translate --debug -i ./ru_RU.po -il ru -ol it -o ./it_IT.po

Translate, using msgid in case msgstr is empty:

::
    potrans translate --usemsgid -i ./ru_RU.po -il ru -ol it -o ./it_IT.po

Just convert *.po to *.mo without translation:

::
    potrans convert -i ./ru_RU.po -o ./ru_RU.mo


Change Log
==========
0.1.7 - Fixed bug where empty msgid translation caused error
        Added autoreplace to strings like "%d", "%s", "&nbsp;", "&larr;"

0.1.6 - Changed cli, so, yandex_api key no longer needed to convert *.po to *.mo
        Added cli.py script to run package cli interface in development

0.1.5 - Added changelogs to a package info

0.1.4 - Added some info to README.rst

0.1.0 - Initial release
django-custom-auth-user 0.1.2
Django custom user
License: MIT
Keywords: django custom auth user

Django Custom Auth User
=======================

.. image:: https://travis-ci.org/anthon-alindada/django_custom_auth_user.svg?branch=master
    :target: https://travis-ci.org/anthon-alindada/django_custom_auth_user

.. image:: https://codecov.io/gh/anthon-alindada/django_custom_auth_user/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/anthon-alindada/django_custom_auth_user

Django custom user model and abstract user model basic token authentication.

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

The full documentation is at https://django_custom_auth_user.readthedocs.io.

Features
--------
* Custom user
* Extendable abstract user
* User registration service
* Token authentication
* Create auth token
* Delete auth token
* Query sets for ``User`` & ``AuthToken``

Quickstart
----------

Install Django custom user::

    pip install django_custom_auth_user


Add it to your ``INSTALLED_APPS``::

    INSTALLED_APPS = (
        ...
        'custom_auth_user',
        ...
    )

Set your ``AUTH_USER_MODEL`` setting to use ``custom_auth_user.User``::

    AUTH_USER_MODEL = 'custom_auth_user.User'

Create the database tables::

    python manage.py migrate


Version 0.1 (2017-07-23)
~~~~~~~~~~~~~~~~~~~~~~~~

- Initial release.
django-dform 0.9.5
Django app for dynamic forms or surveys that can be injected in sites
License: MIT
Keywords: django,form,survey

django-dform
************

DForm is a survey creation and management tool for Django.  Features include:

* admin based editor
* Bootstrap 3 forms
* version control on survey questions


Installation
============

Add 'dform' to your ``settings.INSTALLED_APPS`` field.

The URLs for DForm are split into two files, the first is for the admin pieces, 
the second for form submission.  By default the form submission pieces have no
security or control on them and the correct usage of URLs will result in
creating and/or editing of any survey.  To fine tune what can be accessed you
can either use the permissions hook, or not include the submission URLs and
wrap the given views in your own.  To use the default, include both URL sets
in your ``urls.py`` file:

.. code-block:: python

    urlpatterns += (
        url(r'dform/', include('dform.urls')),                                      
        url(r'dform_admin/', include('dform.admin_urls')), 
    )

See the documentation for more information on using the permission hook or
what views to wrap.

Run:

.. code-block:: bash

    $ manage.py makemigrations
    $ manage.py migrate


Demo Installation
=================

A full django project is included in the repository that is used for testing
and can give you a quick idea what DForm is about.  The project is available
in ``extras/sample_site``

.. code-block:: bash

    $ cd django-dform
    $ pip install -r requirements.txt
    $ cd extras/sample_site
    $ pip install -r requirements.txt
    $ ./resetdb.sh
    $ ./runserver.sh

Docs
====

Docs available at: http://django-dform.readthedocs.io/en/latest/