
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
timeweave
Advanced tools
Timezone detection, conversion, and a self-maintaining IANA rule cache. Python 3.9+.
pip install timeweave
| Module | Role |
|---|---|
timeweave.tzkit | Detect, convert, parse, list zones (read path) |
timeweave.updater | Fetch + SHA-256 verify + cache the rules DB |
timeweave.compiler | Fetch + verify + zic-compile tz source into a zoneinfo tree |
import timeweave
info = timeweave.detect_timezone()
print(info["timezone"], info["utc_offset"], info["dst_active"])
result = timeweave.convert_timezone(
"2024-03-10 02:30", ["UTC", "Asia/Tokyo"], from_zone="America/New_York"
)
print(result["instant_utc"], result["local_time_kind"])
parsed = timeweave.parse_datetime("Sun, 10 Mar 2024 07:30:00 +0000")
tzkit detect --use-ip
tzkit convert '2024-03-10 02:30' --from America/New_York --to UTC --to Asia/Tokyo
tzkit parse 'Sun, 10 Mar 2024 07:30:00 +0000'
tzkit list Europe --transitions --sort offset
tz-update check --json
tz-compile refresh --force
tz-compile status
Wall-clock times that fall in a DST gap or fold are classified, never guessed silently:
--ambiguous earliest|latest|raise — repeated wall times (fold)--nonexistent shift_forward|shift_backward|raise — skipped wall times (gap)raise exits 6 so CI catches the case.
detect_timezone() and convert_timezone() start a non-blocking daemon-thread
update check, at most once per 24h, gated by a marker file. Failures are logged
and swallowed; the caller's result is never affected.
Disable it:
| Variable | Effect |
|---|---|
TIMEWEAVE_NO_AUTO_UPDATE=1 | Disable the on-use check only |
TIMEWEAVE_OFFLINE=1 | Disable all outbound network from the package |
TIMEWEAVE_NO_NETWORK=1 | Same as OFFLINE |
TIMEWEAVE_AUTO_INTERVAL | Seconds between checks (default 86400) |
| Variable | Purpose |
|---|---|
TIMEWEAVE_SRC_URL | Source endpoint (compiler) |
TIMEWEAVE_CHECKSUM_URL | Published SHA-256 (default <url>.sha256) |
TIMEWEAVE_SIGNATURE_URL + TIMEWEAVE_GPG_KEYRING | Authenticity verification |
TIMEWEAVE_ZIC_PATH | Absolute zic path (trusted config only) |
TIMEWEAVE_CACHE_DIR | Cache directory |
TZDIR | Compiled zoneinfo tree; prepended to zoneinfo.TZPATH on import |
SSL_CERT_FILE / REQUESTS_CA_BUNDLE | Custom CA bundle |
HTTP_PROXY / HTTPS_PROXY / NO_PROXY | Standard proxy settings |
TIMEWEAVE_SIGNATURE_URL and
TIMEWEAVE_GPG_KEYRING against a trusted key for real authenticity./usr/share/zoneinfo requires --system, needs root, and affects every
process on the host. Prefer your OS's signed tzdata package for the system
tree; use this module for isolated, air-gapped, or version-pinned caches.Zone/Link names are validated before zic runs,
and compiler output is re-checked for containment afterwards.zic path is a fixed absolute constant, validated executable, and is
never read from a network response.MIT
FAQs
Timezone detection, conversion, and self-maintaining IANA rule cache.
The pypi package timeweave receives a total of 773 weekly downloads. As such, timeweave popularity was classified as not popular.
We found that timeweave demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.