format_cef
format_cef is a little helper library for producing ArcSight Common Event
Format (CEF) compliant messages from structured arguments. You can use it
like this:
>>> from format_cef import format_cef
>>> format_cef(
'acme corp', 'TNT', 1.0, '404 | not found', 'Explosives not found', 10
oextensions={'deviceAction': 'bang = !'})
'CEF:0|acme corp|TNT|1.0|404 \| not found|Explosives not found|10|act=bang \= !'
Notice how the format format_cef takes care of escaping delimiters correctly.
It will also ensure that each CEF extension complies to the restrictions
outlined in the CEF documentation.
This module deliberately remains agnostic as to the log message transport protocol (as does CEF itself). It is also designed to remain stateless so as to easy to test and use as a building block in larger systems.
Metadata
Release files for format-cef 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| format_cef-0.0.4.tar.gz | 7.0 kB | Without provenance | Details for format_cef-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| format_cef-0.0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for format_cef-0.0.4-py2.py3-none-any.whl |
Total release size: 16.7 kB
Release files / format_cef-0.0.4.tar.gz
| Download URL | format_cef-0.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
627e7bb836a8eb20cc33adb0196fa3571b78664d4920bd2d26e6636169b364c4
|
|
BLAKE2b-256 checksum How to use checksums |
1cfef43ebac61feb9129e387a758bb1b71d3742ad3daac97416494cde052c341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.1
|
Release files / format_cef-0.0.4-py2.py3-none-any.whl
| Download URL | format_cef-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c7ef490b75f9c624359a6f87c905a5764c86a48332d10e957deaea93cba90bbf
|
|
BLAKE2b-256 checksum How to use checksums |
76e619c01b8322b48ef14af2e30d256cf9ee9df3fa69b814a86d11e455982291
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.1
|
Security for format-cef 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.