semvec/pypi-packages huggingface dataset:
nameko-query 0.0.1
Query extension for nameko.
License: MIT
Keywords: sample setuptools development

============
Nameko query
============

`Nameko <https://nameko.readthedocs.io/en/stable/>`_ extension for support of running queries.

Queries supports multiple replies for a single query sent and will be returned as a list.


Examples
--------

.. code:: python

    from nameko_query.responder import query_responder

    class BlockedListener(object):
        name = "service"
        routing_prefix = "service"

        @query_responder
        def method(self, parameters, message):
            return "hello world"


.. code:: python

    from nameko_query.request import ClusterQueryProxy

    def query_request(service_name, method_name, parameters={}):
        with ClusterQueryProxy({"AMQP_URI": "amqp://guest:guest@localhost", timeout=0.05) as cluster_query:
            service = getattr(cluster_query, service_name)
            method = getattr(service, method_name)
            return method(parameters)

    print query_request("service", "method", parameters)
fretboard 1.0.0
Fretboard is a python library for generating SVG fretboard images and chord charts in Python.
License: MIT
Keywords: guitar fretboard chord

================
python-fretboard
================

Fretboard is a python library for generating SVG fretboard images and chord charts in Python.

.. image:: example.png

Install
=======

::

    pip install fretboard

Usage
=====

Basic Examples
--------------

`Guitar chord <demo/svg/D.svg>`_::

    chord = fretboard.Chord(positions='xx0232', fingers='---132')
    chord.save('svg/D.svg')

`Bass chord <demo/svg/bass-E.svg>`_::

    chord = fretboard.BassChord(positions='x221', fingers='-321')
    chord.save('svg/bass-E.svg')

`Ukulele chord <demo/svg/ukulele-G.svg>`_::

    chord = fretboard.UkuleleChord(positions='x232', fingers='-132')
    chord.save('svg/ukulele-G.svg')

`Penatonic scale shape <demo/svg/pentatonic-shape.svg>`_::

    fb = fretboard.Fretboard(frets=(5, 8), style={'marker': {'color': 'dodgerblue'}})
    fb.add_marker(string=0, fret=5, label='A', color='chocolate')
    fb.add_marker(string=1, fret=5, label='D')
    fb.add_marker(string=2, fret=5, label='G')
    fb.add_marker(string=3, fret=5, label='C')
    fb.add_marker(string=4, fret=5, label='E')
    fb.add_marker(string=5, fret=5, label='A', color='chocolate')

    fb.add_marker(string=0, fret=8, label='C')
    fb.add_marker(string=1, fret=7, label='E')
    fb.add_marker(string=2, fret=7, label='A', color='chocolate')
    fb.add_marker(string=3, fret=7, label='D')
    fb.add_marker(string=4, fret=8, label='G')
    fb.add_marker(string=5, fret=8, label='C')
    fb.save('svg/pentatonic-shape.svg')

Demo
----

The `demo/` directory contains runnable examples that are served up in a web page.

::

    python-fretboard/demo $ pip install -r requirements.txt
    python-fretboard/demo $ invoke serve

Point your browser to http://localhost:8080 and check out the freshly rendered fretboards!
wetransferpy 0.2.3
WeTransfer command line utility.
License: MIT
Keywords: wetransfer upload download authenticate

============
wetransferpy
============
.. image:: https://travis-ci.org/predat/wetransferpy.svg?branch=master
    :alt: Build Status
    :target: https://travis-ci.org/predat/wetransferpy
.. image:: https://badge.fury.io/py/wetransferpy.svg
    :target: https://badge.fury.io/py/wetransferpy

Python script for uploading and downloading wetransfer files from the command line.
Inspired by `upload-wetransfer <https://github.com/kraynel/upload-wetransfer>`__ by
`kraynel <https://github.com/kraynel>`__ and `wetransfer-upload <https://github.com/creemerica/wetransfer-upload>`__
by `Spencer Cree <https://github.com/creemerica>`.

Features
--------

-  Upload files or directories of files with or without authentication

-  Download file from url

-  Show progress of upload and download


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

.. code:: bash

    pip install wetransferpy

or

.. code:: bash

    git clone https://github.com/predat/wetransferpy


Usage
-----

Authenticate upload:

.. code-block:: python

    from wetransferpy import WeTransfer

    wt = WeTransfer(username="name@example.com",
                    password="thepassword",
                    sender="sender@example.com",
                    receivers=["receiver1@example.com","receiver2@example.com"],
                    channel='',
                    message='Hello from python',
                    expire_in='3m',
                    progress=True,
    )
    wt.uploadFile('thefile.mov')


Anonymous upload:

.. code-block:: python

    from wetransferpy import WeTransfer
    wt = Wetransfer()
    url = wt.uploadFile('thefile.mov')
    print url


Upload Shell script usage:

.. code-block:: bash

    wetranfer-upload -h

    usage: wetransfer-upload [-h] [-b] [-u USERNAME] [-p PASSWORD] [-e EXPIRE]
                         [-c CHANNEL] [-r [RECEIVER [RECEIVER ...]]]
                         [-s SENDER] [-m MESSAGE] [-R]
                         files [files ...]

    Uploads files or folders to WeTransfer.

    positional arguments:
      files                 files or directory to send

    optional arguments:
      -h, --help            show this help message and exit
      -b, --no-progressbar  Hide progress bar
      -u USERNAME, --username USERNAME
                            WeTransfer user account name
      -p PASSWORD, --password PASSWORD
                            WeTransfer password
      -e EXPIRE, --expire EXPIRE
                            File expiration
      -c CHANNEL, --channel CHANNEL
                            WeTransfer channel
      -r [RECEIVER [RECEIVER ...]], --receiver [RECEIVER [RECEIVER ...]]
                            emails of the receivers
      -s SENDER, --sender SENDER
                            email of the sender
      -m MESSAGE, --message MESSAGE
                            message to send
      -R, --recursive       recursive send


Download shell script usage:

.. code-block:: bash

    wetranfer-download -u http://we.tl/XV4MmuqPRd