Skip to content

Commit e6643a5

Browse files
author
shubham khapra
committed
EHA
1 parent ba80379 commit e6643a5

File tree

5 files changed

+49
-30
lines changed

5 files changed

+49
-30
lines changed

.gitignore

+43-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
1-
venv
2-
__pycache__
1+
__pycache__/
2+
*.py[cod]
3+
*$py.class
4+
# C extensions
5+
*.so
6+
.Python
7+
env/
8+
build/
9+
develop-eggs/
10+
dist/
11+
downloads/
12+
eggs/
13+
.eggs/
14+
lib/
15+
lib64/
16+
parts/
17+
sdist/
18+
var/
19+
*.egg-info/
20+
.installed.cfg
21+
*.egg
22+
*.manifest
23+
*.spec
24+
pip-log.txt
25+
pip-delete-this-directory.txt
26+
htmlcov/
27+
.tox/
28+
.coverage
29+
.coverage.*
30+
.cache
31+
nosetests.xml
32+
coverage.xml
33+
*,cover
34+
.hypothesis/
35+
*.mo
36+
*.pot
37+
*.log
38+
docs/_build/
39+
target/
40+
.ipynb_checkpoints
41+
virt/
42+
.vscode/
43+
venv/

Dockerfile

-13
This file was deleted.

docker-compose.yml

-11
This file was deleted.

eha/server.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
#!/usr/bin/python3
2-
# !/usr/bin/env python3
1+
#!/usr/bin/env python
32
# Copyright 2021, Shubham Khapra and The Email header analysis
43
# See LICENSE for licensing information
54
from flask import Flask
65
from flask import render_template
7-
from flask import request
6+
from flask import request , jsonify
87

98
from email.parser import HeaderParser
109
import time
1110
import dateutil.parser
12-
11+
from datetime import datetime
1312
import re
1413

1514
import pygal
@@ -18,6 +17,7 @@
1817
from IPy import IP
1918
import geoip2.database
2019

20+
2121
import argparse
2222
print(" Author : Shubham Khapra ")
2323
print("Github : https://github.com/Shubhamkhapra ")

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ geoip2==0.1.0
33
pygal==2.4.0
44
IPy==1.01
55
python_dateutil==2.8.1
6+
maxminddb
7+
gunicorn

0 commit comments

Comments
 (0)