semvec/pypi-packages huggingface dataset:
japanese_holiday 0.0.4
Get Japanese holiday lib.
License: MIT
Keywords: japanese holiday

# Japanese Holiday

Get Japanese holidays from Google Calendar.

## Install

Use pip: `$ pip install japanese-holiday`

## Getting Started

* Access [Google Console API](https://code.google.com/apis/console).
* Calender API status turn on.
* Create access key.
* Set function "getholidays" first argument to your access key.


## Example

```python
    import japanese_holiday
    now = datetime.date.today()
    date_from = datetime.date(now.year-1, 1, 1)
    date_to = datetime.date(now.year+2, 12, 31)
    holidays = japanese_holiday.getholidays(
        "YOUR API KEY",
        japanese_holiday.HOLIDAY_TYPE_OFFICIAL_JA,
        date_from.strftime('%Y-%m-%d'),
        date_to.strftime('%Y-%m-%d')
    ) 
```
Redmine-CLI 0.0.5
A command-line utility to interact with Redmine
License: MIT

Redmine Cli
======================================

This is a small command-line utility to interact with Redmine

.. image:: https://travis-ci.org/yanjost/redmine-cli.svg?branch=master
    :target: https://travis-ci.org/yanjost/redmine-cli

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

I suggest you create a `virtualenv <http://www.virtualenv.org>`_

Then just use pip or easy_install.

.. code::

    pip install redmine-cli

or

.. code::

    easy_install redmine-cli


Usage
-----

You have to configure the application by getting a REST API key for your Redmine user

Then edit the configuration file in your home directory ( ~/.redmine-cli )

.. code:: ini

    [default]
    key=YOUR_REDMINE_REST_API_KEY
    my_id=YOUR_REDMINE_USER_ID
    root_url=YOUR_REDMINE_ROOT_URL_WITH_PROTOCOL
    #change to false if you don't want to verify SSL certificates. default is true
    verify_ssl=true


Example values

.. code:: ini

    [default]
    key=c7461a8ed1e4c27b76ce3bec0c0f06f4
    my_id=44
    root_url=https://redmine.mycompany.com


Command-line syntax
--------------------

.. code:: console

    usage: redmine [-h] [--key APIKEY] [--debug] [--root-url ROOT_URL]
                   [--user-id USER_ID] [--version]
                   {query,issues,open,issue} ...

    positional arguments:
      {query,issues,open,issue}
        query               run a saved query by id
        issues              show my issues
        open                open an issue in default browser
        issue               show details on an issue

    optional arguments:
      -h, --help            show this help message and exit
      --key APIKEY          set API key
      --debug               write received data in debug.json
      --root-url ROOT_URL   root url of Redmine instance
      --user-id USER_ID     your Redmine user id
      --version             show program's version number and exit


Sample output
--------------

.. code::

    +------+----------+-------------+---------------------------+
    |  ID  | PRIORITY |    STATUS   |    TITLE                  |
    +------+----------+-------------+---------------------------+
    | 6534 |   High   | In Progress | Issue 1                   |
    | 4081 |  Normal  |   Feedback  | Issue 2                   |
    +------+----------+-------------+---------------------------+


Bugs, feature requests, etc...
-------------------------------

Please use Github's issue tracker : https://github.com/yanjost/redmine-cli/issues
django-notification 1.3.3
User notification management for the Django web framework
License: MIT

===================
django-notification
===================

.. image:: https://badges.gitter.im/Join%20Chat.svg
    :target: https://gitter.im/pinax/django-notification

.. image:: https://img.shields.io/travis/pinax/django-notification.svg
    :target: https://travis-ci.org/pinax/django-notification

.. image:: https://img.shields.io/coveralls/pinax/django-notification.svg
    :target: https://coveralls.io/r/pinax/django-notification

.. image:: https://img.shields.io/pypi/dm/django-notification.svg
    :target:  https://pypi.python.org/pypi/django-notification/

.. image:: https://img.shields.io/pypi/v/django-notification.svg
    :target:  https://pypi.python.org/pypi/django-notification/

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target:  https://pypi.python.org/pypi/django-notification/


Many sites need to notify users when certain events have occurred and to allow
configurable options as to how those notifications are to be received.

The project aims to provide a Django app for this sort of functionality. This
includes:

 * submission of notification messages by other apps
 * notification messages on signing in
 * notification messages via email (configurable by user)
 * notification messages via feed

Documentation
=============

See http://django-notification.readthedocs.org/
warouter 0.1.1
Warouter is a simple routing wrapper around webapp2.
License: MIT

python-warouter
===============

Warouter is a simple routing wrapper around webapp2_.


Installing
----------

::

    $ pip install warouter


Usage
-----

Warouter provides url inheritance for handlers and a convenient ``uri_for`` function which can be called with a handler, instead of a string name.

A WSGIApplication mixin is provided which can handle a list of ``url`` decorator handlers.

Example:

>>> import warouter
>>> import webapp2
>>>
>>> @warouter.url('/')
... class RootHandler(webapp2.RequestHandler):
...     def get(self):
...         self.response.write('root')
...
>>> @warouter.url('/child/<child_param:([a-z]+)>')
... class ChildHandler(RootHandler):
...     def get(self, child_param):
...         self.response.write(child_param)
...     def put(self, child_param):
...         pass
...
>>> @warouter.url('/grandchild/<grandchild_param:([a-z]+)>')
... class GrandChildHandler(ChildHandler):
...     def get(self, child_param, grandchild_param):
...         self.response.write('\n'.join([child_param, grandchild_param]))
...     def post(self, child_param, grandchild_param):
...         self.response.write(warouter.uri_for(ChildHandler,
...                                              child_param=child_param))
...
>>> assert RootHandler.url == '/'
>>> assert ChildHandler.url == '/child/<child_param:([a-z]+)>'
>>> assert GrandChildHandler.url == (
...     '/child/<child_param:([a-z]+)>/grandchild/<grandchild_param:([a-z]+)>')
>>> assert GrandChildHandler.put is None
>>>
>>> app = warouter.WSGIApplication([
...     RootHandler,
...     ChildHandler,
...     GrandChildHandler
... ])
>>>
>>> if __name__ == '__main__':
...     from paste import httpserver
...     httpserver.serve(app, port='8080')
...
>>>

The above example requires Paste_, which can be installed using::

    $ pip install paste


.. _Paste: https://pypi.python.org/pypi/Paste
.. _webapp2: https://webapp-improved.appspot.com/


License
-------

MIT