semvec/pypi-packages huggingface dataset:
django-epsg-cache 0.2.1
An django app to fetch and cache EPSG Datasets from http://epsg-registry.org
License: MIT
Requires Python: >=3.8

.. image:: https://readthedocs.org/projects/django-epsg-cache/badge/?version=latest
    :target: https://django-epsg-cache.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://badge.fury.io/py/django-epsg-cache.svg
    :target: https://pypi.org/project/django-epsg-cache/
    :alt: PyPi version

django-epsg-cache
=================

In geo applications `coordinate tuples <https://wiki.osgeo.org/wiki/Axis_Order_Confusion>`_ can be ordered either (x,y) or (y,x) or (x,y) but meant as (y,x). 
Based on this problem and on some geo spatial standards which requires to retreive the correct axis order from the `epsg registry <https://epsg.org/API_UsersGuide.html>`_, we developed this simple django app to cache the spatial reference objects.

Quick-Start
-----------

Install it as any other django app to your project:

.. code-block:: bash

    $ pip install django-epsg-cache

.. warning::
    As pre requirement you will need to install the `gdal and geos binaries <https://docs.djangoproject.com/en/4.2/ref/contrib/gis/install/geolibs/>`_ on your system first.
    
See the `documentation <https://django-epsg-cache.readthedocs.io/en/latest/index.html>`_ for details.
china-calendar 1.0.1
a calendar about china
License: MIT
Keywords: china, calendar, workday, holiday

# china-calendar

[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/china-calendar)](https://pypi.org/project/china-calendar)
[![PyPI](https://img.shields.io/pypi/v/china-calendar.svg)](https://pypi.org/project/china-calendar)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/china-calendar?label=pypi%20downloads)](https://pypi.org/project/china-calendar)
[![PyPI - License](https://img.shields.io/pypi/l/china-calendar)](https://github.com/mouday/china-calendar/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/mouday/china-calendar)](https://github.com/mouday/china-calendar/releases)
[![GitHub Stars](https://img.shields.io/github/stars/mouday/china-calendar?color=%231890FF&style=flat-square)](https://github.com/mouday/china-calendar)

a calendar about china

判断某一天是否为工作日或者是法定节假日，仅适用于中国

安装

```bash
pip install china-calendar
```

使用示例：

```python
import china_calendar

# 清明节
assert china_calendar.is_holiday('2024-04-04') == True

assert china_calendar.is_workday('2024-04-04') == False
```

类似的库：

- [https://github.com/LKI/chinese-calendar](https://github.com/LKI/chinese-calendar)
toxicityclassifier 1.0.1
Module for determining the level of toxicity of the text
License: MIT
Requires Python: <4.0,>=3.8

# ToxicityClassificator
Module for predicting toxicity messages in Russian and English
## Usage example
```python
from toxicityclassifier import *

classifier = ToxicityClassificatorV1()

print(classifier.predict(text))          # (0 or 1, probability)
print(classifier.get_probability(text))  # probability
print(classifier.classify(text))         # 0 or 1
```

## Weights
Weight for classification (if probability >= weight => 1 else 0)
```python
classifier.weight = 0.5
```
\
Weight for language detection (English or Russian)

if the percentage of the Russian language >= language_weight, then the Russian model is used, otherwise the English one
```python
classifier.language_weight = 0.5
```