semvec/pypi-packages huggingface dataset:
until-nonidle 0.4
Execute something as long as the user is idling.
License: MIT
Keywords: idle lock lockscreen action

Description
-----------

.. image:: https://travis-ci.com/enricobacis/until_nonidle.svg?token=3zn37kZJ8DSzJpXNU199&branch=master
    :target: https://travis-ci.com/enricobacis/until_nonidle

The tools is especially useful in combination with auto lockscreens.
The user can be notified (by a dimming action on the screen or by showing a
text message on the display) about the fact that the computer is being locked,
and can perform an action such as moving the mouse to dismiss the action.

Requirements
------------

-  xprintidle
-  psutil

Example
-------

.. code::

   ./until_nonidle.py sleep 10

The ``sleep 10`` command terminates if the user comes back from idling.
namedassignments 1.0.2
Really small library to implement NamedExpressions in Python 3.8 to older versions of Python.
License: MIT

# NamedAssignments
NamedAssignments is a library that I developed for myself to use named assignments in my Python <= 3.7 projects.

## What is named assignments?
Actual thing I don't even know how should I call them but this is the best name I found for them. If you've read [PEP 572](https://www.python.org/dev/peps/pep-0572/) there is a new operator coming in Python 3.8 called as ***Named Expressions*** (this is how it is going to look like in your code `:=`) which helps you to write more clean and shorter code.

## But how?
For original examples you can check [PEP 572 examples](https://www.python.org/dev/peps/pep-0572/#examples) directly but if you are looking this library you are probably not using Python 3.8 so just stay in here and continue reading.


* Caching computationally expensive computations (This is definitely a bad example of expensive computation but lets just act like it is)
  ###### Old way:

  ```python
  # Makes two addition every time
  strange_list = [[x + 1, x/(x + 1)] for x in range(5)]
  ```
  ###### Improved:

  ```python
  # Makes only one addition every time
  strange_list = [[N('y', lambda: x + 1), x/N.y] for x in range(5)]
  ```

* Usage in while loops
  ###### Old way:

  ```python
  # conn is a accepted socket connection
  while True:
      data = conn.recv(1024)
      if not data:
          break
      conn.sendall(data)
  ```
  ###### Improved:

  ```python
  # conn is a accepted socket connection
  while N('data', conn.recv, 1024):
      conn.sendall(N.data)
  ```

## Usage
Usage is not clean as original due to limitations but it is the cleanest way I found.
```python
from namedassignments import NamedAssignments as N

N(variable_name, function, *args, **kwargs)
```

## Installation
Library is avaible on PyPi so just run
```
pip install namedassignments
```

## API
Since the whole code is only 5 lines there is nothing too much. Library uses Python's magic method `__new__` to return what function returns this is all library does on the background.
* `__new__` Arguments:
  * `variable_name`: Variable name you want to use while retrieving data. (String) (Required)
  * `function`: Function you want to execute. (Function) (Required)
  * `*args`: Arguments you want to pass function. (List) (Optional)
  * `**kwargs`: Keyword arguments you want to pass function. (Dict) (Optional)
alfacoins 0.1.0a2
ALFACoins API library
License: MIT

Python ALFACoins

A Python3.6 wapper aournd the [ALFACoins](https://www.alfacoins.com/) [APIs](https://www.alfacoins.com/developers).
 
by [Carrene](https://github.com/Carrene).

[![Build Status](https://travis-ci.com/ArashFatahzade/alfacoins.svg?branch=master)](https://travis-ci.com/ArashFatahzade/alfacoins)
[![Coverage Status](https://coveralls.io/repos/github/ArashFatahzade/alfacoins/badge.svg?branch=master)](https://coveralls.io/github/ArashFatahzade/alfacoins?branch=master)

## Description

**alfacoins** is a Python3.6 Library for interacting with [ALFAcoins API](https://www.alfacoins.com/developers).

**alfacoins** provides cryptocurrency payment integration on your website via [ALFAcoins](https://www.alfacoins.com).

**alfacoins** allows you to integrate payments with the following cryptocurrencies:
* Bitcoin (BTC)
* Ethereum (ETH)
* XRP (XRP)
* Bitcoin Cash (BCH)
* Litecoin (LTC)
* Dash (DASH)

## APIs
* get_fees
* get_rate
* get_rates
* create_order*
* order_status*
* bitsend*
* bitsend_status*
* refund*
* statistics*

*: Private API

## Installation

```bash
pip3.6 install alfacoins
```

## Getting Started

### Gateway

You can get an instance of `ALFACoins` class like this:

#### For public APIs

```python
from alfacoins import ALFACoins


alfacoins = ALFACoins()
```

#### For private APIs

```python3
from alfacoins import ALFACoins


alfacoins = ALFACoins(
  name='shop-name',
  password='password',
  secret_key='07fc884cf02af307400a9df4f2d15490'
)
```

### Create order

```python3
result = alfacoins.create_order(
    type='litecointestnet',
    amount=1.2345,
    currency='USD',
    order_id=1,
    options={
        'notificationURL': 'https://example.io/notify',
        'redirectURL': 'https://example.io/redirect',
        'payerName': 'Bob',
        'payerEmail': 'no_reply@alfacoins.com',
        },
    description='This is for test!',
)
```

Additional information and API documentation is here: [ALFAcoins API Reference](https://www.alfacoins.com/developers).
negative-inline-editor 0.1.0
On-site editing for Django
License: MIT
Keywords: negative-inline-editor

=============================
negative_inline_editor
=============================

.. image:: https://badge.fury.io/py/negative-inline-editor.png
    :target: http://badge.fury.io/py/negative-inline-editor

.. image:: https://travis-ci.org/negative-space/negative-inline-editor.png?branch=master
    :target: https://travis-ci.org/negative-space/negative-inline-editor

On-site editing for Django

Features
--------

* Nicely looking panel for inline editing
* Edit single model fields on-site
* Edit list with drag-and-drop and add/delete support
* Medium-like content-editing integrated
* negative-i18n integration


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

pip install negative-inline-editor

Add 'negative_inline_editor' to installed apps and add middleware:


    INSTALLED_APPS += [
        'negative_inline_editor'
    ]

    MIDDLEWARE += [
        'negative_inline_editor.middleware.EditableMiddleware'
    ]


Configuration
------------------

Add to the settings application that are allowed to edit through fronted (by super-user only).

NEGATIVE_INLINE_MODELS = [
    'negative_i18n',
    'my_app',
]


Usage
---------------

Single field editing

{% editable page->title %}


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

The full documentation is at http://negative-inline-editor.rtfd.org.



History
-------

0.1.0 (2019-02-14)
++++++++++++++++++

* First release on PyPI.