A python wrapper for the Logentries API
Project description
python-logentries-api
This is a Python wrapper for the Logentries API. The API object terms follow the semantics from the Logentries website, not the Logentries API.
This is not endorsed or provided by Logentries, and no commercial support is provided.
Example
To create a new tag called ‘user_agent = curl’ and associate it with a log called ‘someset/somelog’:
from logentries_api import Tags, Hooks, Labels, LogSets label = Labels().create('user_agent = curl') log = LogSets().get('someset/somelog') tag = Tags().create(label['sn']) hook = Hooks().create( name=label['title'], regexes=['user_agent = /curl\/[\d.]*/'], tag_id=tag['id'], logs=[log['key']] )
Installation
To install the latest release, type:
pip install python-logentries-api
To install the latest code directly from source, type:
pip install git+git://github.com/ambitioninc/python-logentries-api.git
Documentation
Full documentation is available at http://python-logentries-api.readthedocs.org
License
MIT License (see LICENSE)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-logentries-api-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdfcc2fe0e71c205555aa07c8770c3a74c063a28cc7f47bf978453e56eab0051 |
|
MD5 | c99d552b7d3a5a469542355e47696a6a |
|
BLAKE2b-256 | 5352d8d68be7000b4563b3ca203c3f418c1a695389d20831962da3a8db1f9038 |
Close
Hashes for python_logentries_api-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4f38d079a1d37a12324045cb009729e2a260bfdd25e2871ed7b8fb995303c4 |
|
MD5 | 9b11e4d3c02e9b0de8bb0adb2202432d |
|
BLAKE2b-256 | 5980ac22181cf5eda6be7f46a95342d23730fd5ee8cb45c14b092b5a92031fa4 |