semvec/pypi-packages huggingface dataset:
django-admin-actions 0.1.1
Display Django admin custom actions in change list, change form or per row in change list.
Keywords: django admin actions

![Screenshot](https://github.com/lukasvinclav/django-admin-actions/raw/master/screenshot.png)

# django-admin-actions

![](https://img.shields.io/badge/Version-0.1.0-orange.svg?style=flat-square)
![](https://img.shields.io/badge/Django-2.0+-green.svg?style=flat-square)
![](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)

django-admin-actions provides simple way how to define custom actions for Django admin changelist, changeview and per row in changelist.

## Getting started

1. Installation

```bash
pip install django-admin-actions
```

```bash
pip install git+https://git@github.com/lukasvinclav/django-admin-actions.git
```

2. Add **admin_admin_actions** into **INSTALLED_APPS** in your settings file before **django.contrib.admin**.

## Sample admin configuration

```python
from django.contrib import admin
from django.shortcuts import redirect
from django.urls import reverse_lazy
from django.utils.translations import ugettext_lazy as _

from admin_actions.admin import ActionsModelAdmin

from .models import ExampleModel


@admin.register(ExampleModel)
class CustomAdmin(ActionsModelAdmin):
    actions_list = ('custom_list_action', )
    actions_row = ('custom_row_action', )
    actions_detail = ('custom_detail_action', )

    def custom_list_action(self, request):
        # custom logic here
        return redirect(reverse_lazy('admin:APP_MODEL_changelist'))
    custom_list_action.short_description = _('Custom name')
    custom_list_action.url_path = 'clean-url-path-1'

    def custom_row_action(self, request, pk):
        # custom logic here
        return redirect(reverse_lazy('admin:APP_MODEL_changelist'))
    custom_row_action.short_description = _('Row custom name')
    custom_row_action.url_path = 'clean-url-path-2'

    def custom_detail_action(self, request, pk):
        # custom logic here
        return redirect(reverse_lazy('admin:APP_MODEL_changelist'))
    custom_detail_action.short_description = _('Detail custom name')
    custom_detail_action.url_path = 'clean-url-path-3'
```
django-redirect-to-non-www 0.1.1
Redirect www URL addresses to non-www
Keywords: django redirect www non-www

# django-redirect-to-non-www

Redirects ww<span></span>w URL address to non-ww<span></span>w.

## Installation

```bash
pip install django-redirect-to-non-www
```

```bash
pip install git+https://git@github.com/lukasvinclav/django-redirect-to-non-www.git
```

## Configuration

Open your settings file and append middleware **redirect_to_non_ww<span></span>w.middleware.RedirectToNonWw<span></span>w** at the end of **MIDDLEWARE** list.

```python
MIDDLEWARE = [
    # Other middleware classes
    'redirect_to_non_www.middleware.RedirectToNonWww',
]
```
notifySms 2.1
Package to send sms notification to mobile

This program helps to send sms notification to specified mobile.

Pre-Requisite : 
    - Twilio account, Its Account, Token And Moblile number.
    OR
    - way2sms account, its apikey & secret code.

Usage : 
<pre>
1. To use way2sms for sending sms set below environement variable.
     way2sms=True
     apikey=<API KEY of way2sms account>
     secret=<Secret of way2sms account>
     
     Windows syntax : set <Environment Variable name>=<Value>
     Linux syntax   : export <Environment variable name>=<Value> 
    OR
    To use Twilio account specfiy twilio detials config.json in file encoded using base64.b64encode()
2. Using Program to send sms.
   python sendSms.py [Message needs to be sent]
3. Using module in other script to nofiy via sms.
    from nofiySms import sendSms
    sendSms.send_sms("Message body",[To Number])
</pre>
pysyntime 1.0.0
SynTime implementation in Python.

# pysyntime

`pysyntime` is a python library implementing `SynTime` algorithm from paper – *Time Expression Analysis and Recognition Using Syntactic Token Types and General Heuristic Rules*.

## Features

`pysyntime` supports extracting `timex` (time expressions) from raw text. For example, given the following text:

```text
The last 6 months surviving member of the team which first conquered Everest in 6 a.m. 17 Jan 1953 has died in a Derbyshire nursing home.
```

`pysyntime` will extract `timex` from the text and produce the following annotated text in `TimeML` format:

```
<TIMEX3 tid="t1" type="DATE" value="2016-10-10">The last 6 months</TIMEX3> surviving member of the team which first conquered Everest in <TIMEX3 tid="t2" type="DATE" value="2016-10-10">6 a.m. 17 Jan 1953</TIMEX3> has died in a Derbyshire nursing home.
```

## Installation

You can install the package by easily running the `pip` command:

```bash
pip install pysyntime
```

Since `pysyntime` relies on [spaCy](https://spacy.io/) which is an NLP library, the required model needs to be downloaded:

```bash
python -m spacy download en_core_web_sm
```

**Note**: The above command will download spaCy model and create symbol link, make sure you have root permission. 
If you are working with python virtualenv, you don't need the root permission. See [spaCy documentation](https://spacy.io/usage/#symlink-privilege) for details.

## Usage

```python
from pysyntime import SynTime

# Instanciate SynTime
synTime = SynTime()

# Your raw text
text = 'The last 6 months surviving member of the team which first conquered Everest in 6 a.m. 17 Jan 1953 has died in a Derbyshire nursing home.'
date = '2016-10-10'

# Extract timex from raw text
timeMLText = synTime.extractTimexFromText(text, date)
print(timeMLText)
```

## References

[1] Xiaoshi Zhong, Aixin Sun, and Erik Cambria. Time Expression Analysis and Recognition Using Syntactic Token Types and General Heuristic Rules. In *Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics* (ACL), pages 420-429, 2017. [[pdf](http://aclweb.org/anthology/P/P17/P17-1039.pdf)] [[slides](https://drive.google.com/file/d/0B4MkuquLjWvpV2d2dmZpU0VmbGs/view)] <br>
[2] `Syntime` implementation in Java. [[github](https://github.com/xszhong/syntime)]
udpcp 0.1.0
UDPCP Protocol (Version 2) Library

Pure Python UDPCP Protocol Library (Version 2)
----------------------------------------------

.. image:: https://img.shields.io/badge/python-3.6%2B-blue.svg

Pure Python UDPCP Protocol Library (Version 2). Under development.


Bugs/Requests
-------------

Please use the `GitHub issue tracker`_ to submit bugs or request features.

.. _`GitHub issue tracker`: https://github.com/kprzybyla/udpcp/issues


License
-------

Copyright Krzysztof Przybyła, 2018.

Distributed under the terms of the `MIT`_ license.

.. _`MIT`: https://github.com/kprzybyla/udpcp/blob/master/LICENSE