Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
H
hexack-utils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HexACK
hexack-utils
Commits
e08da829
Commit
e08da829
authored
Mar 16, 2020
by
Stéphane KANSCHINE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'marketing' into 'master'
Marketing See merge request
!3
parents
dac1c31c
839d4a3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
README.rst
README.rst
+26
-6
hexack/utils/base_command.py
hexack/utils/base_command.py
+1
-1
setup.py
setup.py
+3
-3
No files found.
README.rst
View file @
e08da829
=========================
=====
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
=====
...
...
hexack/utils/base_command.py
View file @
e08da829
...
...
@@ -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
)
...
...
setup.py
View file @
e08da829
...
...
@@ -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'
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment