semvec/pypi-packages huggingface dataset:
python-realtimecongress 0.1.1
A library for interacting with the Real Time Congress API
License: BSD

Real Time Congress
==================

A python library for interacting with the Real Time Congress API.

Usage:
------
Fetching the first page of bills co-sponsored by John Lewis:

    >>>from realtimecongress import RTC
    >>>RTC.apikey = 'mykey'
    >>>RTC.getBills(cosponsor_ids='L000287')
    [RTCResponse(...),]

Getting data about the last request:

    >>>RTC.meta
    {'count': 838, 'page': {'count': 20, 'per_page': 20, 'page': 1}}
libmount 0.9
A wrapper around libmount, for reading and manipulating filesystem tables.
License: BSD
Keywords: University of Oxford,libmount,filesystem table,fstab

python-libmount
===============

A library for reading and manipulating filesystem tables, such as ``/etc/fstab``.

It uses ``ctypes`` to wrap ``libmount``, part of
`util-linux <http://userweb.kernel.org/~kzak/util-linux/>`_.


Usage
-----

Every reading and manipulation of the filesystem table should take place in a
``with`` block to take the lock::

    from libmount import FilesystemTable
    
    with FilesystemTable() as fstab:
        print fstab[0].target

A ``FilesystemTable`` acts like a list, so you can slice and iterate::

    with FilesystemTable() as fstab:
        print [fs.source for fs in fstab]
        print fs[2:5]

``FilesystemTable`` objects contain ``Filesystem`` objects, that each have
``source``, ``target``, ``fstab`` and ``options`` attributes. The first three
are strings, whereas the latter is ``set``-like::

    with FilesystemTable() as fstab:
        fs = fstab[0]
        
        # Will print e.g. "/dev/sda1 on / type ext4 (user_xattr)"
        print fs
        
        fs.source = '/dev/sda2'
        print "Options: %s" % ", ".join(fs.options)
        fs.options -= set(['user_xattr'])

To update the on-disk filesystem table, call ``save()``::

    with FilesystemTable() as fstab:
        for fs in fstab:
            if fs.fstype in ('ext3', 'ext4'):
                fs.options.add('user_xattr')
        fstab.save()


Limitations
-----------

It is not yet possible to add or remove entries. This has not been thoroughly
tested when run by non-privileged users.


Feedback
--------

Feedback is gratefully received to `infodev@oucs.ox.ac.uk <mailto:infodev@oucs.ox.ac.uk>`_,
or as an issue in `the issue tracker <https://github.com/oucs/python-libmount/issues>`_.
pyramid_rewrite 0.2
Small Pyramid extension for rewriting urls
License: BSD
Keywords: pyramid rewrite pylons web

pyramid_rewrite
===============

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

pyramid_rewrite is a small extension for `Pyramid <http://www.pylonsproject.org/>`_ to rewrite urls before further processing takes place.

------------
Installation
------------

Just do

``pip install pyramid_rewrite``

or

``easy_install pyramid_rewrite``

-------------
Compatibility
-------------

pyramid_rewrite runs with pyramid>=1.3 and python>=2.6 and python>=3.2.
Other versions might also work.

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

Usage example::

    def main(global_config, **settings):
        config = Configurator(settings=settings)
        config.include('pyramid_rewrite')
        # add url rewriting rules...
        #   first parameter is a regular expression
        #   second parameter is the target url
        config.add_rewrite_rule(r'/favicon.ico', r'/static/favicon.ico')
        config.add_rewrite_rule(r'/gallery/(?P<subpath>.*)',
                                r'/root/%(subpath)s')
        #
        # ... rest of configuration
        #
        # return WSGI application instance
        return config.make_wsgi_app()

Better documentation might follow.


=======
Changes
=======

0.2
---

*  Added unit tests
*  Changed logging level

0.1
---

*  Initial version. Working.