Browse Source

Version update (#54)

* update requests version

* version upgrade

* v. upgrade-flake8 changes

* add markdown spacing

* readme fix

* Update README.md

Co-Authored-By: Ido Halevi <32218210+idohalevi@users.noreply.github.com>

Co-authored-by: Stefan (Shalom) <imnotashrimp@users.noreply.github.com>
Co-authored-by: Ido Halevi <32218210+idohalevi@users.noreply.github.com>
opensearch
Miri 5 years ago
committed by GitHub
parent
commit
9d5d0d9f4a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 13 deletions
  1. +1
    -5
      .travis.yml
  2. +15
    -4
      README.md
  3. +2
    -2
      setup.py
  4. +2
    -2
      tox.ini

+ 1
- 5
.travis.yml View File

@ -3,14 +3,10 @@ language: python
matrix: matrix:
include: include:
- python: 2.7
- python: 3.8
env: TOXENV=flake8 env: TOXENV=flake8
- python: 3.8 - python: 3.8
env: TOXENV=py3flake8 env: TOXENV=py3flake8
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.5 - python: 3.5
env: TOXENV=py35 env: TOXENV=py35
- python: 3.6 - python: 3.6


+ 15
- 4
README.md View File

@ -1,6 +1,18 @@
[![PyPI version](https://badge.fury.io/py/logzio-python-handler.svg)](https://badge.fury.io/py/logzio-python-handler) [![Build Status](https://travis-ci.org/logzio/logzio-python-handler.svg?branch=master)](https://travis-ci.org/logzio/logzio-python-handler) [![PyPI version](https://badge.fury.io/py/logzio-python-handler.svg)](https://badge.fury.io/py/logzio-python-handler) [![Build Status](https://travis-ci.org/logzio/logzio-python-handler.svg?branch=master)](https://travis-ci.org/logzio/logzio-python-handler)
# The Logz.io Python Handler # The Logz.io Python Handler
<table><tr><th>
### Deprecation announcement
Version 2.1.0 of this project ends support for Python 2.7, 3.3, and 3.4. We recommend migrating your projects to Python 3.5 or newer as soon as possible. We'll be happy to answer any questions you have in [a GitHub issue](https://github.com/logzio/logzio-python-handler/issues).
Thanks! <br>
The Logz.io Integrations team
</th></tr></table>
This is a Python handler that sends logs in bulk over HTTPS to Logz.io. This is a Python handler that sends logs in bulk over HTTPS to Logz.io.
The handler uses a subclass named LogzioSender (which can be used without this handler as well, to ship raw data). The handler uses a subclass named LogzioSender (which can be used without this handler as well, to ship raw data).
The LogzioSender class opens a new Thread, that consumes from the logs queue. Each iteration (its frequency of which can be configured by the logs_drain_timeout parameter), will try to consume the queue in its entirety. The LogzioSender class opens a new Thread, that consumes from the logs queue. Each iteration (its frequency of which can be configured by the logs_drain_timeout parameter), will try to consume the queue in its entirety.
@ -8,6 +20,7 @@ Logs will get divided into separate bulks, based on their size.
LogzioSender will check if the main thread is alive. In case the main thread quits, it will try to consume the queue one last time, and then exit. So your program can hang for a few seconds, until the logs are drained. LogzioSender will check if the main thread is alive. In case the main thread quits, it will try to consume the queue one last time, and then exit. So your program can hang for a few seconds, until the logs are drained.
In case the logs failed to be sent to Logz.io after a couple of tries, they will be written to the local file system. You can later upload them to Logz.io using curl. In case the logs failed to be sent to Logz.io after a couple of tries, they will be written to the local file system. You can later upload them to Logz.io using curl.
## Installation ## Installation
```bash ```bash
pip install logzio-python-handler pip install logzio-python-handler
@ -15,8 +28,6 @@ pip install logzio-python-handler
## Tested Python Versions ## Tested Python Versions
Travis CI will build this handler and test against: Travis CI will build this handler and test against:
- "2.7"
- "3.4"
- "3.5" - "3.5"
- "3.6" - "3.6"
- "3.7" - "3.7"
@ -24,8 +35,6 @@ Travis CI will build this handler and test against:
We can't ensure compatibility to any other version, as we can't test it automatically. We can't ensure compatibility to any other version, as we can't test it automatically.
**Note**: The Logz.io Python Handler no longer tests Python 3.3 (which was [end-of-lifed](https://www.python.org/dev/peps/pep-0398/#id11) in 2017).
To run tests: To run tests:
```bash ```bash
@ -164,6 +173,8 @@ LOGGING = {
- appname - Your django app - appname - Your django app
## Release Notes ## Release Notes
- 2.1.0
- Deprecated `python2.7` & `python3.4`
- 2.0.15 - 2.0.15
- Added flusher decorator for serverless platforms(@mcmasty) - Added flusher decorator for serverless platforms(@mcmasty)
- Add support for `python3.7` and `python3.8` - Add support for `python3.7` and `python3.8`


+ 2
- 2
setup.py View File

@ -3,7 +3,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
setup( setup(
name="logzio-python-handler", name="logzio-python-handler",
version='2.0.15',
version='2.1.0',
description="Logging handler to send logs to your Logz.io account with bulk SSL", description="Logging handler to send logs to your Logz.io account with bulk SSL",
keywords="logging handler logz.io bulk https", keywords="logging handler logz.io bulk https",
author="roiravhon", author="roiravhon",
@ -12,7 +12,7 @@ setup(
license="Apache License 2", license="Apache License 2",
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=[
"requests"
"requests>=2.23.0"
], ],
test_requires=[ test_requires=[
"future" "future"


+ 2
- 2
tox.ini View File

@ -1,6 +1,6 @@
[tox] [tox]
minversion = 1.7.2 minversion = 1.7.2
envlist = flake8, py3flake8, py27, py34, py35, py36, py37, py38, pypy, pypy3
envlist = flake8, py3flake8, py35, py36, py37, py38, pypy, pypy3
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
@ -13,7 +13,7 @@ passenv = CI TRAVIS TRAVIS_*
commands = pytest --cov-report term-missing --cov logzio tests -v commands = pytest --cov-report term-missing --cov logzio tests -v
[testenv:flake8] [testenv:flake8]
basepython = python2.7
basepython = python3.8
deps = flake8 deps = flake8
commands = flake8 logzio commands = flake8 logzio


Loading…
Cancel
Save