CANedge Browser - List Log Files (Local, S3)
This package lets you easily list CANedge CAN data log files. Simply specify the source (local disk or S3 server) and the start/stop period. The listed log files can then be used with other packages such as mdf_iter and can_decoder.
Key features
1. Extract a subset of log files between a start/stop date & time
Installation
Use pip to install the canedge_browser module:
pip install canedge_browser
Dependencies
fsspec(required)mdf_iter(required)
Module usage example
In the below example, we list log files between two dates from a MinIO S3 server:
import canedge_browser
import s3fs
from datetime import datetime, timezone
fs = s3fs.S3FileSystem(
key="<key>",
secret="<secret>",
client_kwargs={
"endpoint_url": "http://address.of.remote.s3.server:9000",
},
)
devices = ["<bucket>/23AD1AEA", "<bucket>/86373F4D"]
start = datetime(year=2020, month=8, day=4, hour=10, tzinfo=timezone.utc)
stop = datetime(year=2020, month=9, day=9, tzinfo=timezone.utc)
log_files = canedge_browser.get_log_files(fs, devices, start_date=start, stop_date=stop)
print("Found a total of {} log files".format(len(log_files)))
for log_file in log_files:
print(log_file)
Regarding timezone
NOTE: All time inputs into the library must include a timezone. If in doubt, set this to UTC (+00:00).
Regarding S3 server types
If you need to connect to e.g. an AWS S3 server, simply use the relevant endpoint (e.g. https://s3.amazonaws.com). Similarly, for MinIO servers, you would use the relevant endpoint (e.g. http://192.168.0.1:9000).
HTTP vs. HTTPS
To connect to a MinIO S3 server where TLS is enabled via a self-signed certificate, you can connect by adding the path to your public certificate in the verify field in the setup_fs_s3 function.
Regarding path syntax
Note that all paths are relative to the root /. For POSIX systems, this will likely follow the normal filesystem structure. Windows systems gets a slightly mangled syntax, such that C:\Some folder\a subfolder\the target file.MF4 becomes /C:/Some folder/a subfolder/the target file.MF4.
Metadata
Release files for canedge-browser 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| canedge_browser-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Release files / canedge_browser-0.0.8-py3-none-any.whl
| Download URL | canedge_browser-0.0.8-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70e2863e325927613d8cbcfc62d8cfe4779921b57f72b9032f14310321f574f6
|
|
BLAKE2b-256 checksum How to use checksums |
6d20c0091d93a680d7bd0b19088b9b1c2187947985064985b22f14489c0d2d0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.7
|
Security for canedge-browser 0.0.8
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.