semvec/pypi-packages huggingface dataset:
pip-upgrade 0.0.6
Provides functionality for updating your outdated packages.
License: MIT
Keywords: pip

# Pip Update

## Summary

Updates all outdated packages using pip. Also allows specifying packages,
or showing outdated packages.

## Usage

>    $ pip_upgrade -h
>    usage: Provides functionality for updating all your outdated packages
>
>    positional arguments:
>      PACKAGE_NAME          Name of package to update - without specifying a
>                            package all packages will be updated.
>
>    optional arguments:
>      -h, --help            show this help message and exit
>      -d, --dry, --dry-run  Do not do anything, just print what would be done.

## Authors:

 * Alistair Broomhead
 * Ross Binden

## Contributors

 * Charalampos Papaloizou
 * Frank Herrmann
 * Russel Winder
 * Sam Raza
 * Shivan Sornarajah

## Licence

This code is licence under the [MIT Licence](http://opensource.org/licenses/MIT)
barsup-core 0.2.9
UNKNOWN
License: MIT

.. image:: https://travis-ci.org/barsgroup/barsup-core.svg?branch=master
    :target: https://travis-ci.org/barsgroup/barsup-core
    :alt: Tests

.. image:: https://img.shields.io/coveralls/barsgroup/barsup-core.svg?style=flat
    :target: https://coveralls.io/r/barsgroup/barsup-core?branch=master
    :alt: Coverage

.. image:: https://pypip.in/version/barsup-core/badge.svg?style=flat&text=version&0
    :target: https://pypi.python.org/pypi/barsup-core/
    :alt: Latest Version

.. image:: https://pypip.in/py_versions/barsup-core/badge.svg?style=flat
    :target: https://pypi.python.org/pypi/yadic/
    :alt: Supported Python versions

.. image:: https://pypip.in/status/barsup-core/badge.svg?style=flat
    :target: https://pypi.python.org/pypi/yadic/
    :alt: Development Status

.. image:: https://pypip.in/license/barsup-core/badge.svg?style=flat
    :target: https://pypi.python.org/pypi/yadic/
    :alt: License

WTF
---

**barsup-core** - представляет собой базовые серверные реализации различных
уровней rest-приложения, с возможностью декларативного описания функционала
на базе `IoC <https://bitbucket.org/astynax/yadic>`_.

Возможности
-----------

* строгая зависимость между уровнями приложения с отслеживанием утечек абстракции
* возможности расширять конфигурацию своими реализациями
* запуск контейнера как в режиме *вебсокетов*, так и в стандартном режиме *wsgi*
* возможности создания business-middleware и initware
* встроенные механизмы аутентификации и авторизации

Установка
---------

Последнюю версию можно установить из `PYPI <https://pypi.python.org/pypi/barsup-core>`_ командой::

    $ pip install barsup-core

В качестве примера использования рекомендуется посмотреть
`demo <https://bitbucket.org/barsgroup/barsup-demo>`_
(с возможностью `очень быстрого запуска средствами Vagrant'a
<https://bitbucket.org/barsgroup/barsup-demo/wiki/vagrant>`_ ),
а так же примеры использования из `тестов
<https://bitbucket.org/barsgroup/barsup-core/src/1998af93d9a30cbb3416ff356c33fce5657bab43/src/barsup/tests/?at=default>`_


`Подробная документация <https://bitbucket.org/barsgroup/barsup-core/wiki/Home>`_
orm.py 0.1
A minimal ORM for postgres
License: MIT
Keywords: orm object relational mapper postgres postgresql

orm.py
========

A small ORM for Python.

Features
--------

- Basic queries (select, insert, update, order by, limit, offset)
- Simple model interace with foreign keys


Not Features
------------

- Database or table creation, modification, or migration
- Joins, full text search, most other database features


Requirements
------------

- python3
- postgresql
- psycopg2


To do
-----

- python2 support
- better comparison support
- only update fields that have changed
- order by with `get`
- query unique entries
- tests
- improve query interface
- expand sql functionality


Example
===

Tables are not created for you, so you must create them yourself.
Table names should match the class name when converted to underscore-
separated words, so a class UserRelationship will map to the table
"user\_relationship".

Tables must have a serial primary key called "id", and foreign key
fields must be appended with "\_id".

    import orm

    ''' You should first set up tables named "user" and "message" '''
    class User(orm.Model):
        username = orm.Field()
        password = orm.Field()

        def get_all_received_messages(self):
            ''' You could also pass in a limit and offset, or yield results
                one at a time.
            '''
            return list(Message.all(user_to=self, order_by='-date_sent'))

        def get_all_sent_messages(self):
            return list(Message.all(user_from=user, order_by='-date_sent'))

    class Message(orm.Model):
        user_from = orm.ForeignKey(User) # field should be named "user_from_id"
        user_to = orm.ForeignKey(User) # field should be named "user_to_id"
        date_sent = orm.Field()
        body = orm.Field()
        read = orm.Field(default=False)        

Now you can make queries in a script or interpreter:

    u = User.get(id=1)
    m = list(Message.all(user_from=u))

API
---

    user.save()

Saves or updates a Model object.

    user.delete()

Deletes the Model object. Any cascades must be done in table definitions.    


    Model.get(id=None, **kwargs)

Pass in the ID or kwargs matching your model fields.

    Model.all(separator='AND', order_by=None, limit='ALL', offset=None, **kwargs):

`all` yields the results, so you must catch them in a loop or list.

- separator: pass in 'OR' and a kwarg with a list of possible arguments. For example:


    Message.all(separator='OR', user_from=[user_1, user_2])

This will match all messages from either user\_1 or user\_2.

- order\_by: pass in a string with a field name. Prepend '-' to reverse the order.

- limit: Limit results to first n results.

- offset: Integer to offset your search result

- kwargs: each kwarg value can be a single object or a list.


    Model.count(**kwargs)

Returns an integer.

    Model.is_unique(**kwargs)

Returns True or False.