semvec/pypi-packages huggingface dataset:
palpyutil 0.0.3
Shay Palachy's personal common Python 3 utility functions and classes.
License: MIT
Keywords: pandas dataframe pipeline data

palpyutil
#########

Shay Palachy's personal common Python 3 utility functions and classes.

.. code-block:: python

  from palpyutil.decorators import lazy_property

  @lazy_property
  def some_big_calc(param_array):
    sub_res = [big_func(param) for param in param_array]
    return sum(sub_res)


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

Install ``palpyutil`` with:

.. code-block:: bash

  pip install palpyutil


Credits
=======
Created by Shay Palachy  (shay.palachy@gmail.com).
scanalignment 0.0.6
Scan Alignment of STXM images.
License: MIT
Keywords: sample setuptools development

Scan Alignment
=======================

Scan Alignment is a PyQtGraph-based graphical user interface. It allows for horizontal line alignment of images
collected in the TwinMic beamline through Scanning transmission x-ray microscopy (STXM) imaging technique.


----

README
""""""""""""""""" 

**Introduction**

To do.

**Installation**

For standard Python installations, install scanalignment using pip:

.. code:: bash

    pip install -U pip setuptools
    pip install scanalignment

**Usage**

Once the installation has finished just type on the command line:

.. code:: bash

	scanAlign

**Requirements**

* `Python 2.7 <https://www.python.org/downloads/>`_.
* `Setuptools <https://setuptools.readthedocs.io/en/latest/>`_.
* `Tifffile <https://github.com/blink1073/tifffile>`_.
* `H5Py <http://www.h5py.org/>`_.
* `Matplotlib <https://matplotlib.org/>`_.
* `NumPy <http://www.numpy.org/>`_.
* `PyQt5 <http://pyqt.sourceforge.net/Docs/PyQt5/installation.html>`_.
* `PyQtGraph <http://www.pyqtgraph.org/>`_.
* `SIP <https://www.riverbankcomputing.com/software/sip/download>`_.
muffin-peewee-async 0.1.1
Peewee integration to Muffin framework
License: MIT
Keywords: muffin

Muffin Peewee Async
#############

.. _description:

Muffin Peewee Async -- Peewee integration to Muffin framework using peewee-async.

Based on https://github.com/klen/muffin-peewee with an ability to execute asynchronous queries.


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

**Muffin Peewee Async** should be installed using pip: ::

    pip install muffin-peewee-async


Usage
=====

Add `muffin_peewee_async` to `PLUGINS` in your Muffin Application configuration.

Or install it manually like this: ::

    db = muffin_peewee_async.Plugin(**{'options': 'here'})

    app = muffin.Application('test')
    app.install(db)


Options
-------

`PEEWEE_ASYNC_CONNECTION` -- connection string to your database (postgres://postgres:postgres@127.0.0.1)

`PEEWEE_ASYNC_CONNECTION_PARAMS` -- Additional params for connection ({})

`PEEWEE_ASYNC_MIGRATIONS_PATH` -- path to migration folder (migrations)

Queries
-------

::
    import peewee_async

    @app.ps.peewee_async.register
    class Test(peewee.Model):
        data = peewee.CharField()


    @app.register
    async def view(request):
        tests = await peewee_async.select(Test.select())
        return [t.data for t in tests]


Migrations
----------

Create migrations: ::

    $ muffin example:app pw_create [NAME] [--auto]


Run migrations: ::

    $ muffin example:app pw_migrate [NAME] [--fake]


Rollback migrations: ::

    $ muffin example:app pw_rollback NAME


Load/Dump data to CSV
---------------------

Dump table `test` to CSV file: ::

    $ muffin example:app pw_dump test


Load data from CSV file to table `test`: ::

    $ muffin example:app pw_load test


.. _bugtracker:

Bug tracker
===========

If you have any suggestions, bug reports or
annoyances please report them to the issue tracker
at https://github.com/serathius/muffin-peewee-async/issues

.. _contributing:

Contributing
============

Development of Muffin Peewee Async happens at: https://github.com/serathius/muffin-peewee-async


Contributors
=============

* serathius (Marek Siarkowicz)

.. _license:

License
=======

Licensed under a `MIT license`_.

.. _links:

.. _MIT license: http://opensource.org/licenses/MIT