semvec/pypi-packages huggingface dataset:
poke-jenkins 1.1.1
Mercurial extension to start new Jenkins jobs.
License: MIT
Keywords: mercurial hg scm jenkins

poke-jenkins: Mercurial extension for triggering jenkins jobs
=============================================================

The ``poke-jenkins`` is a Mercurial extension that for the heads of an incoming changeset starts a Jenkins job.

.. image:: https://api.travis-ci.org/paylogic/poke-jenkins.png
   :target: https://travis-ci.org/paylogic/poke-jenkins
.. image:: https://pypip.in/v/poke-jenkins/badge.png
   :target: https://crate.io/packages/poke-jenkins/
.. image:: https://coveralls.io/repos/paylogic/poke-jenkins/badge.png?branch=master
   :target: https://coveralls.io/r/paylogic/poke-jenkins


Installation
------------

.. sourcecode:: sh

    pip install poke-jenkins


Configuration
-------------

An example of .hg/hgrc of your remote repository:

.. code-block:: cfg

    [extensions]
    poke_jenkins =

    [poke_jenkins]

    # Jenkins url
    jenkins_base_url = http://ci.example.com

    # List the jobs you want to start
    jobs = Project_Tests_Dev Project_Coverage_Dev

    # Feel free to change this parameter
    tag = foo

    # The url which Jenkins will use to clone the repository
    repo_url = ssh://code.example.com//example

    # Timeout in seconds
    timeout = 10

    # Jenkins user id
    username = foo

    # Jenkins API Token
    password = bar

    # Branch regular expression filter
    branch_regex = ^c\d{4}


Usage
-----

With given configuration above, it will call jenkins jobs to start builds:

* http://ci.example.com/job/Project_Tests_Dev?TAG=foo&NODE_ID=<mercurial commit hash>&BRANCH=<branch name>&REPO_URL=ssh://code.example.com//example

* http://ci.example.com/job/Project_Coverage_Dev?TAG=foo&NODE_ID=<mercurial commit hash>&BRANCH=<branch name>&REPO_URL=ssh://code.example.com//example

It will add basic auth headers to authenticate the calls if username and password settings are set.


Python3 support
---------------

Package itself supports python3 out of the box, but not mercurial ATM.


Contact
-------

If you have questions, bug reports, suggestions, etc. please create an issue on
the `GitHub project page <http://github.com/paylogic/poke-jenkins>`_.


License
-------

This software is licensed under the `MIT license <http://en.wikipedia.org/wiki/MIT_License>`_

See `License <https://github.com/paylogic/poke-jenkins/blob/master/LICENSE.txt>`_

© 2013 Paylogic International.
jingle 0.2.1
Config files renderer based on Jinja2
License: MIT
Keywords: config file template jinja nimboost

jingle
======

It renders template files with context loaded from simple INI-style config files.
Config files support inheritance_ and interpolation_.

Getting started
---------------

Install this package with *pip*:
::

  $ pip install jingle

Check usage:
::

  $ jingle --help

Run some examples:
::

  $ jingle examples/hello.conf < examples/hello.j2

Config files
------------

*Jingle* supports single-group INI config files. For example:

.. code:: ini

  one = 1
  two = dos
  three = trzy

Interpolation
^^^^^^^^^^^^^

Basic interpolation is supported thanks to ``SafeConfigParser`` used under the hood:

.. code:: ini

  name = Jon
  surname = Snow
  fullname = %(name)s %(surname)s

Inheritance
^^^^^^^^^^^

Config files can be inherited, or saying precisely included one into another
with ``#inherit`` directive.

In ``defaults.conf``:

.. code:: ini

  host = 0.0.0.0
  port = 3000

In ``production.conf``:

.. code:: ini

  #inherit defaults.conf
  port = 80

Compiled config will use ``host: 0.0.0.0`` and ``port: 80``.

Of course interpolation works across inherited files.

Programatic usage
-----------------

You can as well use the library programatically in your application. Here's 
simple example:

.. code:: python

  from jingle import Template, Context
  
  tpl = Template("Hello {{who}}!")
  print tpl.render(Context("path/to/params.conf"))

License
-------

Copyright (c) 2014 by Kris Kovalik.

Released under MIT license, check LICENSE file for details.
PyJOAT 1.1.1
JWT OAuth 2.0 Access Token management
License: MIT
Keywords: joat jwt json web access token oauth

JWT OAuth Access Token
======================

A library for generating and verifying signed JWT OAuth 2.0 access tokens.

## Installation

`pip install pyjoat`


## Usage

The JOAT library is intended to be used for issuing tokens from the OAuth 2.0
`/token` endpoint, as well as from resource servers to authenticate requests.

Here is an example of token generation:

```python
import joat

def generate_hmac_salt(jwt_claims):
  return "the most secret hmac salt ever"

joat.salt_generator = generate_hmac_salt

TokenGenerator = joat.TokenGenerator("My OAuth2 Provider")

access_token = TokenGenerator.issue_token(client_id="abcd",
                                          user_id="1234",
                                          scope=["profile", "read"])

print access_token
# [line breaks added for readability only]
# eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhYmNkIiwiaXNzIjoiTXk \
# gT0F1dGgyIFByb3ZpZGVyIiwiZXhwIjoxNDA3Mjk0NTcyLCJpYXQiOjE0MDcyOTA5NzI \
# sInNjcCI6WyJwcm9maWxlIiwicmVhZCJdLCJzdWIiOiIxMjM0In0.wgNhGiKQ0ppO0Xu \
# QhalGZmSommQROjBusCanRa_6Ydc
```

And one of parsing a token:

```python
import joat

def generate_hmac_salt(jwt_claims):
  return "the most secret hmac salt ever"

joat.salt_generator = generate_hmac_salt

credentials = joat.parse_token('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhYmNkIiwiaXNzIjoiTXkgT0F1dGgyIFByb3ZpZGVyIiwiZXhwIjoxNDA3Mjk0NTcyLCJpYXQiOjE0MDcyOTA5NzIsInNjcCI6WyJwcm9maWxlIiwicmVhZCJdLCJzdWIiOiIxMjM0In0.wgNhGiKQ0ppO0XuQhalGZmSommQROjBusCanRa_6Ydc')

print credentials
# [again, line break added for readability]
# {u'user_id': u'1234', u'authorized_scope': [u'profile', u'read'],
#  u'client_id': u'abcd', u'provider': u'My OAuth2 Provider'}
```


## Salt Generation

Because the payload of the JWT is easily readable by anyone with access to the
token, a secure HMAC salt (or secret, depending on your preferred terminology)
is of the utmost importance for token security, and to avoid allowing tokens
issued by a malicious third party.

To this end, PyJOAT expects you to implement salt generation on your own.  The
JWT claims are passed into the salt generation method so that you may use the
payload data to lookup or generate the salt for the client-user-scope
combination.

You may also pass a `jti` to the token generation method to augment the salt
generation or otherwise keep track of the tokens you generate.

```python
access_token = TokenGenerator.issue_token(client_id="abcd",
                                          user_id="1234",
                                          scope=["profile", "read"],
                                          jti="your_token_id")
```