Pre-release
This release is a pre-release and may not be stable for production use.
warcforhumans
warcforhumans is a Python package that lets you write WARC records with a simple requests session.
Usage
Simple example:
from warcforhumans.api import WARCWriter
warc_writer = WARCWriter("example", rotate_mb=0)
s = warc_writer.get_session()
r = s.get("http://digitaldragon.dev")
warc_writer.close()
With ZSTD compression:
from warcforhumans.api import WARCWriter
from warcforhumans.compression import ZSTDCompressor
warc_writer = WARCWriter("example-$date-$number-$serial",
compressor=ZSTDCompressor(level=11),
warcinfo_fields={"operator": "some person"},
software="example-script/0.1")
or a ZSTD dictionary:
from warcforhumans.api import WARCWriter
from warcforhumans.compression import ZSTDCompressor
with open("dictionary.zstdict", "rb") as f:
dictionary = f.read()
warc_writer = WARCWriter("example-$date-$number-$serial",
compressor=ZSTDCompressor(level=11, dictionary=dictionary),
warcinfo_fields={"operator": "some person"},
software="example-script/0.1")
Release files for warcforhumans 1.0.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| warcforhumans-1.0.0a2.tar.gz | 14.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| warcforhumans-1.0.0a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.9 kB
Release files / warcforhumans-1.0.0a2.tar.gz
| Download URL | warcforhumans-1.0.0a2.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9611a0be4e2b3e4cf60bf374a35144b32b4b830f9b48cc1fb8a888fa8094f3d2
|
|
BLAKE2b-256 checksum How to use checksums |
87391f743f1bad35ed09995a7d6e9e908cc184c3b8a2cefc94f911c4a547294c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / warcforhumans-1.0.0a2-py3-none-any.whl
| Download URL | warcforhumans-1.0.0a2-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c4b4b78b1b53a910dca9d04f0747d083d82c940e3182c6311c8cc21ba7cc36e
|
|
BLAKE2b-256 checksum How to use checksums |
99c4a2b192ba79c153cb11c95ac0286e75ab6e9a556260b566c39dccee75c743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|