Skip to main content

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

Metadata

Release files for most-active-cookie 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for most-active-cookie 1.0.0
File Size Uploaded Provenance Actions
most-active-cookie-1.0.0.tar.gz 5.1 kB Without provenance Details for most-active-cookie-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for most-active-cookie 1.0.0
File Interpreter ABI Platform Actions
most_active_cookie-1.0.0-py3-none-any.whl Python 3 none any Details for most_active_cookie-1.0.0-py3-none-any.whl

Total release size: 10.4 kB

Security for most-active-cookie 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page