semvec/pypi-packages huggingface dataset:
pollute 1.0.2
A decorator and context manager for temporarily modifying os.environ.
License: MIT

Pollute |Version| |Build| |Coverage| |Health|
=============================================

|Compatibility| |Implementations| |Format| |Downloads|

A decorator and context manager for temporarily modifying ``os.environ``.

.. code:: python

    # as a context manager
    with modified_environ(added={...}, absent=[...]):
        ...

    # as a decorator
    @modified_environ(added={...}, absent=[...])


Installation:

.. code:: shell

    $ pip install pollute


``modified_environ`` modifies ``os.environ`` in-place, ensuring that all
references to it in the code are updated. All changes made by
``modified_environ`` are reversed when exiting the context or decorator.


Example
-------

.. code:: python

    import os
    from pollute import modified_environ


    assert 'HELLO' not in os.environ
    assert 'PATH' in os.environ

    with modified_environ(added={'HELLO': 'WORLD'}, absent=['PATH']):
        assert os.environ['HELLO'] == 'WORLD'
        assert 'PATH' not in os.environ

    assert 'HELLO' not in os.environ
    assert 'PATH' in os.environ


.. |Build| image:: https://travis-ci.org/themattrix/python-pollute.svg?branch=master
   :target: https://travis-ci.org/themattrix/python-pollute
.. |Coverage| image:: https://img.shields.io/coveralls/themattrix/python-pollute.svg
   :target: https://coveralls.io/r/themattrix/python-pollute
.. |Health| image:: https://landscape.io/github/themattrix/python-pollute/master/landscape.svg
   :target: https://landscape.io/github/themattrix/python-pollute/master
.. |Version| image:: https://pypip.in/version/pollute/badge.svg?text=version
    :target: https://pypi.python.org/pypi/pollute
.. |Downloads| image:: https://pypip.in/download/pollute/badge.svg
    :target: https://pypi.python.org/pypi/pollute
.. |Compatibility| image:: https://pypip.in/py_versions/pollute/badge.svg
    :target: https://pypi.python.org/pypi/pollute
.. |Implementations| image:: https://pypip.in/implementation/pollute/badge.svg
    :target: https://pypi.python.org/pypi/pollute
.. |Format| image:: https://pypip.in/format/pollute/badge.svg
    :target: https://pypi.python.org/pypi/pollute
vmonere 0.1.1
A high-level Python  CLI for virtual machine monitoring
License: MIT
Keywords: monitor

vmonere : virtual machine monitor
====================================

.. image:: https://drone.io/github.com/dcsolvere/vmonere/status.png
   :target: https://drone.io/github.com/dcsolvere/vmonere
   :alt: drone.io CI build status

.. image:: https://pypip.in/v/vmonere/badge.png
   :target: https://pypi.python.org/pypi/vmonere/
   :alt: Latest PyPI version

.. image:: https://pypip.in/d/vmonere/badge.png
   :target: https://pypi.python.org/pypi/vmonere/
   :alt: Number of PyPI downloads

`vmonere` a wrapper CLI for virtual machine monitoring and resource usage comparison effectively. Vmonere framework enables user to monitor the real time guest and host resource usage.

Features
========
* CLI for virtual machine monitoring and resource usage comparison effectively.

Requirements
============
* Python 2.6, 2.7, 3.2, 3.3, 3.4
* setuptools

License
=======
MIT
tomb_reflect 0.0.1
Add API to introspect routes for your Pyramid web app
License: MIT

tomb_reflect
=================================

.. image:: https://img.shields.io/pypi/v/tomb_reflect.svg
    :target: https://pypi.python.org/pypi/tomb_reflect

.. image:: https://img.shields.io/travis/tomborine/tomb_reflect.svg
    :target: https://travis-ci.org/tomborine/tomb_reflect

.. image:: https://coveralls.io/repos/tomborine/tomb_reflect/badge.png?branch=master
           :target: https://coveralls.io/r/tomborine/tomb_reflect?branch=master

Intro
=================================

Easily make your Pyramid-powered Web API introspectable.

All it takes is:

.. code-block:: python

   config.include('tomb_reflect', route_prefix='/api_info')

    # You could pass options to tomb_reflect_add_views to add auth, etc.
    config.tomb_reflect_add_views()

With this, your app now responds to 2 new URLs.

The first URL, ``/api_info/routes``, returns a list of routes:

.. code-block:: json

    {
        "hello": {
            "route_pattern": "/hello"
        },
        "hello_name": {
            "route_pattern": "/hello_name/{name}"
        },
        "tomb_reflect.routes#index": {
            "route_pattern": "api_info/routes"
        },
        "tomb_reflect.routes#show": {
            "route_pattern": "api_info/routes/{route_name}"
        }
    }

The second URL, ``/api_info/routes/{route_name}``, returns detailed info for a
specific route:

.. code-block:: json

    {
        "route_name": "hello",
        "route_pattern": "/hello",
        "view": "inventorysvc.views.hello.hello"
    }


Configuration
=================================

If you want the URLs to be under a different root path, change the
``route_prefix`` in your ``config.include`` call:

.. code-block:: python

   config.include('tomb_reflect', route_prefix='/super/secret/place')

If you want the URLs to only be visible with certain permissions, require
special authorization, etc., you can pass options to
``config.tomb_reflect_add_views``:

.. code-block:: python

    # You can pass options to tomb_reflect_add_views to add auth, etc.
    config.tomb_reflect_add_views(
        decorator=SomeCustomDecorator,
        permission='reflect')


Similar
=================================

- pyramid-describe_ - Only works for apps that use pyramid-controller_ dispatch though


.. _Pyramid: http://www.trypyramid.com/
.. _pyramid-describe: https://pypi.python.org/pypi/pyramid_describe
.. _pyramid-controller: https://pypi.python.org/pypi/pyramid_controllers