semvec/pypi-packages huggingface dataset:
django-simple-pagination 1.3
A simple pagination app for Django.

.. image:: https://travis-ci.org/MicroPyramid/django-simple-pagination.svg?branch=master
   :target: https://travis-ci.org/MicroPyramid/django-simple-pagination

.. image:: https://img.shields.io/pypi/v/django-simple-pagination.svg
    :target: https://pypi.python.org/pypi/django-simple-pagination
    :alt: Latest Release

.. image:: https://coveralls.io/repos/github/MicroPyramid/django-simple-pagination/badge.svg?branch=master
   :target: https://coveralls.io/github/MicroPyramid/django-simple-pagination?branch=master

.. image:: https://landscape.io/github/MicroPyramid/django-simple-pagination/master/landscape.svg?style=flat
   :target: https://landscape.io/github/MicroPyramid/django-simple-pagination/master
   :alt: Code Health

.. image:: https://img.shields.io/github/license/micropyramid/django-simple-pagination.svg
    :target: https://pypi.python.org/pypi/django-simple-pagination/

`Django Simple Pagination`_ is a simple Django app to for digg-style pagination with little effort.

**Documentation** is `avaliable online`_, or in the docs
directory of the project.

Quick start
-----------

1. Install 'Django-Simple-Pagination' using the following command::

    pip install django-simple-pagination

2. Add ``simple_pagination`` to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'simple_pagination',
    ]
3. In templates use ``{% load paginate %}`` to load all pagination template tags
4. In templates use ``{% paginate no_of_records entities %}`` to get pagination objects.

    Here no_of_records means no of objects to display in a page and entities means the list of objects


5. In templates use ``{% show_pageitems %}`` to get digg-style page links.

Questions, Comments, etc?
-------------------------

We welcome your feedback and support, raise `github ticket`_ if you want to report a bug. Need new features? `Contact us here`_

Visit our Django web development page `Here`_

.. _contact us here: https://micropyramid.com/contact-us/
.. _avaliable online: http://django-simple-pagination.readthedocs.org/
.. _github ticket: https://github.com/MicroPyramid/django-simple-pagination/issues
.. _Django Simple Pagination: https://micropyramid.com/oss/
.. _Here: https://micropyramid.com/django-development-services/
tankersdk-user-token 0.3
Tanker user token library

User Token
==========

User token generation in Python for the `Tanker SDK <https://tanker.io/docs/latest>`_.

.. image:: https://travis-ci.org/TankerHQ/user-token-python.svg?branch=master
    :target: https://travis-ci.org/TankerHQ/user-token-python

.. image:: https://img.shields.io/pypi/v/tankersdk-user-token.svg
    :target: https://pypi.org/project/tankersdk-user-token


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


With `pip`:

.. code-block:: console

    $ pip install tankersdk-user-token


Usage
-----



.. code-block:: python

      import tankersdk.usertoken

      def retrieve_user_token(user_id):
          """ Fetch a previously stored token """
          ...


       def store_user_token(user_id, token):
          """ Store a previously generated token """
          ...


       def check_auth(user_id):
          """ Check the user is authenticated """
          ...


      def serve_user_token(user_id):
          """ Called during sign/up sign in of your users.

          Send a user token, generated if necessary, but only to
          authenticated users
          """
          authorized = check_auth(user_id)
          if not authorized:
              raise UnAuthorizedError()

          token = retrieve_user_token(user_id)

          if not token:
            token = tankersdk.usertoken.generate_user_token(trustchain_id, trustchain_private_key, user_id)
            store_user_token(user_id, token)

          return token


Going further
-------------


Read more about user tokens in the `Tanker guide <https://tanker.io/docs/latest/guide/server/>`_.

Check the `examples <https://github.com/TankerHQ/user-token-python/tree/master/examples>`_ folder for usage examples.
pwntools-dbg-r2 0.1.6
Package to enable debugging with Radare2 in pwntools

# pwntools-dbg-r2
A pip package that lets pwntools use r2 as a debugger


## Install
`pip install pwntools-dbg-r2`

## How to use

### New instance everytime
```python
from pwn import *
from r2dbg import *
p = r2dbg('/bin/ls')
...
```

### Existing r2 instance
1. Run ```. `!r2-session <port>` ``` inside the r2 instance
2. Specify r2port when debugging:
```python
from pwn import *
from r2dbg import *
p = r2dbg('/bin/ls', r2port=<port>)
...
```
## Options
Same options as [pwnlib.gdb.debug](http://docs.pwntools.com/en/stable/gdb.html#pwnlib.gdb.debug)
inspire-service-orcid 9.0.0
ORCID service client

[![Build Status](https://travis-ci.org/puntonim/inspire-service-orcid.svg?branch=master)](https://travis-ci.org/puntonim/inspire-service-orcid)

# Inspire ORCID service client

This package is service client for ORCID API used in inspire-next.

## Client usage

```python
# Configure settings.
import inspire_service_orcid.conf
d = dict(
    DO_USE_SANDBOX=False,
    CONSUMER_KEY='myorcidappkey',
    CONSUMER_SECRET='myorcidappsecret',
    REQUEST_TIMEOUT=30,
)
inspire_service_orcid.conf.settings.configure(**d)

# Use the client.
from inspire_service_orcid.client import OrcidClient
client = OrcidClient('mytoken', '0000-0002-0942-3697')
response = client.get_all_works_summary()
response.raise_for_result()
putcode = response['group'][0]['work-summary'][0]['put-code']
```

In order to use time_execution to collect metrics, configure it first:
```python
import time_execution
from inspire_service_orcid import hooks

hooks = [
    hooks.status_code_hook,
    hooks.orcid_error_code_hook,
    hooks.orcid_service_exception_hook,
]
time_execution.settings.configure(
    backends=[mybackend],
    hooks=hooks,
    origin='inspire_next'
)
```

## Development

```bash
# Create a venv and install the requirements:
$ make venv

# Run isort and lint:
$ make isort
$ make lint

# Run all the tests:
$ make test  # tox against Python27 and Python36.
$ tox -e py27  # tox against a specific Python version.
$ pytest  # pytest against the active venv.

# Run a specific test:
$ make test/tests/test_client.py  # tox against Python27 and Python36.
$ tox -e py27 -- tests/test_client.py  # tox against a specific Python version.
$ pytest tests/test_client.py  # pytest against the active venv.
```

To publish on PyPi, first set the PyPi credentials:

```bash
# Edit .pypirc:
$ cat $HOME/.pypirc
[pypi]
username: myuser
password: mypass
```

```bash
# Tag the new version:
$ git tag 1.1.1
# Then generate setup.py and publish:
$ make setup.py
$ make publish
# Commit the setup.py file:
$ git add .
$ git commit -m '1.1.1 released'
$ git push origin master --tags
```