semvec/pypi-packages huggingface dataset:
bottle-utils 2.0.post2
Assortment of frequently used utilities for Bottle framework
License: BSD
Keywords: bottle utils i18n http lazy csrf ajax

============
Bottle utils
============

Assortment of frequently used utilities for Bottle.

This package contains utilities for developing web sites and web applications
using `Bottle <http://bottlepy.org/>`_ framework. It is divided into several
modules of which the ``lazy`` module is not Bottle-specific.

The bottle-utils are created from a bunch of unrelated modules we frequently
used at `Outernet <https://outernet.is/>`_. Some of the modules have been
tested fairly thoroughly, and some have been used only in a handful of
projects. Therefore, not all modules are of high quality. You should conisder
this package Alpha quality.

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

Install using ``pip`` or ``easy_install``::

    pip install bottle-utils

    easy_install bottle-utils

.. note::
    Between versions 0.3 and 0.5, bottle-utils have been split into multiple
    packages. Since 0.5, they have been remerged into a single packages as we
    normally use them together, and having them as separate packages causes
    various deployment issues.

Documentation
=============

Detailed documentation is available `online
<http://bottle-utils.readthedocs.org/>`_.

You can also generate offline documentation by cloning this repository and
doing the following::

    cd /path/to/repo
    cd docs
    make html

The ``docs/build/html`` directory should contain full HTML documentation. You
can start from the ``index.html`` file.

Bugs
====

Please report all bugs to our `GitHub issue tracker`_.

License
=======

This package is licensed under BSD license. See LICENSE_ for more
info.

.. _Bottle: http://bottlepy.org/
.. _Outernet: https://www.outernet.is/
.. _GitHub issue tracker: https://github.com/Outernet-Project/bottle-utils/issues
.. _LICENSE: LICENSE
utf8forgood 0.1.4
"Simple is better than complex", Tim Peters, The Zen Of Python
License: BSD

utf8forgood
-----------

**Tired of Python's `UnicodeDeocodeError, ascii codec can't decode?`**

Here's how to fix it, once and for all.

1. `$ pip install utf8forgood`
2. in your main program, add

    ```
    import utf8forgood
    ```
If you like it, make the change permanent in your sitecustomize.py:

    ```
    # /path/to/site-packages/sitecustomize.py
    import utf8forgood
    ```

To find the path to `sitecustomize.py`, run `python -m site` or read up on
the [site-specific configuration hook][8].

Why?
----

In general to the above, the fastest remedy is probably trying out the following, in this order:

1. Use `PYTONIOENCODING=UTF-8 python /path/to/program.py`
2. Use the [`sys.setdefaultencoding`][1] hack. That is, unless you care [what others say][2]
3. Write your own import function to [convert data][3] appropriately, which is generally the [recommended way][4].

After [much consideration][7] and trying option 3 I finally concluded that option 2
is the straight forward way and usually [just does what you want][5], on the off-chance of [getting yourself in trouble][6].

  [1]: http://stackoverflow.com/a/17628350/890242
  [2]: http://stackoverflow.com/questions/28657010/dangers-of-sys-setdefaultencodingutf-8
  [3]: http://stackoverflow.com/a/28760303/890242
  [4]: http://stackoverflow.com/a/34378962/890242
  [5]: http://stackoverflow.com/a/29558302/890242
  [6]: http://stackoverflow.com/a/29561747/890242
  [7]: http://stackoverflow.com/a/27745947/890242
  [8]: https://docs.python.org/2/library/site.html
fio_nereid_s3 4.0.0.2
Amazon S3 backend for Nereid Static Files
License: BSD

Trytond-nereid-s3
=================

.. image:: https://api.travis-ci.org/fulfilio/trytond-nereid-s3.png?branch=develop
  :target: https://travis-ci.org/fulfilio/trytond-nereid-s3
  :alt: Build Status
.. image:: https://pypip.in/download/fio_nereid_s3/badge.svg
    :target: https://pypi.python.org/pypi/fio_nereid_s3/
    :alt: Downloads
.. image:: https://pypip.in/version/fio_nereid_s3/badge.svg
    :target: https://pypi.python.org/pypi/fio_nereid_s3
    :alt: Latest Version
.. image:: https://pypip.in/status/fio_nereid_s3/badge.svg
    :target: https://pypi.python.org/pypi/fio_nereid_s3
    :alt: Development Status

Nereid-S3 helps to upload files to amazon-s3 from tryton layer. Files are
stored in a folder. You can create multiple folders. Folder could be public or
private.

You need to specify following options under nereid_s3 section in your tryton
configuration file::

  [nereid_s3]
  access_key =
  secret_key =
  bucket =
  cloudfront =

Internally, private folder has key prefixed with ``_private``. To
make this work, following bucket policy should be applied::

	{
	  "Version": "2008-10-17",
		"Statement": [
			{
				"Sid": "AddPerm",
				"Effect": "Allow",
				"Principal": {
					"AWS": "*"
				},
				"Action": "s3:GetObject",
				"NotResource": [
					"arn:aws:s3:::bucket_name/_private",
					"arn:aws:s3:::bucket_name/_private/*"
				]
			}
		]
	}