semvec/pypi-packages huggingface dataset:
pygrabbit 0.3.0
PyGrabbit is a simple URL scraper that will try to get the best image given the web page.
License: MIT

>From the entrails of 'Skynet' comes PyGrabbit, a very clever bastard that will not stop at anything to fulfill its purpose.

PyGrabbit is a simple URL scrapper inspired by the Ruby Grabbit https://github.com/rlarcombe/grabbit. It will try to return the best image(s) that represent the content on a given web page or not.
TGScheduler 1.7.0
Pure Python Scheduler
License: MIT
Keywords: turbogears tg tg2 scheduler

TGScheduler
===========

This is a pure Python scheduler that can be used in any application. Tasks can be run in-process
(within threads), forked (as new processes) or synchronously into the code.

The scheduler makes it easy to have one-time or recurring tasks run as needed.


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

The documentation is hosted on `ReadTheDocs`_.

.. _ReadTheDocs: http://tgscheduler.readthedocs.org


History
-------

This package is based on the TurboGears 1 built-in scheduler, which is based on Kronos by Irmen de Jong.

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

The many contributors to the initial TGScheduler 1.6.3:

    - Irmen de Jong
    - Vince Spicer
    - Christoph Zwerschke
    - Many more lost in the TurboGears commit history...


In the version ported to a mercurial repository on 2015-05-15:

    - Andronikos Nedos, <https://github.com/anedos>
    - Houzéfa Abbasbhay, <houzefa.abba@xcg-consulting.fr>
    - Florent Aide, <florent.aide@xcg-consulting.fr>

Changelog
=========


1.7.0 Initial import + Python 3 (2015-05-15)
--------------------------------------------

  - Initial import from `Andronikos's git fork`_, which was
    itself imported from `Sourceforge`_.
    See the CONTRIBUTORS.rst file for credits.

  .. _Andronikos's git fork: https://github.com/anedos/tgscheduler
  .. _Sourceforge: http://sourceforge.net/p/turbogears1/code/7424/tree/projects/TGScheduler/trunk/

  - Support Python 3; require "six".


1.6.3 (2011-12-01)
------------------

  - Last release before the import.
objectifiedetree 0.0.1
Dot notation for ElementTrees
License: MIT
Keywords: objectifiedetree

objectifiedetree
================

|build-status-image| |pypi-version| |wheel|

Overview
--------

Wouldn't it be nice to use dot notation for ElementTrees? This package
allows for:

.. code:: python

    tree = ET.fromstring('<root><a><b c="asdf" /></a></root>')
    a = tree.a
    b = a.b
    b.attrib['c'] == "asdf" # True

``tree.a`` will be a
```Element`` <https://docs.python.org/3.4/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element>`__
with the extra
```__getattr__`` <https://github.com/arve0/objectifiedetree/blob/master/objectifiedetree/__init__.py#L11-12>`__
method. This means that you can use the element as you would do
normally, but names in your XML that crases with python's methods or
attributes must be accessed through ``tree.find(xpath)``.

This package uses the python implementation of etree, which makes it
slower than etree found in CPython. An alternative would be to
monkey-patch the built-in with
`forbiddenfruit <https://github.com/clarete/forbiddenfruit>`__, but I
haven't looked into this.

``objectifiedetree`` has copied the python implementation of etree from
`CPython 3.4
Lib/xml/etree <https://github.com/python/cpython/tree/master/Lib/xml/etree>`__
and will probably only work with Python 3.4.

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

Install using ``pip``...

.. code:: bash

    pip install objectifiedetree

Example
-------

.. code:: python

    from objectifiedetree import *

    tree = ET.parse('/path/to/file.xml')
    # dot notation :-)
    el = tree.xpath.to.your.element

    # use normal etree attributes
    print(el.attrib)

    # access name crashes
    attrib_el = el.find('./attrib')

Development
-----------

Install dependencies and link development version of objectifiedetree to
pip:

.. code:: bash

    git clone https://github.com/arve0/objectifiedetree
    cd objectifiedetree
    pip install -r requirements.txt # install dependencies and objectifiedetree-package

Testing
~~~~~~~

.. code:: bash

    tox

Build documentation locally
~~~~~~~~~~~~~~~~~~~~~~~~~~~

To build the documentation:

.. code:: bash

    pip install -r docs/requirements.txt
    make docs

.. |build-status-image| image:: https://secure.travis-ci.org/arve0/objectifiedetree.png?branch=master
   :target: http://travis-ci.org/arve0/objectifiedetree?branch=master
.. |pypi-version| image:: https://pypip.in/version/objectifiedetree/badge.svg
   :target: https://pypi.python.org/pypi/objectifiedetree
.. |wheel| image:: https://pypip.in/wheel/objectifiedetree/badge.svg
   :target: https://pypi.python.org/pypi/objectifiedetree
JSON2Mantle 0.0.9
Generate Mantle models using JSON files
License: MIT
Keywords: mantle parser objective-c

JSON2Mantle
========================

