semvec/pypi-packages huggingface dataset:
pojson 0.7
Convert PO files to JSON
License: BSD
Keywords: PO i18n internationalisation JSON gettext obviel

pojson
******

pojson is a tool that allows you to create JSON data files from PO
files. These files are designed to be used with Obviel_'s `i18n support`_.

.. _Obviel: http://obviel.org/

.. _`i18n support`: http://www.obviel.org/en/latest/i18n.html

The `Javascript Gettext`_ already provides a Perl-based tool (po2json)
that is very similar, so this can be seen as a rewrite to Python. One
difference is that pojson does not output domain information in the
resulting datastructure - it is one level less deep. The domain
information must instead be supplied when the file is loaded.

Basic use to generate a JSON file::

  $ pojson <path/to/po> 

Pretty-print output::

  $ pojson -p <path/to/po> 

Help::
  
  $ pojson --help

Normally you would send the output to a file, such as::

  $ pojson something.po > something.json
  
Normally pojson will try to guess the encoding of the .po file, but
you can also explicitly supply an encoding::

  $ pojson -e utf-8 something.po > something.json

_`Javascript Gettext`: http://jsgettext.berlios.de/

CHANGES
*******

0.7 (2016-06-30)
================

- Python 3 support.

0.6 (2014-03-06)
================

- A new po2json_babel command that lets you create a babel compatible
  catalog structure. Thanks to Swen Mun (@longfin) for this feature.

- A bugfix concerning encoding handling in po2json.

0.5 (2014-02-27)
================

- Support for the context feature in Javascript gettext. See
  http://jsgettext.berlios.de/doc/html/Gettext.html#pgettext__msgctxt__msgid__
  Thanks to Swen Mun (@longfin) for this feature.

- Added distutils command class ``po2json`` to compile catalogs for
  use in ``setup.py``.  Thanks to Swen Mun (@longfin) for this feature.

0.4 (2012-06-20)
================

- Totally break the command line interface to simplify options. We
  only want to generate those JSON files that Obviel i18n likes. Works
  with Obviel 1.0b2 and later.

0.3 (2011-06-02)
================

- Actually got the output wrong so jsgettext couldn't work with it. Fixed.

- Some sanity checking that the input file has the .po extension, as
  evidently polib accepts *any* file and still gives output...

0.2 (2011-06-02)
================

- Error when referring to non-existent po file

0.1 (2011-05-04)
================

- Initial release.
fresco-sqlalchemy 0.1
Fresco/SQLAlchemy integration
License: BSD

SQLAlchemy support for Fresco
=============================

Adding SQLAlchemy to your application
-------------------------------------

Use ``fresco_sqlalchemy.SQLAlchemy`` to configure your application for use with
SQLAlchemy. By default this reads database connection configuration from
app, and adds WSGI middleware into your application to manage SQLAlchemy
sessions::

    from fresco import FrescoApp
    from fresco_sqlalchemy import SQLAlchemy

    # Create a new Fresco app
    app = FrescoApp()

    # Connection info is loaded from your application configuration
    app.options.SQLALCHEMY = {
        'default': 'driver://user:password@localhost/database',
    }

    sqlalchemy = SQLAlchemy(app)


You can call your configuration variable something else if you prefer::

    app.options.DATABASES = {
        'default': 'driver://user:password@localhost/database',
    }
    sqlalchemy = SQLAlchemy(app, options_key='DATABASES')


Or skip this step entirely and provide database configuration directly to the
constructor::

    sqlalchemy = SQLAlchemy(
        app,
        databases={'default': 'driver://user:password@localhost/database',})


Accessing sessions
------------------


You can access sqlalchemy sessions directly on the ``SQLAlchemy`` object::

    sqlalchemy = SQLAlchemy(app)
    session = sqlalchemy.getsession()
    session.query(...)


Or via ``fresco.context``::

    from fresco import context
    session = context.sqlalchemy.default
    session.query(...)


Multiple connection support
---------------------------

You can specify as many database connection URLs as you want::

    app.options.SQLALCHEMY = {
        'staging': 'driver://user:password@localhost/staging_db',
        'production': 'driver://user:password@localhost/production_db',
    }

These can be accessed by name, using ``getsession``::

    sqlalchemy = SQLAlchemy(app)
    sqlalchemy.getsession('staging')

Or from ``fresco.context``::

    default_session = context.sqlalchemy.staging
    cms_session = context.sqlalchemy.production


Engine configuration
--------------------

Extra arguments to the SQLAlchemy constructor are passed to SQLAlchemy's
``create_engine`` function. This makes it possible to specify options such as
``echo=True`` to log all SQL queries produced by SQLAlchemy::

    sqlalchemy = SQLAlchemy(app, echo=True)


0.1 (released 2016-06-30)
-------------------------

- Initial release
django-minirest 0.1.0
Micro rest framework
License: BSD
Keywords: django-minirest

=============================
django-minirest
=============================

.. image:: https://badge.fury.io/py/django-minirest.png
    :target: https://badge.fury.io/py/django-minirest

.. image:: https://travis-ci.org/vahaah/django-minirest.png?branch=master
    :target: https://travis-ci.org/vahaah/django-minirest

Micro rest framework

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

The full documentation is at https://django-minirest.readthedocs.org.

Quickstart
----------

Install django-minirest::

    pip install django-minirest

Then use it in a project::

    import minirest

Features
--------

* TODO

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

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install -r requirements-test.txt
    (myenv) $ python runtests.py

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.1.0 (2016-06-01)
++++++++++++++++++

* First commit.