Skip to content

Commit

Permalink
Merge pull request #25 from kamidipreetham/develop
Browse files Browse the repository at this point in the history
Release v0.6.0
  • Loading branch information
Preetham Kamidi committed Feb 18, 2020
2 parents 6521fcb + 3d32de2 commit 889d5f3
Show file tree
Hide file tree
Showing 10 changed files with 921 additions and 9 deletions.
72 changes: 72 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
aiodns = "==2.0.0"
aiohttp-socks = "==0.2.2"
aiohttp = "==3.5.4"
async-timeout = "==3.0.1"
attrs = "==19.1.0"
beautifulsoup4 = "==4.7.1"
cchardet = "==2.1.4"
certifi = "==2019.6.16"
cffi = "==1.12.3"
chardet = "==3.0.4"
click = "==7.0"
decorator = "==4.4.0"
dnspython = "==1.16.0"
elasticsearch = "==7.0.2"
eventlet = "==0.25.0"
fake-useragent = "==0.1.11"
geographiclib = "==1.49"
geopy = "==1.20.0"
greenlet = "==0.4.15"
gunicorn = "==19.9.0"
idna-ssl = "==1.1.0"
idna = "==2.8"
imageio = "==2.5.0"
itsdangerous = "==1.1.0"
joblib = "==0.13.2"
kiwisolver = "==1.1.0"
monotonic = "==1.5"
multidict = "==4.5.2"
networkx = "==2.3"
nltk = ">=3.4.5"
numpy = "==1.16.4"
pandas = "==0.24.2"
pycares = "==3.0.0"
pycodestyle = "==2.5.0"
pycparser = "==2.19"
pyparsing = "==2.4.0"
pytesseract = "==0.2.7"
python-dateutil = "==2.8.0"
pytz = "==2019.1"
regex = "==2019.6.8"
requests = "==2.22.0"
schedule = "==0.6.0"
scikit-learn = "==0.21.2"
scipy = "==1.3.0"
six = "==1.12.0"
soupsieve = "==1.9.2"
twint = "==2.1.13"
typing-extensions = "==3.7.4"
typing = "==3.7.4"
urllib3 = "==1.25.3"
yapf = "==0.27.0"
yarl = "==1.3.0"
Cycler = "==0.10.0"
Flask-Cors = "==3.0.8"
Flask = "==1.1.1"
Jinja2 = "==2.10.1"
MarkupSafe = "==1.1.1"
Pillow = ">=6.2.0"
PySocks = "==1.7.0"
PyWavelets = "==1.0.3"
Werkzeug = "==0.15.4"

[requires]
python_version = "3.7"
831 changes: 831 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Verify Tweet attempts to resolve the problem by letting users upload such tweet
Installing via pip:

```sh
pip install -U git+https://github.com/kamidipreetham/verifytweet.git@origin/master#egg=verifytweet
pip install verifytweet
```

Or via pipenv:

```sh
pipenv install -e git+https://github.com/kamidipreetham/verifytweet.git@origin/master#egg=verifytweet
pipenv install verifytweet
```

## Usage
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
include_package_data=True,
python_requires=">=3.6.*",
install_requires=[
"click>=5.1", "Pillow==6.0.0", "pytesseract==0.2.6",
"requests==2.22.0", "scikit-learn==0.21.2", "nltk>=3.4.3",
"click>=5.1", "Pillow>=6.2.0", "pytesseract==0.2.6",
"requests==2.22.0", "scikit-learn==0.21.2", "nltk>=3.4.5",
"python-dateutil==2.8.0", "werkzeug==0.15.4",
"twint @ git+https://github.com/twintproject/twint.git"
"twint==2.1.13"
],
entry_points={
"console_scripts": ["verifytweet = verifytweet.cli:run_as_command"]
Expand Down
2 changes: 1 addition & 1 deletion verifytweet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
from .util import validator
from .util import common

__version__ = "0.5.2"
__version__ = "0.6.0"
6 changes: 6 additions & 0 deletions verifytweet/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
cors = CORS(router, resources={r'/api/*': {'origins': '*'}})


@router.route('/', methods=['GET'])
def root():
logger.info('Health Check log')
return jsonify({'status': 0})


@router.route('/health', methods=['GET'])
def health():
logger.info('Health Check log')
Expand Down
Empty file added verifytweet/config/__init__.py
Empty file.
9 changes: 6 additions & 3 deletions verifytweet/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class WebConfig(Config):
"""Configuration for running as web service
"""

APP_HOST = os.getenv('APP_HOST')
APP_PORT = os.getenv('APP_PORT')
APP_HOST = os.getenv('APP_HOST') or '0.0.0.0'
APP_PORT = os.getenv('APP_PORT') or '8000'
TIMEOUT = 2000
MAX_CONTENT_LENGTH_KEY = "MAX_CONTENT_LENGTH"
MAX_CONTENT_LENGTH = 2097152
Expand All @@ -78,6 +78,9 @@ class WebConfig(Config):

run_method = "web" if "VERIFYTWEET_RUN_FOR_WEB" in os.environ else "cli"
Config.RUN_METHOD = run_method
configurations = {"web": WebConfig, "cli": Config}
configurations = dict({
"cli": Config,
"web": WebConfig,
})

app_config = configurations[run_method]
Empty file.
Empty file added verifytweet/util/__init__.py
Empty file.

0 comments on commit 889d5f3

Please sign in to comment.