Tools for extracting most active cookie from csv
Project description
MostActiveCookie
MostActiveCookie is a command line program in Python to process the log file and return the most active cookie for specified day. This was a project proceeded for Quantcast.
In order to run this program, you will need a csv file with cookie and timestamp inside. The example for csv will be like following:
Cookie,Timestamp
AtY0laUfhglK3lC7,2018-12-09T14:21:00+00:00
AtY0laUfhglK3l67,2018-12-09T14:20:00+00:00
You would need Python with version at least 3.8
and csv file that includes appropriate cookie and timestamp with header.
Quick Start
Scenario: Extract Most Active Cookie in 2018-12-09
> python3 -m most_active_cookie ./tests/resources normal_cookie_case.csv --date 2018-12-09
> AtY0laUfhglK3lC7
> AtY0laUfhglK3l67
Testing
Test can be conducted using pytest
> pytest -v
> cd tests/jobs #only when previous command does not work
> python3 -m pytest #only when previous command does not work
Future Works
- Add support to other file formats
- Add alert for cookie input
- Consider adding logging
Project details
Release history Release notifications | RSS feed
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 most_active_cookie-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7611e702eec620a9335d912ede99630bc7c66e1f5ec0af9f1fc11574db2d05 |
|
MD5 | 287126cb9e397053061aab6dcfd6b14b |
|
BLAKE2b-256 | 7a34c983e6e5c404e2174b6410a3e4e8993954edf06d88eb2d4faac4ff04fd9d |