semvec/pypi-packages huggingface dataset:
pelican-meetup-info 0.0.2
A Pelican plugin that provides group and event information for a meetup.com group.
License: MIT
Keywords: pelican plugin meetup

====================
pelican-meetup-info
====================

A Pelican plugin for including Meetup group and event information on generated pages and articles.

***************
Installation
***************

* Install this package:

  .. code-block:: shell

    pip install pelican_meetup_info

* Add the following to your `pelicanconf.py` to activate the plugin:

  .. code-block:: python

    PLUGINS = ['pelican_meetup_info']

* Then add one of the following pairs of configs:

  * If you keep your config file private:

    .. code-block:: python  

      MEETUP_API_KEY = 'your key here'
      MEETUP_URLNAME = 'Cleveland-Area-Python-Interest-Group'

    Get your API key here: https://www.google.com/search?q=meetup+api+key&ie=utf-8&oe=utf-8

  * Or if you expose your config file to the public (like in a public repo):

    .. code-block:: python  

      MEETUP_GROUP_SIGNED_URL = 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group?photo-host=public&sig_id=1442&sig=3c0d385c607d27a7bd3ae14f220f17856eb163c1'
      MEETUP_EVENTS_SIGNED_URL= 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group/events?photo-                                                          host=public&page=20&sig_id=1442&sig=3dcd3aa3bfacf17cb45302a722ced9727e99cd37'

    More info about signed URLs here: https://www.meetup.com/meetup_api/auth/#keysign


***************
Usage
***************

With the plugin installed and properly configured, new dictionaries named `meetup_group` and `meetup_events` containg the Meetup API responses will be availabe in your page/article context. You may reference them in templates like this:

meetup_group:

  .. code-block:: html  

    {% if page.meetup_group %}
    <h2>Meetup Info</h2>
    <h3><a href="{{ page.meetup_group.link }}">{{ page.meetup_group.name }}</a></h3>
    {{ page.meetup_group.description }}
    {% endif %}

More info about group data: https://secure.meetup.com/meetup_api/console/?path=/:urlname

meetup_events:

  .. code-block:: html

    {% if page.meetup_events %}
    <h2>Upcoming Meetups</h2>
    <ul>
        {% for meetup_event in page.meetup_events[:3] %}
        <li>
            <h3><a href="{{ meetup_event.link }}">{{ meetup_event.name }}</a></h3>
            <p>{{ meetup_event.local_date }} at {{ meetup_event.local_time }}</p>
            <p>{{ meetup_event.description }}</p>
            <p>At {{ meetup_event.venue.name }} - {{ meetup_event.venue.address_1 }}, {{ meetup_event.venue.city }}, {{ meetup_event.venue.state }} {{meetup_event.venue.zip }}</p>
        </li>
        {% endfor %}
    </ul>
    {% endif %}

More info about events data: https://secure.meetup.com/meetup_api/console/?path=/:urlname/events
resources 0.0.1
Resource centered REST API clients
License: MIT
Keywords: django resource api model microservices client request lazy

===============
django-resource
===============

|PyPI latest| |CI Status|

Resource centered REST API clients

-------------------
Ideas on how to use
-------------------

Not all features stated in the following examples are implemented.
This section serves only as motivation for future functionalities.


.. code:: python

    import resources


    class PersonResource(resources.Resource):
        class Meta:
            base_endpoint = 'http://api.com/v1/persons/'


    class PageResource(resources.Resource):
        class Meta:
            endpoints = {
                'delete': 'http://api.com/v1/pages/{}/'
                'filter': 'http://api.com/v1/pages/'
                'get': 'http://api.com/v1/pages/{}/'
                'patch': 'http://api.com/v1/pages/{}/'
                'post': 'http://api.com/v1/pages/'
                'put': 'http://api.com/v1/pages/'
            }

        owner = resources.RelatedField(
            PersonResource,
            source_field='owner_url',  # default is owner_id
            auto_follow=True,  # default is False
        )

        comments = resources.MultipleRelatedField(
            CommentResource,
            source_field='comments_url',
        )


    # GET / single
    person = Person.objects.get(pk=1)
    print(person.name)

    # GET / list
    person_reqset = Person.objects.filter(age=18)
    for person in person_reqset:  # lazy request
        print(person.name)

    # POST
    person = Person.objects.create(name='John Doe', age=18)

    # PATCH
    person.age = 20
    person.save()

    # PUT
    person = Person.objects.update_or_create(name='John Doe', age=30)


.. |PyPI latest| image:: https://img.shields.io/pypi/v/django-resource.svg?maxAge=2592000
    :target: https://github.com/lamenezes/django-resource

.. |CI Status| image:: https://travis-ci.org/lamenezes/django-resource.svg?branch=master
    :target: https://travis-ci.org/lamenezes/django-resource
pytest-doctest-ellipsis-markers 0.1.0
Setup additional values for ELLIPSIS_MARKER for doctests
License: MIT

===============================
pytest-doctest-ellipsis-markers
===============================