Generate [Mantle](https://github.com/Mantle/Mantle) models using JSON files.

##Quick start

### Install

```
$ sudo pip install JSON2Mantle
```

### Usage

```
$ json2mantle [-h] [--prefix PREFIX] [--author AUTHOR]
                   json_file output_dir
```

### Example

```
$ json2mantle api_model.json class --prefix XYZ --author "John Smith"
```

will generate Mantle models according to your `api_model.json` structure. The output files will be created under `output_dir` directory, the author name will be `John Smith`, and the Objective-C classes have the prefix `XYZ`.

## Features

* Supports nested JSON data, which means JSON2Mantle can generate the correct number of classes that the JSON file contains.
* Convert field name like `var_name` to `varName` automatically.
* Author name is grabbed from Address Book by default (Python 2 on OS X only).
* Python 2/3 compatible.
* Generated Objective-C files are documented.

## Note

* When reserved words in Objective-C appear, it will replace the original name with a prefix `model`. For instance, if you have a field with the name `id`, the generated one would be `modelId`.
* Only supports generating Objective-C files.
* If the input JSON file is an array, it will ask you to give a name for the array items.

## TODO
- [ ] reserved words
- [ ] URL type
- [ ] Unit test

## License
The MIT License (MIT)
flask-thumbnails-s3 0.1.5
An extension to create image thumbnails on Amazon S3 (or on local storage) with the Flask framework, based on flask-thumbnails.
License: MIT

flask-thumbnails-s3
===================

An extension to create image thumbnails on Amazon S3 (or on local storage) with the Flask framework, based on flask-thumbnails.


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

Install with ``pip``:

Run ``pip install flask-thumbnails-s3``

Add ``Thumbnail`` to your extension file:

.. code:: python

    from flask_thumbnails_s3 import Thumbnail

    app = Flask(__name__)

    thumb = Thumbnail(app)

Add ``MEDIA_FOLDER`` and ``MEDIA_URL`` in your settings, as well as various S3-related values:

.. code:: python

    app.config['MEDIA_FOLDER'] = '/home/www/media'
    app.config['MEDIA_URL'] = '/media/'
    app.config['THUMBNAIL_S3_STORAGE_TYPE'] = 's3'
    app.config['THUMBNAIL_S3_BUCKET_NAME'] = 'bucket-foo'
    app.config['THUMBNAIL_S3_ACCESS_KEY_ID'] = 'key-here'
    app.config['THUMBNAIL_S3_ACCESS_KEY_SECRET'] = 'secret-here'
    app.config['THUMBNAIL_S3_USE_HTTPS'] = True
    app.config['THUMBNAIL_S3_STATIC_ROOT_PARENT'] = '/path/to/project/root/'


Example usage
-------------

Use in Jinja2 template:

::

    <img src="{{ 'image.jpg'|thumbnail('200x200', storage_type='s3', bucket_name='bucket-foo') }}" alt="" />
    <img src="{{ 'image.jpg'|thumbnail('200x200', crop='fit', quality=100) }}" alt="" />


For a complete, working Flask app that demonstrates flask-thumbnails-s3 in action, have a look at `flask-s3-save-example <https://github.com/Jaza/flask-s3-save-example>`_.


Options
~~~~~~~

``crop='fit'`` returns a sized and cropped version of the image, cropped to the requested aspect ratio and size, `read more <http://pillow.readthedocs.org/en/latest/reference/ImageOps.html#PIL.ImageOps.fit>`_.

``quality=XX`` changes the quality of the output JPEG thumbnail, default ``85``.


Develop and Production
----------------------

Production
~~~~~~~~~~

In production, you need to add media directory in you web server.


Develop
~~~~~~~

To service the uploaded files need a helper function, where ``/media/`` your settings ``app.config['MEDIA_URL']``:

.. code:: python

    from flask import send_from_directory

    @app.route('/media/<regex("([\w\d_/-]+)?.(?:jpe?g|gif|png)"):filename>')
    def media_file(filename):
        return send_from_directory(app.config['MEDIA_THUMBNAIL_FOLDER'], filename)


Option settings
---------------

If you want to store the thumbnail in a folder other than the ``MEDIA_FOLDER``, you need to set it manually:

.. code:: python

    app.config['MEDIA_THUMBNAIL_FOLDER'] = '/home/www/media/cache'
    app.config['MEDIA_THUMBNAIL_URL'] = '/media/cache/'


Acknowledgements
----------------

Much of the code here is based on flask-thumbnails by Dmitriy Sokolov:

https://github.com/silentsokolov/flask-thumbnails

Many thanks to the author and contributors of flask-thumbnails, for the foundation of this codebase, and for the generous license terms that allow forks like this.
exportrecipe 0.2
Buildout recipe to export buildout configuration to JSON file.
License: MIT

.. image:: https://travis-ci.org/sirex/exportrecipe.svg
   :target: https://travis-ci.org/sirex/exportrecipe

.. image:: https://coveralls.io/repos/sirex/exportrecipe/badge.svg
   :target: https://coveralls.io/r/sirex/exportrecipe

.. image:: https://pypip.in/d/exportrecipe/badge.svg
   :target: https://pypi.python.org/pypi/exportrecipe/

.. image:: https://pypip.in/v/exportrecipe/badge.svg
   :target: https://pypi.python.org/pypi/exportrecipe/

.. image:: https://pypip.in/license/exportrecipe/badge.svg
   :target: https://pypi.python.org/pypi/exportrecipe/

----

This is a Buildout recipe, that can export buildout configuration to JSON file.
Later this exported file can be used to get exported settings and use them in
your project.

Buildout provides extensive functionality for managing configuration, but does
not have tools to use this configuration anywhere else outside Buildout itself.
This recipe exports all settings to JSON file, allowing to use configuration
parameters outside Buildout.


Usage
=====

.. code-block:: cfg

    [buildout]
    parts = settings

    [settings]
    recipe = exportrecipe
    website-url = http://example.com/

This will generate ``settings.json`` file in your buildout directory with following content:

.. code-block:: json

    {
      "website-url": "http://localhost:8000/"
    }

``exportrecipe`` will export all parameters from recipe's section, except
``recipe`` parameter.

Now you can use this file for example in your ``settings.py``:
    
.. code-block:: python

    import json

    with open('settings.json') as f:
        settings = json.load(f)

    WEBSITE_URL = settings['website-url']

Also you can use a helper:

.. code-block:: python

    import exportrecipe

    config = exportrecipe.load('settings.json')

    WEBSITE_URL = config.website_url

It is possible to change destination of exported file using ``destination``
option:

.. code-block:: cfg

    [buildout]
    parts = settings

    [settings]
    recipe = exportrecipe
    destination = somewhereelse.json
    website-url = http://example.com/

This will generate ``somewhereelse.json`` file with following content:

.. code-block:: json

    {
      "destination": "somewhereelse.json",
      "website-url": "http://localhost:8000/"
    }

Change History
**************

0.2 (2015-05-17)
================

- Initial public release.
sentry-plivo 0.1
A Sentry plugin for sending SMS notifications via Plivo.
License: MIT

sentry-plivo
------------

Sentry plugin for SMS notifications via Plivo.

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

``pip install -e git+https://github.com/dash1291/sentry-plivo.git``

After installation, make sure to enable the ``Plivo`` plugin from ``Settings->Manage Integrations``.

Configuration
=============

After the plugin has been enabled you'll be required to configure it. You will need to input the ``Authentication ID`` and ``Authentication Token`` that can be obtained by registering an app on Plivo_.

.. _Plivo: http://plivo.com/

You will also be required to input the sender and recipient phone numbers that will be used while sending the SMS notifications.
medz 24
medicine effect registration program
License: MIT

####################################
MEDICINE EFFECT REGISTRATION PROGRAM
####################################

Positive symptoms:

 1) delusions
 2) hallucinations
 3) confused thinking
 4) excitement

