semvec/pypi-packages huggingface dataset:
django-site-tag 0.0.1
Tag each page on your website with an indicator text or image


## Django site tag

Django site tag allows you to set 'tags' on each page of your website to indicate current environment, developemnt stages, or whatever else you may want to use such a feature for.

![Demo Image](screenshots/demo.png "Demo Image")

### Installation

```bash
pip install git+https://github.com/yudori/django-site-tag.git
```

### Setup

After installation, add the `django_site_tag` app name to the list of installed apps.

```python
INSTALLED_APPS = [
    ... # django apps

    'django_site_tag',

    ... # custom apps
]
```

Add the site tag middleware to the middleware list. 
```python
MIDDLEWARE = [
    ... # django middleware list

    'django_site_tag.middleware.SiteTagMiddleware',

    ... # custom middleware list
]
```

### Customization

Customization options are provided via django settings. Set any of the following values to add customizations to your site tags.

| Setting Name        | Type           | Description    | Example Value     |
| ------------------- | -------------- | -------------- | ----------------- |
| `SITE_TAG_POSITION`     | string | space-separated css position values in the order: top, right, bottom ,left representing the position of the site tag| '15px 0px 0px 15px'
| `SITE_TAG_TEXT`    | string      |   The text to be written on the tag |  'TEST'
| `SITE_TAG_TEXT_STYLE` | string      |    The css style to be applied to the text | 'padding: 10px;'
| `SITE_TAG_TEXT_BORDER_STYLE`    | string   |   The css style to be applied to the border around the text |    '2px dashed #ff0000;'
| `SITE_TAG_IMAGE` | string     |   The url to the image file to be used instead of text |   '/static/images/tag.jpg'
webnotifier 0.1.1
A package for notifying any webpage change

# WebNotifier

![PyPI](https://img.shields.io/pypi/v/webnotifier.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/webnotifier.svg)
![PyPI - Status](https://img.shields.io/pypi/status/webnotifier.svg)
![PyPI - License](https://img.shields.io/pypi/l/webnotifier.svg)

Webnotifier is a simple package for notifying any webpage change.

## Requirements

This package needs:

- Requests >= 2.21.0
- lxml >= 4.3.3

## Installation

To install Webnotifier, use pip

```bash
$ pip install webnotifier
```

## Usage

Instanciate the WebNotifier class and pass an url array and two callbacks. Also, you can pass the interval time (in seconds).

```python
from webnotifier import WebNotifier

my_urls = [{'name':'Google','href':'https://www.google.com'}, {'name':'Medium','href':'https://medium.com'},{'name':'Localhost','href':'http://127.0.0.1:3000'}]

def onError(err):
    """
    URL and Name params can be accessed within err.name && err.url
    """
    print("There was an error with {} on {}".format(err.name, err.url))

def onNewChange(url,name):
    print("Webpage {} on {} changed!".format(name,url))

interval = 60 #Check if webpage changes every 60 seconds

custom_webnotifier = WebNotifier(my_urls,onNewChange,onError,interval)
custom_webnotifier.start()
```

When a webpage changes, the onNewChange callback will be triggered. Otherwise, if there's any error in getting the URL, onError callback will be executed.
kwnpeb 0.1.11
Compute the Kiefer-Wolfowitz nonparametric maximum likelihood estimator

# Kiefer-Wolfowitz Nonparametric Empirical Bayes
Compute the Kiefer-Wolfowitz nonparametric maximum likelihood estimator for mixtures. 

In contrast to the previous approaches, the optimization problem is reformulated into a convex problem by 
[Koenker and Mizera (2014)](http://www.stat.ualberta.ca/~mizera/Preprints/brown.pdf)'s method and efficiently solved by 
interior-point method.

## Making Predictions With No Features - A Basic Usage
Given a training set T = {y_i}, the algorithm provides a way to construct a predictor of future y-values such that the sum 
of squared errors between observations and predictors is minimized.  

## Getting Started
### Prerequisites 
You will need:
* python (>= 3.6)
* pip (>= 19.0.3)
* MOSEK (>=8.1.30) 

Important about MOSEK:
* MOSEK is a commercial optimization software. Please visit [MOSEK](https://www.mosek.com/) for license information.
* PIP: 
```
pip install -f https://download.mosek.com/stable/wheel/index.html Mosek --user
``` 
For different ways of installation, please visit their [installation page](https://docs.mosek.com/8.1/pythonapi/install-interface.html).
* MOSEK needs to be installed in the GLOBAL environment. 



### Installing
```
pip install kwnpeb
```

## Examples
* [simple](https://github.com/sit836/KW_NPEB/tree/master/examples/simple) - The basic usage
* [bayesball](https://github.com/sit836/KW_NPEB/tree/master/examples/bayesball) - In-season prediction of batting averages with the 2005 Major
League baseball

## Contributors
* [Sile Tao](https://ca.linkedin.com/in/sile-tao-95523941)
* [Li Zhang](https://ca.linkedin.com/in/li-zhang-0350833b)
* [Guanqi Huang](https://ca.linkedin.com/in/guanqi-huang)

## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details