.. image:: https://travis-ci.org/wooyek/pytest-doctest-ellipsis-markers.svg?branch=master
    :target: https://travis-ci.org/wooyek/pytest-doctest-ellipsis-markers
    :alt: See Build Status on Travis CI

.. image:: https://ci.appveyor.com/api/projects/status/github/wooyek/pytest-doctest-ellipsis-markers?branch=master
    :target: https://ci.appveyor.com/project/wooyek/pytest-doctest-ellipsis-markers/branch/master
    :alt: See Build Status on AppVeyor

Setup additional values for ELLIPSIS_MARKER for doctests

----

This `Pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `Cookiecutter-pytest-plugin`_ template.


Features
--------


Doctest has problems with matching default ELLIPSIS_MARKER at the begging of line and
interprets them as line continuation characters and not as ellipsis for the output.
The easy way was to use `# doctest: +SKIP`::

    >>> u'Tanie dranie niesłychanie' # doctest: +SKIP
    ...

Without `SKIP` it would not work. But then the statement is not tested :(

This plugin cant extend `ELLIPSIS_MARKER` mathing a little
without actually changing the default `ELLIPSIS_MARKER` value::

    >>> u'Adios pomidory'
    '...'


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

You can install "pytest-doctest-ellipsis-markers" via `pip`_ from `PyPI`_::

    $ pip install pytest-doctest-ellipsis-markers


Usage
-----

By default the markers below will be treated as ELLIPSIS_MARKER, to change them
add `doctest_ellipsis_markers` to your `ini style configuration <https://docs.pytest.org/en/latest/customize.html>`_.

.. code-block:: ini

    [pytest]
    doctest_ellipsis_markers = [...] '...' "..."


Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the `MIT`_ license, "pytest-doctest-ellipsis-markers" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/wooyek/pytest-doctest-ellipsis-markers/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.python.org/pypi/pip/
.. _`PyPI`: https://pypi.python.org/pypi
stock_gym 0.3a0
An OpenAI Gym environment for stock market data
License: MIT
Keywords: openai-gym-environments openai-gym openai

Stock Gym
==========================

This is a stock market `gym` environment for testing/validating stock market
algorithms.

To install, run::
    pip install stock_gym gym

and use::
    from stock_gym.envs.stocks import make

and run::
    env = make('MarketEnv-v0').unwrapped

For more information, please see the `OpenAI Gym <https://github.com/openai/gym/>`_.

Credits
-------

`Bobby <http://bobby.social>`_


News
====

0.2 - 0.3
-----

*Release date: 12-Jan-2018*

* Fixed import bugs.

0.1a, 0.1b, 0.1c, 0.1d
-----

*Release date: 12-Jan-2018*

* Updated documentation; fixed imports

0.1
-----

*Release date: 12-Jan-2018*

* No news is good news.
zerorm 0.2.0
Looks like ORM and stores your data
License: MIT

Zerorm
======

Zerorm is a simple wrapper for three amazing packages. This repository is the
place where `TinyDB <https://github.com/msiemens/tinydb>`_, `Schematics <https://github.com/schematics/schematics>`_
and `Lifter <https://github.com/EliotBerriot/lifter>`_ together look like Django ORM.

It's still work in progress and not everything looks like Django ORM, but it will.

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

.. code-block:: shell

     pip install zerorm

Usage
-----

First create a file with models and database instance attached to every model:

.. code-block:: python

    from zerorm import db, models

    database = db('db.json')


    class Message(models.Model):
        author = models.StringType(required=True)
        author_email = models.EmailType()
        text = models.StringType()
        views = models.IntType(min_value=0)

        class Meta:
            database = database

Now create some objects:

.. code-block:: pycon

    >>> from models import Message
    >>>
    >>> bob_message = Message(author='Bob',
    ...                       author_email='bob@example.com',
    ...                       text='Hello, everyone!')
    >>> bob_message
    <Message: Message object>
    >>> bob_message.save()  # Save object
    1
    >>>
    >>> bob_message.views = 3
    >>> bob_message.save()  # Update object
    >>>
    >>> alice_message = Message.objects.create(author='Alice',
    ...                                        text='Hi, Bob!',
    ...                                        views=0)
    >>> alice_message
    <Message: Message object>

And try to retrieve them via *objects*

.. code-block:: pycon

    >>> Message.objects.all()
    <QuerySet, len() = 2>
    >>> list(Message.objects.all())
    [<Message: Message object>, <Message: Message object>]
    >>>
    >>> second_message = Message.objects.get(eid=2)
    >>> second_message.author
    'Alice'
    >>>
    >>> Message.objects.filter(views__gte=3)  # Only Bob's message has 3 views
    <QuerySet, len() = 1>
    >>> list(Message.objects.filter(views__gte=3))
    [<Message: Message object>]

You can also redefine model's *__str__* method for better repr just like in Django.

.. code-block:: python

    class Message(models.Model):
        ...

        def __str__(self):
            return 'by {}'.format(self.author)

.. code-block:: pycon

    >>> list(Message.objects.all())
    [<Message: by Bob>, <Message: by Alice>]

License
-------

MIT. See LICENSE for details.