semvec/pypi-packages huggingface dataset:
pyramid-services-sqlalchemy 0.1.1
SQLAlchemy factories for pyramid_services
License: MIT

.. -*- coding: utf-8 -*-

===========================
pyramid_services_sqlalchemy
===========================

SQLAlchemy factories for `pyramid_services`.


This module provides removing `SQLAlchemy`'s boiler plates
from your `pyramid` application codes.


In your ``pastedeploy.ini``::

  sqlalchemy.url = ENGINE://DBUSER:PASSWORD@DBHOST/DBNAME


In your application factory::

  config.include('pyramid_services_sqlalchemy')


In your views::

  from pyramid_services_sqlalchemy import get_tm_session

  def aview(request):
      db = get_tm_session(request)


or you can use ``request.find_service``::

  from pyramid_services_sqlalchemy import IDBSession

  def aview(request):
      db = request.find_service(IDBSession)


If you want to use multiple connections, ``pastedeploy.ini``::

  sqlalchemy.names = readonly readwrite
  sqlalchemy.readonly.url = ENGINE://READ_DBUSER:PASSWORD@DBHOST/DBNAME
  sqlalchemy.readwrite.url = ENGINE://WRITE_DBUSER:PASSWORD@DBHOST/DBNAME


and in your views::

  from pyramid_services_sqlalchemy import get_tm_session

  def aview(request):
      db = get_tm_session(request, name='readonly')

  def a_write_view(request):
      db = get_tm_session(request, name='readwrite')


Change History
==============

0.1.1 - 2018-08-11
------------------
- Update README

0.1 - 2018-08-11
----------------
- Initial release.
vultr_speed 0.5
get fast vultr node for you
License: MIT
Keywords: vultr

# vultr_speed

## install

```
pip install vultr_speed
```

or

```
python setup.py install
```

## run

```
> vultr_speed

testing [Chicago, Illinois] il-us-ping.vultr.com result:
PING il-us-ping.vultr.com (107.191.51.12): 56 data bytes
64 bytes from 107.191.51.12: icmp_seq=0 ttl=49 time=338.895 ms
64 bytes from 107.191.51.12: icmp_seq=1 ttl=49 time=359.421 ms
...

testing [Atlanta, Georgia] ga-us-ping.vultr.com result:
PING ga-us-ping.vultr.com (108.61.193.166): 56 data bytes
64 bytes from 108.61.193.166: icmp_seq=0 ttl=49 time=355.215 ms
64 bytes from 108.61.193.166: icmp_seq=2 ttl=49 time=361.505 ms
...
...

```