semvec/pypi-packages huggingface dataset:
backports.ssl 0.0.9
The Python 3.4 standard `ssl` module API implemented on top of pyOpenSSL
License: MIT

-------------
backports.ssl
-------------

What is it?
-----------

It's the Python 3.4 standard ``ssl`` module API implemented on top of
pyOpenSSL::

    import backports.ssl as ssl
    import socket

    context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
    context.verify_mode = ssl.CERT_REQUIRED

    conn = context.wrap_socket(socket.socket(socket.AF_INET))
    conn.connect(('google.com', 443))
    print conn.getpeercert()
    conn.close()

Why?
----

Because the latest web technologies should be available to those running older
versions of Python.

Isn't this obsoleted by `PEP 466`_?
-----------------------------------

If you're on Python 2.7, then probably. But PEP 466 doesn't cover Python 2.6,
3.2, or 3.3, and the ``ssl.RAND_*()`` functions are explicitly out of scope.
This package supports it all.

How do I use it with third-party libraries?
-------------------------------------------

Monkey-patching support is included a la `gevent`_::

    import backports.ssl.monkey as monkey
    import requests

    monkey.patch()
    requests.get('https://google.com')


Why am I getting ``AttributeError``\ s for newer features?
------------------------------------------------------

Like the standard ``ssl`` module, certain attributes will not be available if
your OpenSSL does not support them. See `Installing OpenSSL`_ for instructions.

Installing OpenSSL
------------------

TODO
----

- Verify that we play nicely with gevent's monkey-patching.
- Backport and pass the standard Python ``ssl`` test suite.
- If not that, automate testing against hyper, urllib3, requests, and Tornado
  test suites.
- Use the bundled 3.x OpenSSL, if available and newer than the default.

.. _`PEP 466`: http://legacy.python.org/dev/peps/pep-0466
.. _`gevent`: http://gevent.org
metron 1.3.7
analytics and metrics integration for Django
License: MIT

======
Metron
======

.. image:: http://slack.pinaxproject.com/badge.svg
   :target: http://slack.pinaxproject.com/

.. image:: https://img.shields.io/travis/pinax/metron.svg
    :target: https://travis-ci.org/pinax/metron

.. image:: https://img.shields.io/coveralls/pinax/metron.svg
    :target: https://coveralls.io/r/pinax/metron

.. image:: https://img.shields.io/pypi/dm/metron.svg
    :target:  https://pypi.python.org/pypi/metron/

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

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target:  https://pypi.python.org/pypi/metron/
    

Pinax
-------

Pinax is an open-source platform built on the Django Web Framework. It is an ecosystem of reusable Django apps, themes, and starter project templates. 
This collection can be found at http://pinaxproject.com.

This app was developed as part of the Pinax ecosystem but is just a Django app and can be used independently of other Pinax apps.


metron
--------

``metron`` provides analytics and metrics integration for Django.


Current analytics services supported:

* Google Analytics
* Mixpanel
* gaug.es
* Google AdWords Conversion Tracking


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

The ``metron`` documentation can be found online at http://metron.readthedocs.org/.
The Pinax documentation is available at http://pinaxproject.com/pinax/. If you would like to help us improve our documentation or write more documentation, please join our Pinax Project Slack channel and let us know!


Code of Conduct
-----------------

In order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a code of conduct, which can be found here  http://pinaxproject.com/pinax/code_of_conduct/.


Pinax Project Blog and Twitter
-------------------------------

For updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out our blog http://blog.pinaxproject.com.
pyquebec 0.9.0
A Python package to create simple SQL queries from the console, and quickly display the returned information.
License: MIT
Keywords: SQL development console MSSQL SQLite

Helper to consume a database from the REPL.

Dependencies:

* pypyodbc
* tabulate
* Configuration file database.ini. A template is included in the source.

Full documentation available in https://github.com/sebasmonia/pyquebec/wiki

Sample:

