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

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.7.0
File Size Uploaded Provenance Actions
seecr_stdlib-0.7.0.tar.gz 13.6 kB With provenance Details for seecr_stdlib-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 28.1 kB

Release files / seecr_stdlib-0.7.0.tar.gz

Download URL seecr_stdlib-0.7.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d5e7b6807d43465a74ef25828a3587a2bdad5159623cc4bf04a398aba813d1f0
BLAKE2b-256 checksum
How to use checksums
4b7432c0ec03a4f15f61b4d6bfb15dcb5ba6eafe514e79e36b5a8ea518d522d0
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 Nov 19, 2026.

Transparency log

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

Download URL seecr_stdlib-0.7.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07d868f323c5ff6042b174a22f2d78418251dbee39d05b99be0d7a3fe6c5488f
BLAKE2b-256 checksum
How to use checksums
64b4246f4715a4ff7855d9fd33da2122484e188acd737e196897746e5546685e
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 Nov 19, 2026.

Transparency log

Security for seecr-stdlib 0.7.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seecr_stdlib-0.7.0.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 Nov 19, 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.7.0 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