Skip to main content

Seecr Standard Library

Small, dependency-light Python utilities shared across Seecr projects.

Tests PyPI

Installation

pip install seecr-stdlib

Requires Python 3.11 or newer.

What's inside

Dict: attribute access for dicts

from seecr_stdlib import Dict

d = Dict(answer=42)
d.answer           # 42
d.question = "?"   # same as d["question"] = "?"

Keys never shadow dict methods: Dict(items=1).items is still the method, and assigning d.items = 1 raises AttributeError.

first

from seecr_stdlib import first

first([1, 2, 3])   # 1
first([])          # None

Config: dotted-path access to JSON configuration

from pathlib import Path
from seecr_stdlib.config import Config

config = Config.read(Path("config.json"), required=["db.host"])
config.get("db.host")
config.get("db.ports.0")                   # list indices work too
config.get("db.user", default="postgres")  # default for missing keys

# Fill in {placeholders} in all string values
config = config.expand_with({"host": "localhost"})

seecr_stdlib.time: timezone-aware helpers

now_utc(), now_local(), datetime_as_float(), float_as_datetime(), isoformat_as_datetime_utc(), datetime_local_to_utc(), datetime_utc_to_local(), timestamp_local_to_utc() and uuid_as_datetime_utc() (the timestamp of a version 1 UUID).

format_date: uniform date formatting

Accepts date/datetime objects, ISO 8601 strings and Unix timestamps. Dutch styles that show time convert to Europe/Amsterdam.

from datetime import datetime, timezone
from seecr_stdlib.format import format_date

d = datetime(2026, 10, 29, 13, 45, tzinfo=timezone.utc)
format_date(d)                   # '2026-10-29'
format_date(d, "nl")             # '29-10-2026'
format_date(d, "nl_tijd")        # '29-10-2026 14:45'
format_date(d, "nllang")         # 'donderdag 29 oktober 2026'
format_date(d, "nlkort_tijd")    # 'do 29 okt 2026 14:45'
format_date(d, "zulu")           # '2026-10-29T13:45:00Z'

Short aliases: nl-t, nl-l, nl-k, nl-lt, nl-kt. It also works as a Jinja filter:

env.filters["format_date"] = format_date
{{ created | format_date('nl') }}

Development

python -m venv env --prompt seecr-stdlib
source env/bin/activate
pip install -e .
pytest

Tests live next to the code as <module>_test.py.

License

Copyright (C) 2025-2026 Seecr (Seek You Too B.V.)

Licensed under the MIT License.

Metadata

Release files for seecr-stdlib 0.6.6

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

Source distribution (sdist)

Source distribution for seecr-stdlib 0.6.6
File Size Uploaded Provenance Actions
seecr_stdlib-0.6.6.tar.gz 13.6 kB With provenance Details for seecr_stdlib-0.6.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seecr-stdlib 0.6.6
File Interpreter ABI Platform Actions
seecr_stdlib-0.6.6-py3-none-any.whl Python 3 none any Details for seecr_stdlib-0.6.6-py3-none-any.whl

Total release size: 28.1 kB

Release files / seecr_stdlib-0.6.6.tar.gz

Download URL seecr_stdlib-0.6.6.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
753b06404e6e71bbed46a6e73db2b9a9314194f0bf09b81c5b7cce83288205ee
BLAKE2b-256 checksum
How to use checksums
aced5385366014e091872056cb3916fb4b08916459702bf8d4c122e6d12baa10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / seecr_stdlib-0.6.6-py3-none-any.whl

Download URL seecr_stdlib-0.6.6-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d780a1faefb21372f900c1171c3b4f52d87d9b7fa063c8329dc94b709fb3fce
BLAKE2b-256 checksum
How to use checksums
e8f2b08805225d8c11709e4021c6686bac0c4b2d6520c62ab8b036ceaa8bb120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for seecr-stdlib 0.6.6

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seecr_stdlib-0.6.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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

0.6.6 This release

2 release files Full 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