semvec/pypi-packages huggingface dataset:
yawd-translations 0.5.2
A set of tools for creating multilingual websites with Django
License: BSD

yawd-translations, create multilingual django websites
======================================================

`yawd-translations <http://yawd.eu/open-source-projects/yawd-translations/>`_
provides a set of tools for creating multilingual websites with
`django <http://www.djangoproject.com>`_.

The application includes the following tools:

* Manage the website's installed Languages through the admin interface
* Generate translation messages (``makemessages`` and ``compilemessages``) for all installed applications and defined languages using the admin interface (no need to restart the web server).
* Translatable db models API
* A custom `admin inline <https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin>`_  to manage db translations
* A custom middleware to replace `django.middleware.locale.LocaleMiddleware <https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-django-discovers-language-preference>`_ and achieve the following:

	* Change the way django detects language preference and use the db default language (set through the admin interface)
	* Redirects to language-dependant URLs are permanent (301) and not temporary (302).
	
* A patterns function (that behaves pretty-much like django's own `i18n_patterns() <https://docs.djangoproject.com/en/dev/topics/i18n/translation/#language-prefix-in-url-patterns>`_ does) to achieve the following:

	* Match root URL paths as default language URLs: If your default language is English (``en``), ``i18n_patterns()`` will not match the ``/`` URL as the english homepage and the django middleware would redirect pages to their ``/en/`` equivalent (e.g. your homepage would be `http://example.com/en/` and all requests to `http://example.com/` would be redirected to `http://example.com/en/`). The custom patterns function implements the exact opposite, which is a common practice to web development. Therefore `http://example.com/` will be matched as the real permalink (instead of `http://example.com/en/`). For non-default languages, the custom patterns function behaves like ``i18n_patters()`` does.

* A `context processor` to access available languages in your templates and a simple `template tag` to easily switch between the available translations of a page in the front-end website.


.. note::
	yawd-translations v0.5.2 is the last version intended to work with
	Django 1.4. The current master is actively developed under Django 1.5
	and does NOT work with older Django releases. For those still using
	Django 1.4, you can checkout the ``0.5.x`` branch or use the yawd-translations
	v0.5.2 pypi package. New features will not be backported to the ``0.5.x``
	branch. Since many of us run production systems tied to Django 1.4, both
	v0.5.2 and the latest documentation will be online on readthedocs.org. 

Usage and demo
==============

See the `yawd-translations v0.5.2 documentation <http://yawd-translations.readthedocs.org/en/v0.5.2/>`_ 
for information on how to install the demo and use yawd-translations.
yawd-elfinder 0.90.03
Elfinder-based file management solution for Django
License: BSD

yawd-elfinder, a file management solution for Django
====================================================

`elFinder`_ is a jQuery web file manager providing standard features -such as 
uploading, moving, renaming files etc-, as well as a set of advanced features
such as image resizing/cropping/rotation and archive file creation.

**yawd-elfinder** provides a fully-featured python/django implementation for the 
elfinder connector v.2. A custom Model Field (tied to a nice form widget) 
is also provided. Therefore, you can easily manage your files 
through the Django admin interface, assign them to model fields and access
the file URLs in your Django templates.

**yawd-elfinder** can manage local files but also use Django filesystem storages to
connect to remote filesystems. A set of django options allows control over
file and directory permissions, accepted mime types, max file sizes etc. 

The current version is 0.90.02, use the github version for the latest fixes.

.. note::
	yawd-admin v0.90.03 is the last version intended to work with
	Django 1.4. The current master is actively developed under Django 1.5
	and does NOT work with older Django releases. For those still using
	Django 1.4, you can checkout the ``0.90.x`` branch or use the yawd-elfinder
	v0.90.02 pypi package. New features will not be backported to the ``0.90.x``
	branch. Since many of us run production systems tied to Django 1.4, both
	v0.90.02 and the latest documentation will be online on readthedocs.org. 

.. _elfinder: http://elfinder.org

Usage and demo
==============

See the `yawd-elfinder v0.90.03 documentation <http://yawd-elfinder.readthedocs.org/en/v0.90.03/>`_
for information on how to install the demo and use yawd-elfinder.

Screenshots
===========

The admin widget

.. image:: http://static.yawd.eu/www/yawd-elfinder-widget.jpg

Elfinder in action

.. image:: http://static.yawd.eu/www/yawd-elfinder-rotate.jpg
keggrest 0.1.1
Basic frontend for the kegg database rest API
License: BSD
Keywords: rest API bioinformatics

keggrest
========

implementation of the rest API to access the kegg database

Implemented functions
--------

RESTrequest(*args, **kwargs) -> response string

    create a request to the KEGG url, is the basis for all the other call.
    Take as argument the pieces of the rest call.

KEGGlink(db1, db2, **kwargs) -> (dict, dict)

    evaluate the connection between two databases, return two dictionaries
    of list that gives how each element of the database is related to the
    elements of the other

KEGGconv(db1, db2, **kwargs) -> (dict, dict)

    convert between one kegg database and an external one. currently supported
    are the uniprot, ncbi-gi and ncbi-geneid for genes and pubchem, chebi
    for chemical compounds. Return the two lookup table (dicts) two convert
    from one dictionary to the other

KEGGlist(db, organism='', **kwargs) -> dict

    return all the element of a specific database for a certain organism,
    in the form of a dictionary element: description

KEGGget(element, option='', **kwargs) -> dict

    return the dictionary of description of the required object.
    possible options are: aaseq | ntseq | mol | kcf | image | kgml

KEGGbrite(britename, option='', **kwargs) -> dict of dicts

    analize a brite ontology and return a dictionary of dictionaries.
    still in beta version, works up to three level of hierarchy.
js.raphael 2.1.0-1
Fanstatic packaging of Raphael
License: BSD

js.raphael
==========

Introduction
------------

This library packages `Raphael`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`Raphael`: http://raphaeljs.com/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.raphael``) are published to some URL.


How to use?
-----------


You can import ``raphael`` from ``js.raphael`` and ``need`` it where you want
these resources to be included on a page::

  >>> from js.raphael import raphael
  >>> raphael.need()


CHANGES
=======

2.1.0-1
-------

-   Fix package metadata.
-   Remove unneeded dependencies.


2.1.0
-----

-   Upgrade to 2.1.0

2.0.2
-----

-   Upgrade to 2.0.2.

-   Include non minified version.

2.0.1
-----

- 	Initial release.
almost 0.1.5
A helper to compare two numbers generously
License: BSD

Almost
~~~~~~

A helper for approximate comparison.

::

    from almost import almost
    
    def test_repeating_decimal():
        assert almost(1 / 3.) == 0.333
        assert almost(1 / 6.) == 0.167
        assert almost(3227 / 555., precision=6) == 5.814414

    def test_irrational_number():
        import math
        assert almost(math.pi) == 3.142
        assert almost(math.sqrt(2)) == 1.414

    def test_random_text():
        import random
        def gen_text_with_prefix(prefix):
            return prefix + str(random.random())[:-5]
        assert almost(gen_text_with_prefix('@')) == '@...'

Links
`````

* `GitHub repository <http://github.com/sublee/almost>`_
* `development version
  <http://github.com/sublee/almost/zipball/master#egg=almost-dev>`_