semvec/pypi-packages huggingface dataset:
django_healthchecks 1.4.2
Simple Django app/framework to publish health checks
License: MIT

===================
django-healthchecks
===================

Simple Django app/framework to publish health check for monitoring purposes

Status
======
.. image:: https://travis-ci.org/mvantellingen/django-healthchecks.svg?branch=master
    :target: https://travis-ci.org/mvantellingen/django-healthchecks

.. image:: http://codecov.io/github/mvantellingen/django-healthchecks/coverage.svg?branch=master 
    :target: http://codecov.io/github/mvantellingen/django-healthchecks?branch=master

.. image:: https://img.shields.io/pypi/v/django-healthchecks.svg
    :target: https://pypi.python.org/pypi/django-healthchecks/

Installation
============

.. code-block:: shell

   pip install django_healthchecks


Usage
=====

Add the following to your urls.py:


.. code-block:: python

    url(r'^healthchecks/', include('django_healthchecks.urls')),


Add a setting with the available healthchecks:

.. code-block:: python

    HEALTH_CHECKS = {
        'postgresql': 'django_healthchecks.contrib.check_database',
        'cache_default': 'django_healthchecks.contrib.check_cache_default',
        'solr': 'your_project.lib.healthchecks.check_solr',
    }


You can also include healthchecks over http. This is useful when you want to
monitor if depending services are up:

.. code-block:: python

    HEALTH_CHECKS = {
        ...
        'my_microservice': 'https://my-service.services.internal/healthchecks/',
        ...
    }


By default, http health checks will time out after 500ms. You can override this
as follows:

.. code-block:: python

    HEALTH_CHECKS_HTTP_TIMEOUT = 0.5


By default the status code is always 200, you can change this to something
else by using the `HEALTH_CHECKS_ERROR_CODE` setting:

.. code-block:: python

    HEALTH_CHECKS_ERROR_CODE = 503


You can also add some simple protection to your healthchecks via basic auth.
This can be specified per check or a wildcard can be used `*`.

.. code-block:: python

    HEALTH_CHECKS_BASIC_AUTH = {
        '*': [('admin', 'pass')],
        'solr': [],
    }
django-translatable-fields 0.0.1
Translatable model fields for Django with admin integration
License: MIT

==========================
Django Translatable Fields
==========================

Translatable model fields for Django with admin integration. Uses PostgreSQL JSONField.

Installation
============


* Add application

.. code:: python

    INSTALLED_APPS = (
        ...
        'translatable_fields',
        ...
    )

* Add `TranslatableField` model fields

.. code:: python

    from django.db import models
    from django.utils.translation import ugettext_lazy as _

    from translatable_fields.models import TranslatableField


    class Position(models.Model):
        ...
        title = TranslatableField(
            verbose_name=_('title')
        )
        description = TranslatableField(
            verbose_name=_('description')
        )
        ...
        
* Create custom model admin form

.. code:: python

    from django import forms
    from django.contrib.postgres.forms import JSONField
    from ckeditor_uploader.widgets import CKEditorUploadingWidget

    from careers.models.position import Position
    from translatable_fields.widgets import TranslatableWidget


    class PositionAdminForm(forms.ModelForm):
        title = JSONField(widget=TranslatableWidget(widget=forms.TextInput))
        description = JSONField(widget=TranslatableWidget(widget=CKEditorUploadingWidget))

        class Meta:
            model = Position
            fields = (
                ...
                'title',
                'description',
                ...
            )

* Create custom model admin with custom form

.. code:: python

    from django.contrib import admin

    from careers.forms.admin.position import PositionAdminForm


    class PositionAdmin(admin.ModelAdmin):
        form = PositionAdminForm
pyGeoTile 1.0.6
Python package to handle tiles and points of different projections, in particular WGS 84 (Latitude, Longitude), Spherical Mercator (Meters), Pixel Pyramid and Tiles (TMS, Google, QuadTree)
License: MIT

Usage
-----

The package pyGeoTile consist of two main classes, namely Point and
Tile. As already mentioned they allow you to convert various geo
projections.
The full API documentation could be found under http://pygeotile.readthedocs.io


Point
~~~~~

Example of the class Point.

.. code:: python

    from pygeotile.point import Point

    meter_x, meter_y, zoom = -9757148.442088600, 5138517.444985110, 19  # meters in Spherical Mercator EPSG:900913

    point = Point.from_meters(meter_x=meter_x, meter_y=meter_y)

    print('Pixels: ', point.pixels(zoom=zoom))  # Pixels:  (34430592, 49899136)
    print('Lat/Lon: ', point.latitude_longitude)  # Lat/Lon:  (41.84987190947754, -87.64995574951166)


|

Tile
~~~~

Example of the class Tile.

.. code:: python

    from pygeotile.tile import Tile

    tms_x, tms_y, zoom = 134494, 329369, 19
    tile = Tile.from_tms(tms_x=tms_x, tms_y=tms_y, zoom=19)  # Tile Map Service (TMS) X Y and zoom

    print('QuadTree: ', tile.quad_tree)  # QuadTree:  0302222310303211330

|

Notes
-----

This repository is inspired from:
 - Tiles à la Google Maps, http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
 - Bing Maps Tile System, https://msdn.microsoft.com/en-us/library/bb259689.aspx
 - Showing pixel and tile coordinates: https://developers.google.com/maps/documentation/javascript/examples/map-coordinates?hl=de
 - Mercantile: https://github.com/mapbox/mercantile