Skip to main content

PyPI Python

Overview

Small toolkit for capturing and dumping browser cookies via an embedded browser and then being able to use them from cURL or any way you see fit.

This supports crawling or capturing authenticated web content.

Requirements

Python 3.10 or newer (requires-python in pyproject.toml, aligned with PySide6).

Install

From the repository root:

pip install .

Build

From the repository root, install the build tooling (for example the dev extra, which includes build and twine), then run the packaging script:

pip install -e '.[dev]'
./infrastructure/build.sh

That runs python -m build and writes the wheel and sdist under dist/.

To publish those artifacts to PyPI (after configuring twine credentials), use:

./infrastructure/upload.sh

Tools

  • ct_authenticate: Opens an embedded Chromium window to the given URL. The output should be redirected. Login as necessary and press the "Done" button.

  • ct_to_curl: Reads the JSON output from ct_authenticate and prints curl cookie arguments

Example

ct_authenticate https://example.com > session.json
curl -s $(ct_to_curl < session.json) 'https://example.com/'

Tests

pytest

Metadata

Release files for cookietruck 0.1.3

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

Source distribution (sdist)

Source distribution for cookietruck 0.1.3
File Size Uploaded Provenance Actions
cookietruck-0.1.3.tar.gz 16.8 kB Without provenance Details for cookietruck-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cookietruck 0.1.3
File Interpreter ABI Platform Actions
cookietruck-0.1.3-py3-none-any.whl Python 3 none any Details for cookietruck-0.1.3-py3-none-any.whl

Total release size: 31.2 kB

Release files / cookietruck-0.1.3.tar.gz

Download URL cookietruck-0.1.3.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
92bddda808b417e48720ba2a06c31a094d4b491ba22b0407385d9af84c8993db
BLAKE2b-256 checksum
How to use checksums
9f742b1544caace963447ae1bbc72a3741e77eb6a2bcbdef5481dcb46bfa777c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / cookietruck-0.1.3-py3-none-any.whl

Download URL cookietruck-0.1.3-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d94f3493abc33d1795ae50bd79550eebc82ade97ea99e3ea2ba43d945c86f473
BLAKE2b-256 checksum
How to use checksums
b1ea23c80ca313d90402563d2f25b25dad85540b498c3a3bdb6413f1ae4ac6c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for cookietruck 0.1.3

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.

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