To fight these symptoms medicine are given that block the receptors in the
brain, making them non-functional. Non-functional brains give these
negative symptoms:

 1) lack of emotions
 2) less social contact
 3) no initiative
 4) no concentration
 5) no motivation
 6) no energy

Problem with negative symptoms are that the patient gets the blame of them.

Affective symptoms:

 1) Depression
 2) Manical

Makes social paranoid. Always negative interpreting.
OrbitalPy 0.7.0
High level orbital mechanics package.
License: MIT

Orbital
-------

|Build Status| |PyPI Version| |Python Version| |MIT License|

Orbital is a high level orbital mechanics package for Python.

Installation
~~~~~~~~~~~~

.. code:: bash

    $ pip install orbitalpy

Example
~~~~~~~

.. code:: python

    from orbital import earth, KeplerianElements, Maneuver, plot

    from scipy.constants import kilo
    import matplotlib.pyplot as plt

    orbit = KeplerianElements.with_altitude(1000 * kilo, body=earth)
    man = Maneuver.hohmann_transfer_to_altitude(10000 * kilo)
    plot(orbit, title='Maneuver 1', maneuver=man)
    plt.show()

.. figure:: http://i.fraz.eu/5b84e.png
   :alt: Example plot

   Example plot

Documentation
~~~~~~~~~~~~~

For more information, view the `documentation
online <http://pythonhosted.org/OrbitalPy/>`__.

.. |Build Status| image:: http://img.shields.io/travis/RazerM/orbital.svg?style=flat-square
   :target: https://travis-ci.org/RazerM/orbital
.. |PyPI Version| image:: http://img.shields.io/pypi/v/orbitalpy.svg?style=flat-square
   :target: https://pypi.python.org/pypi/orbitalpy/
.. |Python Version| image:: https://img.shields.io/badge/python-2.7%2C%203-brightgreen.svg?style=flat-square
   :target: https://www.python.org/downloads/
.. |MIT License| image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
   :target: https://raw.githubusercontent.com/RazerM/orbital/master/LICENSE