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.5

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.5
File Size Uploaded Provenance Actions
seecr_stdlib-0.6.5.tar.gz 13.0 kB With provenance Details for seecr_stdlib-0.6.5.tar.gz

Built distribution (wheel)

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

Total release size: 27.4 kB

Release files / seecr_stdlib-0.6.5.tar.gz

Download URL seecr_stdlib-0.6.5.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6fade6130c2903becf0b3a13290fca8268c8b7a43948b8bb9245d048434c7d1a
BLAKE2b-256 checksum
How to use checksums
044485357d97878db9fdb1ba9ad0c66c382b321225cb18e7166844882a3215d4
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 29, 2026.

Transparency log

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

Download URL seecr_stdlib-0.6.5-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
436d0498d59dada06e8edd3c988f8f9c98a94efca4494281f95d19c0acc1fe88
BLAKE2b-256 checksum
How to use checksums
c7e4b3e8524ab70e7b7ca85c16c153d43095dafaa40c864ad39d0e075f179f17
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 29, 2026.

Transparency log

Security for seecr-stdlib 0.6.5

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.5.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 29, 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.5 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