semvec/pypi-packages huggingface dataset:
seqlearn 0.2
Sequence learning toolkit
License: MIT

.. -*- mode: rst -*-

seqlearn
========

seqlearn is a sequence classification toolkit for Python. It is designed to
extend `scikit-learn <http://scikit-learn.org>`_ and offer as similar as
possible an API.


Compiling and installing
------------------------

Get NumPy >=1.6, SciPy >=0.11, Cython >=0.20.2 and a recent version of
scikit-learn. Then issue::

    python setup.py install

to install seqlearn.

If you want to use seqlearn from its source directory without installing,
you have to compile first::

    python setup.py build_ext --inplace


Getting started
---------------

The easiest way to start using seqlearn is to fetch a dataset in CoNLL 2000
format. Define a task-specific feature extraction function, e.g.::

    >>> def features(sequence, i):
    ...     yield "word=" + sequence[i].lower()
    ...     if sequence[i].isupper():
    ...         yield "Uppercase"
    ...

Load the training file, say ``train.txt``::

    >>> from seqlearn.datasets import load_conll
    >>> X_train, y_train, lengths_train = load_conll("train.txt", features)

Train a model::

    >>> from seqlearn.perceptron import StructuredPerceptron
    >>> clf = StructuredPerceptron()
    >>> clf.fit(X_train, y_train, lengths_train)

Check how well you did on a validation set, say ``validation.txt``::

    >>> X_test, y_test, lengths_test = load_conll("validation.txt", features)
    >>> from seqlearn.evaluation import bio_f_score
    >>> y_pred = clf.predict(X_test, lengths_test)
    >>> print(bio_f_score(y_test, y_pred))

For more information, see the `documentation
<http://larsmans.github.io/seqlearn>`_.


|Travis|_

.. |Travis| image:: https://api.travis-ci.org/larsmans/seqlearn.png?branch=master
.. _Travis: https://travis-ci.org/larsmans/seqlearn
PubCode 1.1.0
A simple module for creating barcodes.
License: MIT

PubCode
=======
PubCode is a library that encodes barcodes and allows easy access to the data
required to render the barcode. It can optionally use PIL to render the
barcode or to provide a data URL containing a single pixel high PNG barcode
which can be resized by a browser to a more usefull size.

.. image:: https://travis-ci.org/Venti-/pubcode.svg?branch=master
    :target: https://travis-ci.org/Venti-/pubcode


Supported barcodes
------------------
    - Code128


Usage
-------

    >>> from pubcode import Code128
    >>> barcode = Code128('Hello!', charset='B')

You can access the data required to render the barcode easily and intuitively.

    >>> barcode.bars
    '2112142311131122142211142211141341112221221212412331112'
    >>> barcode.modules  # doctest: +ELLIPSIS
    [0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, ...]

You can generate PIL.Image objects from barcodes.

    >>> barcode.image()  # doctest: +ELLIPSIS
    <PIL.Image.Image image mode=1 size=121x1 at ...>
    >>> barcode.image(height=10, module_width=2)  # doctest: +ELLIPSIS
    <PIL.Image.Image image mode=1 size=242x10 at ...>

You can also generate data URLs.

    >>> barcode.data_url()  # doctest: +ELLIPSIS
    'data:image/png;base64,...'

You can also control the exact way in which the barcode is encoded, which
allows you to control the size of the resulting barcode.

    >>> barcode = Code128('12\x00x\x01', charset='CABA')
    >>> barcode.symbols
    ['[Start Code C]', '12', '[Code A]', '\x00', '[Shift B]', 'x', '\x01', '\x15', '[Stop]']
startupthreads-cli 0.1.14
Startup Threads CLI
License: MIT
Keywords: startup threads startupthreads cli swag shirts

Startup Threads CLI
===================

Send t-shirts from the command line.

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

::

    $ git clone git@github.com:soulshake/startup-threads-cli.git
    $ cd startup-threads-cli/
    $ pip install .

Setup
=====

Export your API key as an environment variable in your bash profile and
source it:

::

    $ echo "export STARTUP_THREADS_API_KEY abc123def456" >> ~/.bashrc && source ~/.bashrc

You can check that it's set up correctly by running:

::

    echo $STARTUPTHREADS_API_KEY

...which should display your API key.

Commands
--------

::

    $ swag  --help
    Usage: swag [OPTIONS] COMMAND [ARGS]...

    Options:
      -h, --help  Show this message and exit.

    Commands:
      giveaway   Create a new StartupThreads giveaway (i.e.
      inventory  Call a function to display our StartupThreads...
      send       create a new StartupThreads order
      status     show the status of a StartupThreads order

::

    $ swag inventory

    name                 id        status    description      MS  MM    ML    MXL    M2XL      WS    WM    WL  WXL    W2XL  
    -------------------  --------  --------  -------------  ----  ----  ----  -----  ------  ----  ----  ----  -----  ------
    Motherboard Glow     3xyhor59  approved                    7  19    31    41     10         9     0     0              
    No Bullshit Hashtag  jsi4_xay  approved                    5  13    26    16     9          6     0     2             
    Invaders             rn2qjafd  approved                    9                                4     6     8            
    Scribble (AA)        86dix_xv  approved                   15  0     6     3                10    10    20           
    Scribble (Canvas)    zif5xjib  approved                   16  1     23    15               15    13    17          
    Lotus                lzunev7m  approved                    4  7     21    23     6          3     0     2