semvec/pypi-packages huggingface dataset:
pytunol 0.1.1
Interpretador de Escocia: un Python con acento lusitano.


    Es un lenguaje de programación que modifica la sintaxis de Python para
    aceptar comandos en portugués. El lenguaje fue desarrollado como una
    extensión del Python que acepta comandos en portugués.

    El único objetivo de Pytuñol es facilitar el aprendizaje de programación.
    Una vez que los conceptos básicos se incautan, la transición a un lenguaje
    real (en el caso Python) se vuelve gradual y natural.
onlineschemachange 0.0.1.post0
Online Schema Change for MySQL

OnlineSchemaChange
==================

OnlineSchemaChange is a tool for making schema changes for MySQL tables
in a non-blocking way

Examples
--------

``OSC`` must be run on the same host as MySQL server.

``copy`` mode
~~~~~~~~~~~~~

Say we have an existing table named ``my_table`` under database
``test``:

.. code:: mysql

    CREATE TABLE `my_table` (
      `id` int(11) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1

Now if we want to run
``ALTER TABLE ``my_table`` add column ``data`` varchar(10);`` against
it. Instead of feed the ``ALTER TABLE`` statement to OSC, we just need
to put a ``CREATE TABLE`` statement representing the desired schema into
a file ``/tmp/foo.sql`` like below:

.. code:: mysql

    CREATE TABLE `my_table` (
      `id` int(11) NOT NULL,
      `data` varchar(10) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1

Then run the following command:

.. code:: sh

    osc_cli copy --ddl-file-list=foo.sql --socket=/tmp/mysql.socket --database=test

``cleanup`` mode
~~~~~~~~~~~~~~~~

To cleanup the table left behind by last run of OSC

.. code:: sh

    osc_cli cleanup --socket=/tmp/mysql.socket --database=test

To terminate a currently running ``OSC`` process on certain MySQL
Instance:

.. code:: sh

    osc_cli cleanup

``direct`` mode
~~~~~~~~~~~~~~~

This mode is reserved for utilizing MySQL's native online ddl for schema
change, and help DBA manage all the schema related operation into this
one tool. For now, if you plan to use ``OSC`` for all your schema
management, this mode is here for you to create a empty new table.
Following command will create an empty table into database ``test``

.. code:: sh

    osc_cli direct --ddl-file-list=foo.sql --socket=/tmp/mysql.socket --database=test

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

OnlineSchemaChange requires

**System packages**

For Python2

.. code:: sh

    sudo apt-get install python-dev libmysqlclient-dev # Debian / Ubuntu
    sudo yum install python-devel mysql-devel # Red Hat / CentOS

For Python3

.. code:: sh

    sudo apt-get install python3-dev # debian / Ubuntu
    sudo yum install python3-devel # Red Hat / CentOS

**Python requirements** \* python >= 2.7 \* python module: six,
`pyparsing <http://pyparsing.wikispaces.com/>`__,
`MySQLdb <http://github.com/PyMySQL/mysqlclient-python/tarball/master>`__

Installing OnlineSchemaChange
-----------------------------

Run following command to install dependency

.. code:: sh

    python setup.py install --install-scripts=/usr/local/bin

If you have multiple python version available in your environment, or
you don't want mess up with system's default python, you can use
``pyenv`` and ``virtualenv``

How OnlineSchemaChange works
----------------------------

Check wiki page for more detail, and some advanced usage.

How to contribute
-----------------

Check this `wiki
page <https://github.com/facebookincubator/OnlineSchemaChange/wiki/How-to-Contribute>`__
if you want to contribute to this project.

License
-------

OnlineSchemaChange is BSD-licensed. We also provide an additional patent
grant.
online-schema-change 0.0.1.post0
Online Schema Change for MySQL

OnlineSchemaChange
==================

OnlineSchemaChange is a tool for making schema changes for MySQL tables
in a non-blocking way

Examples
--------

``OSC`` must be run on the same host as MySQL server.

``copy`` mode
~~~~~~~~~~~~~

Say we have an existing table named ``my_table`` under database
``test``:

.. code:: mysql

    CREATE TABLE `my_table` (
      `id` int(11) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1

Now if we want to run
``ALTER TABLE ``my_table`` add column ``data`` varchar(10);`` against
it. Instead of feed the ``ALTER TABLE`` statement to OSC, we just need
to put a ``CREATE TABLE`` statement representing the desired schema into
a file ``/tmp/foo.sql`` like below:

.. code:: mysql

    CREATE TABLE `my_table` (
      `id` int(11) NOT NULL,
      `data` varchar(10) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1

Then run the following command:

.. code:: sh

    osc_cli copy --ddl-file-list=foo.sql --socket=/tmp/mysql.socket --database=test

``cleanup`` mode
~~~~~~~~~~~~~~~~

To cleanup the table left behind by last run of OSC

.. code:: sh

    osc_cli cleanup --socket=/tmp/mysql.socket --database=test

To terminate a currently running ``OSC`` process on certain MySQL
Instance:

.. code:: sh

    osc_cli cleanup

``direct`` mode
~~~~~~~~~~~~~~~

This mode is reserved for utilizing MySQL's native online ddl for schema
change, and help DBA manage all the schema related operation into this
one tool. For now, if you plan to use ``OSC`` for all your schema
management, this mode is here for you to create a empty new table.
Following command will create an empty table into database ``test``

.. code:: sh

    osc_cli direct --ddl-file-list=foo.sql --socket=/tmp/mysql.socket --database=test

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

OnlineSchemaChange requires

**System packages**

For Python2

.. code:: sh

    sudo apt-get install python-dev libmysqlclient-dev # Debian / Ubuntu
    sudo yum install python-devel mysql-devel # Red Hat / CentOS

For Python3

.. code:: sh

    sudo apt-get install python3-dev # debian / Ubuntu
    sudo yum install python3-devel # Red Hat / CentOS

**Python requirements** \* python >= 2.7 \* python module: six,
`pyparsing <http://pyparsing.wikispaces.com/>`__,
`MySQLdb <http://github.com/PyMySQL/mysqlclient-python/tarball/master>`__

Installing OnlineSchemaChange
-----------------------------

Run following command to install dependency

.. code:: sh

    python setup.py install --install-scripts=/usr/local/bin

If you have multiple python version available in your environment, or
you don't want mess up with system's default python, you can use
``pyenv`` and ``virtualenv``

How OnlineSchemaChange works
----------------------------

Check wiki page for more detail, and some advanced usage.

How to contribute
-----------------

Check this `wiki
page <https://github.com/facebookincubator/OnlineSchemaChange/wiki/How-to-Contribute>`__
if you want to contribute to this project.

License
-------

OnlineSchemaChange is BSD-licensed. We also provide an additional patent
grant.
bookbook 0.2
Tools to use a collection of notebooks as 'chapters'
Requires Python: >=3.5

Bookbook converts a set of notebooks in a directory to HTML or PDF,
preserving cross references within and between notebooks.

This code is in early development, so use it at your own risk.

It expects a directory of notebooks whose names indicate their order, e.g.
``01-introduction.ipynb``. To run it::

    python3 -m bookbook.html           # HTML output under html/
    python3 -m bookbook.latex [--pdf]  # Latex/PDF output as combined.(tex|pdf)

Add ``--help`` to either command for more options.

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

Bookbook requires Python 3.5.

::

    pip install bookbook

To install locally as an editable install, run::

    pip install flit
    git clone https://github.com/takluyver/bookbook.git
    cd bookbook
    flit install --symlink
anypubsub 0.6
A generic interface wrapping multiple backends to provide a consistent pubsub API.
Keywords: pubsub pub/sub redis mongodb

anypubsub
=========

.. image:: https://travis-ci.org/smarzola/anypubsub.png?branch=master
   :target: https://travis-ci.org/smarzola/anypubsub

.. image:: https://coveralls.io/repos/github/smarzola/anypubsub/badge.svg?branch=master
   :target: https://coveralls.io/github/smarzola/anypubsub?branch=master


A generic interface wrapping multiple backends to provide a consistent pubsub API.


Usage
------

Create a pubsub object::

    from anypubsub import create_pubsub
    pubsub = create_pubsub('memory')

or create a pubsub object from settings::

    from anypubsub import create_pubsub_from_settings
    pubsub = create_pubsub_from_settings({'anypubsub.backend': 'memory'}, prefix='anypubsub.')

Subscribe to a channel::

    subscriber = pubsub.subscribe('a_channel')

you can also subscribe to multiple channels::

    subscriber = pubsub.subscribe('a_channel', 'b_channel')

the subscriber is an iterator object that returns the next published message at each loop increment, and blocks until
next message is published.

Publish a message to a channel::

    pubsub.publish('a_channel', 'hello world!')

    message = next(subscriber)
    assert message == 'hello world!'

Supported backends
---------------------

* memory
* redis
* mongodb
* amqp (tested with rabbitmq)

Backend specific optional settings
-----------------------------------

redis::

    host: hostname or full redis url, default: localhost
    port: default 6379
    db: default 0
    max_connections: connection pool max connections
    connection_pool: an already created redis-py ConnectionPool

mongodb::

    host: hostname or full mongodb url
    port: mongodb port
    max-pool-size: connection pool max connections
    client: an already created pymongo MongoClient
    database: database used to store messages, default anypubsub
    collection: collection used to store messages, default anyps_messages
    collection_size: messages collection size in bytes, default 10MB