>>> from pyquebec import pyquebec
>>> from pyquebec import formatters as pf
>>> pyquebec.add('SampleDB', 'connection string here', 'MSSQL') # first use
>>> db = pyquebec.open('SampleDB') # after using add, the db config and schema is cached
>>> db.dbo.<TAB KEY>
db.dbo.Table1  db.dbo.Table2
db.dbo.Table3  db.dbo.Table4
>>>result = db.dbo.Table1.From().go()
>>> pf.to_html(result)
Creating and opening temp file C:\Users\smonia\AppData\Local\Temp\tmpn3g43ppp.htm
>>> pf.to_csv(result)
Creating and opening temp file C:\Users\smonia\AppData\Local\Temp\tmpe68shxd9.csv
>>> result[0]
row(column1=datetime.datetime(2015, 5, 13, 23, 34, 58, 77000), column2=59, column3=29, column4='Sample')

Pypyodbc returns tuples. This library converts them to namedtuples for increased readability and to make it easier to keep playing with the data using filter, map, sorted, etc.

There's a third option in the formatters that uses tabulate for output to_console().
Both HTML and CSV options create a temp file and use os.startfile (in Windows you get the default browser and, usually, Excel).

Roadmap (help/guidance appreciated!): 

* Tested with MSSQL and SQLite. With some configuration should support other engines, and ideally the config should be included in the package.
* The API for querying might need a few tweaks. Suggestions are welcome.
* Decide on other SQL features to support beyond basic querying. UPDATES, INSERTS, GROUP BY, etc, would it make sense? Would this make supporting other products more difficult?
* Needs more unittest!

Contributors:
SebastiÃ¡n MonÃ­a - http://github.com/sebasmonia
Fernando Antivero - http://github.com/ferantivero
tailer 0.4.1
Python tail is a simple implementation of GNU tail and head.
License: MIT
Keywords: tail,head

======
Tailer
======

.. image:: https://travis-ci.org/six8/pytailer.svg
    :target: https://travis-ci.org/six8/pytailer
    :alt: Build Status

Python tail is a simple implementation of GNU tail and head.

It provides 3 main functions that can be performed on any file-like object that supports ``seek()`` and ``tell()``.

* ``tail`` - read lines from the end of a file
* ``head`` - read lines from the top of a file
* ``follow`` - read lines as a file grows

It also comes with ``pytail``, a command line version offering the same functionality as GNU tail. This can be particularly useful on Windows systems that have no tail equivalent.

- `Tailer on GitHub <http://github.com/six8/pytailer>`_
- `Tailer on Pypi <http://pypi.python.org/pypi/tailer>`_

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

Install with ``pip`` or ``easy_install``.

::

    pip install tailer

Examples
========

::

  import tailer
  f = open('test.txt', 'w')
  for i in range(11):
      f.write('Line %d\\n' % (i + 1))
  f.close()

Tail
----
::

    # Get the last 3 lines of the file
    tailer.tail(open('test.txt'), 3)
    # ['Line 9', 'Line 10', 'Line 11']

Head
----
::

    # Get the first 3 lines of the file
    tailer.head(open('test.txt'), 3)
    # ['Line 1', 'Line 2', 'Line 3']

Follow
------
::

    # Follow the file as it grows
    for line in tailer.follow(open('test.txt')):
        print line

Running Tests
=============

Tailer currently only has doctests.

Run tests with nose::

    nosetests --with-doctest src/tailer

Run tests with doctest::

    python -m doctest -v src/tailer/__init__.py
pyviera 0.1
A library for controlling your Panasonic Viera TV
License: MIT
Keywords: tv, automation, home automation

PyViera
=======

PyViera allows you control your Panasonic VIERA TV using Python.

Example
-------

.. code:: python

    from pyviera import Viera, COMMANDS

    # List out all possible commands
    print(COMMANDS.keys())
    print()

    # Look for any supported TVs
    tvs = Viera.discover()

    # Make sure we have at least one
    if len(tvs) > 0:
        # Get the first TV that was found
        tv = tvs[0]

        # Send TV commands
        tv.mute()
        tv.vol_up()
        tv.num(5)

    else:
        print("No TVs could be found")

Compatibility
-------------

According to the description on the `app
store <https://itunes.apple.com/us/app/panasonic-tv-remote-2/id590335696?mt=8>`__,
the following models are supported:

::

    Panasonic flat-panel TV, 2011/2012/2013/2014/2015 VIERA

Contributors
------------

This is a forked repository, based on
`tomokas <https://github.com/tomokas/pyviera>`__ work.