...
 
Commits (3)
==============================
HexACK common Python modules
==============================
=========================
HexACK-utils for django
=========================
This Python package is a small collection of Django Framework custom extensions we use throughout the projects / applications we work on.
This Python package is a small collection of utilities used throughout the projects / applications we work on.
Current commandes available
===========================
* HexACKBaseCommand : BaseCommand with PID management with automatic logging
* HexackCheckCommand : BaseCommand with nagios capacities with automatic logging
* resize_image : Resize Image based on Pillow
* TimestampField for Django Rest Framework
Install
=======
Create a virtualenv::
You can install hexack-utils by using pip :
$ pip install git+ssh://git@hexack.nuajik.io/HexACK/hexack-utils.git@v0.2.0#egg=hexack-utils-0.2.0
If you want to install it from source, grab the git repository and run setup.py:
$ mkvirtualenv -p /usr/bin/python3 hexack_utils
$ git clone git://hexack.nuajik.io/HexACK/hexack-utils.git
$ cd hexack-utils
$ python setup.py install
Requirements
============
Django Framework>=2.2
Django Rest Framework>=3
Pillow
See setup.py for more informations.
Tests
=====
......
......@@ -38,7 +38,7 @@ class HexACKBaseCommand(BaseCommand):
self.logger.critical('Another batch is running: ' + pid)
sys.exit(1)
# create fullzap pid directory
# create pid directory
if not os.path.exists(settings.PID_DIR):
os.makedirs(settings.PID_DIR)
......
......@@ -11,14 +11,14 @@ setup(
namespace_packages=['hexack'],
install_requires=[
'Pillow',
'django>=1.1',
'django>=2.2',
'django-filter>=2',
'djangorestframework>=3'
],
python_requires='>=3.4',
author='HexACK',
author_email='dev@hexack.fr',
description='HexACK common utils',
author_email='contact@hexack.fr',
description='HexACK utils for django framework',
url='https://github.com/hexack/hexack-utils',
license='MIT',
)