seecr-stdlib 0.6.4__tar.gz → 0.6.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- seecr_stdlib-0.6.6/.github/dependabot.yml +10 -0
- seecr_stdlib-0.6.6/.github/workflows/publish.yml +56 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/.github/workflows/test.yml +4 -2
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/CLAUDE.md +2 -2
- seecr_stdlib-0.6.6/LICENSE +21 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/PKG-INFO +8 -6
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/README.md +1 -1
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/doc/license.conf +1 -1
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/pyproject.toml +6 -4
- seecr_stdlib-0.6.6/seecr_stdlib/__init__.py +17 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/_version.py +3 -3
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/config.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/config_test.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/dict.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/dict_test.py +3 -11
- seecr_stdlib-0.6.6/seecr_stdlib/first.py +17 -0
- seecr_stdlib-0.6.6/seecr_stdlib/first_test.py +21 -0
- seecr_stdlib-0.6.6/seecr_stdlib/format/__init__.py +16 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/format/date.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/format/date_test.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/time.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/time_test.py +3 -11
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib.egg-info/PKG-INFO +8 -6
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib.egg-info/SOURCES.txt +1 -0
- seecr_stdlib-0.6.6/seecr_stdlib.egg-info/requires.txt +2 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib.egg-info/scm_file_list.json +1 -0
- seecr_stdlib-0.6.6/seecr_stdlib.egg-info/scm_version.json +8 -0
- seecr_stdlib-0.6.4/.github/workflows/publish.yml +0 -39
- seecr_stdlib-0.6.4/LICENSE +0 -674
- seecr_stdlib-0.6.4/seecr_stdlib/__init__.py +0 -25
- seecr_stdlib-0.6.4/seecr_stdlib/first.py +0 -25
- seecr_stdlib-0.6.4/seecr_stdlib/first_test.py +0 -29
- seecr_stdlib-0.6.4/seecr_stdlib/format/__init__.py +0 -24
- seecr_stdlib-0.6.4/seecr_stdlib.egg-info/requires.txt +0 -2
- seecr_stdlib-0.6.4/seecr_stdlib.egg-info/scm_version.json +0 -8
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/.gitignore +0 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib/.gitignore +0 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib.egg-info/dependency_links.txt +0 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/seecr_stdlib.egg-info/top_level.txt +0 -0
- {seecr_stdlib-0.6.4 → seecr_stdlib-0.6.6}/setup.cfg +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Publishes when a MAJOR.MINOR.PATCH tag (e.g. 0.6.4) is pushed. The tag
|
|
4
|
+
# becomes the package version via setuptools_scm. After the upload, a GitHub
|
|
5
|
+
# release is made, with notes generated from the commits since the previous tag.
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags: ["[0-9]+.[0-9]+.[0-9]+"]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v7
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
- uses: actions/setup-python@v7
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.13"
|
|
20
|
+
- run: pip install build
|
|
21
|
+
- run: python -m build
|
|
22
|
+
- uses: actions/upload-artifact@v7
|
|
23
|
+
with:
|
|
24
|
+
name: dist
|
|
25
|
+
path: dist/
|
|
26
|
+
|
|
27
|
+
publish:
|
|
28
|
+
needs: build
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
environment:
|
|
31
|
+
name: pypi
|
|
32
|
+
url: https://pypi.org/project/seecr-stdlib/
|
|
33
|
+
permissions:
|
|
34
|
+
id-token: write # PyPI trusted publishing, no API token needed
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/download-artifact@v8
|
|
37
|
+
with:
|
|
38
|
+
name: dist
|
|
39
|
+
path: dist/
|
|
40
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
41
|
+
|
|
42
|
+
release:
|
|
43
|
+
needs: publish
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
permissions:
|
|
46
|
+
contents: write # to create the release
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/download-artifact@v8
|
|
49
|
+
with:
|
|
50
|
+
name: dist
|
|
51
|
+
path: dist/
|
|
52
|
+
- run: >-
|
|
53
|
+
gh release create "$GITHUB_REF_NAME" dist/*
|
|
54
|
+
--repo "$GITHUB_REPOSITORY" --title "$GITHUB_REF_NAME" --generate-notes
|
|
55
|
+
env:
|
|
56
|
+
GH_TOKEN: ${{ github.token }}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
name: Tests
|
|
2
2
|
|
|
3
|
+
# Version tags are tested by the push of the commit itself; publish.yml handles the tag.
|
|
3
4
|
on:
|
|
4
5
|
push:
|
|
6
|
+
branches: ["**"]
|
|
5
7
|
pull_request:
|
|
6
8
|
|
|
7
9
|
jobs:
|
|
@@ -12,10 +14,10 @@ jobs:
|
|
|
12
14
|
matrix:
|
|
13
15
|
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
14
16
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v7
|
|
16
18
|
with:
|
|
17
19
|
fetch-depth: 0 # setuptools_scm needs the tags
|
|
18
|
-
- uses: actions/setup-python@
|
|
20
|
+
- uses: actions/setup-python@v7
|
|
19
21
|
with:
|
|
20
22
|
python-version: ${{ matrix.python-version }}
|
|
21
23
|
- run: pip install -e .
|
|
@@ -21,9 +21,9 @@ Formatting follows black (isort is configured with `profile = "black"`).
|
|
|
21
21
|
## Conventions
|
|
22
22
|
|
|
23
23
|
- Tests sit next to the module they test as `<module>_test.py` (not in a separate `tests/` dir), written as plain pytest functions, often with `@pytest.mark.parametrize`.
|
|
24
|
-
- Every source file starts with the
|
|
24
|
+
- Every source file starts with the MIT `## begin license ## ... ## end license ##` header (template data in `doc/license.conf`). Copy it into new files and keep the copyright year(s) current.
|
|
25
25
|
- Versions come from git tags via `setuptools_scm` (tags like `0.6.3`); `seecr_stdlib/_version.py` is generated and git-ignored — don't edit it.
|
|
26
|
-
- Pushing a version tag to GitHub publishes that version to PyPI (`.github/workflows/publish.yml`), and PyPI never accepts a version twice. Don't push tags unless asked.
|
|
26
|
+
- Pushing a version tag to GitHub publishes that version to PyPI and makes a GitHub release (`.github/workflows/publish.yml`), and PyPI never accepts a version twice. Don't push tags unless asked.
|
|
27
27
|
- Only `Dict` and `first` are re-exported from the package root; other modules are imported by path (`seecr_stdlib.config`, `seecr_stdlib.time`, `seecr_stdlib.format`).
|
|
28
28
|
- `format_date` dispatches through the `styles` dict in `format/date.py`; add new styles (and their short aliases like `nl-t`) there. Unknown styles fall back to ISO date. Dutch styles convert aware datetimes to `Europe/Amsterdam` when showing time.
|
|
29
29
|
- `Config(path)` is deprecated in favour of `Config.read(path, ...)`; `Config.get` resolves dotted keys including list indices (`"a.values.0"`), returning `default` for missing/`None` values.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Seecr (Seek You Too B.V.)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seecr-stdlib
|
|
3
|
-
Version: 0.6.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.6.6
|
|
4
|
+
Summary: Small Python utilities: attribute-access dicts, JSON configuration, timezone-aware time helpers and date formatting
|
|
5
5
|
Author-email: Thijs Janssen <thijs@seecr.nl>, Johan Jonkers <johan@seecr.nl>
|
|
6
|
-
License-Expression:
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/seecr/seecr-stdlib
|
|
8
8
|
Project-URL: Source, https://github.com/seecr/seecr-stdlib
|
|
9
9
|
Project-URL: Issues, https://github.com/seecr/seecr-stdlib/issues
|
|
10
|
-
Keywords:
|
|
10
|
+
Keywords: utilities,dict,config,json,datetime,timezone,date formatting
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
12
|
Classifier: Programming Language :: Python :: 3
|
|
12
13
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -17,11 +18,12 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
17
18
|
Classifier: Operating System :: OS Independent
|
|
18
19
|
Classifier: Intended Audience :: Developers
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Topic :: Utilities
|
|
20
22
|
Requires-Python: >=3.11
|
|
21
23
|
Description-Content-Type: text/markdown
|
|
22
24
|
License-File: LICENSE
|
|
23
25
|
Requires-Dist: pytest<10,>=9.0.1
|
|
24
|
-
Requires-Dist: python-dateutil<
|
|
26
|
+
Requires-Dist: python-dateutil<4,>=2.9.0
|
|
25
27
|
Dynamic: license-file
|
|
26
28
|
|
|
27
29
|
# Seecr Standard Library
|
|
@@ -129,4 +131,4 @@ Tests live next to the code as `<module>_test.py`.
|
|
|
129
131
|
|
|
130
132
|
Copyright (C) 2025-2026 Seecr (Seek You Too B.V.)
|
|
131
133
|
|
|
132
|
-
Licensed under the [
|
|
134
|
+
Licensed under the [MIT License](https://github.com/seecr/seecr-stdlib/blob/master/LICENSE).
|
|
@@ -103,4 +103,4 @@ Tests live next to the code as `<module>_test.py`.
|
|
|
103
103
|
|
|
104
104
|
Copyright (C) 2025-2026 Seecr (Seek You Too B.V.)
|
|
105
105
|
|
|
106
|
-
Licensed under the [
|
|
106
|
+
Licensed under the [MIT License](https://github.com/seecr/seecr-stdlib/blob/master/LICENSE).
|
|
@@ -8,13 +8,14 @@ authors = [
|
|
|
8
8
|
{name = "Thijs Janssen", email = "thijs@seecr.nl"},
|
|
9
9
|
{name = "Johan Jonkers", email = "johan@seecr.nl"},
|
|
10
10
|
]
|
|
11
|
-
description = "
|
|
11
|
+
description = "Small Python utilities: attribute-access dicts, JSON configuration, timezone-aware time helpers and date formatting"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
requires-python = ">=3.11"
|
|
14
|
-
keywords = ["
|
|
15
|
-
license = "
|
|
14
|
+
keywords = ["utilities", "dict", "config", "json", "datetime", "timezone", "date formatting"]
|
|
15
|
+
license = "MIT"
|
|
16
16
|
license-files = ["LICENSE"]
|
|
17
17
|
classifiers = [
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
18
19
|
"Programming Language :: Python :: 3",
|
|
19
20
|
"Programming Language :: Python :: 3 :: Only",
|
|
20
21
|
"Programming Language :: Python :: 3.11",
|
|
@@ -24,10 +25,11 @@ classifiers = [
|
|
|
24
25
|
"Operating System :: OS Independent",
|
|
25
26
|
"Intended Audience :: Developers",
|
|
26
27
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
28
|
+
"Topic :: Utilities",
|
|
27
29
|
]
|
|
28
30
|
dependencies = [
|
|
29
31
|
"pytest >= 9.0.1, < 10",
|
|
30
|
-
"python-dateutil >= 2.9.0, <
|
|
32
|
+
"python-dateutil >= 2.9.0, < 4"
|
|
31
33
|
]
|
|
32
34
|
dynamic = ["version"]
|
|
33
35
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## begin license ##
|
|
2
|
+
#
|
|
3
|
+
# Seecr StdLib provides convenient tools for Seecr developers
|
|
4
|
+
#
|
|
5
|
+
# Copyright (C) 2025-2026 Seecr (Seek You Too B.V.) https://seecr.nl
|
|
6
|
+
#
|
|
7
|
+
# This file is part of "Seecr Standard Library"
|
|
8
|
+
#
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
11
|
+
#
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
13
|
+
#
|
|
14
|
+
## end license ##
|
|
15
|
+
|
|
16
|
+
from .dict import Dict
|
|
17
|
+
from .first import first
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.6.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 6,
|
|
21
|
+
__version__ = version = '0.6.6'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 6, 6)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'ga8d6b57c1'
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## begin license ##
|
|
2
|
+
#
|
|
3
|
+
# Seecr StdLib provides convenient tools for Seecr developers
|
|
4
|
+
#
|
|
5
|
+
# Copyright (C) 2025-2026 Seecr (Seek You Too B.V.) https://seecr.nl
|
|
6
|
+
#
|
|
7
|
+
# This file is part of "Seecr Standard Library"
|
|
8
|
+
#
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
11
|
+
#
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
13
|
+
#
|
|
14
|
+
## end license ##
|
|
15
|
+
|
|
16
|
+
def first(collection):
|
|
17
|
+
return collection[0] if len(collection) > 0 else None
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
## begin license ##
|
|
2
|
+
#
|
|
3
|
+
# Seecr StdLib provides convenient tools for Seecr developers
|
|
4
|
+
#
|
|
5
|
+
# Copyright (C) 2025-2026 Seecr (Seek You Too B.V.) https://seecr.nl
|
|
6
|
+
#
|
|
7
|
+
# This file is part of "Seecr Standard Library"
|
|
8
|
+
#
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
11
|
+
#
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
13
|
+
#
|
|
14
|
+
## end license ##
|
|
15
|
+
|
|
16
|
+
from .first import first
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def test_first():
|
|
20
|
+
assert first([]) is None
|
|
21
|
+
assert first([1]) == 1
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## begin license ##
|
|
2
|
+
#
|
|
3
|
+
# Seecr StdLib provides convenient tools for Seecr developers
|
|
4
|
+
#
|
|
5
|
+
# Copyright (C) 2026 Seecr (Seek You Too B.V.) https://seecr.nl
|
|
6
|
+
#
|
|
7
|
+
# This file is part of "Seecr Standard Library"
|
|
8
|
+
#
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
11
|
+
#
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
13
|
+
#
|
|
14
|
+
## end license ##
|
|
15
|
+
|
|
16
|
+
from .date import *
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -6,18 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
# This file is part of "Seecr Standard Library"
|
|
8
8
|
#
|
|
9
|
-
# "Seecr Standard Library" is
|
|
10
|
-
#
|
|
11
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
12
|
-
# (at your option) any later version.
|
|
9
|
+
# "Seecr Standard Library" is released under the MIT License.
|
|
10
|
+
# See the LICENSE file for the full license text.
|
|
13
11
|
#
|
|
14
|
-
#
|
|
15
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
-
# GNU General Public License for more details.
|
|
18
|
-
#
|
|
19
|
-
# You should have received a copy of the GNU General Public License
|
|
20
|
-
# along with "Seecr Standard Library". If not, see <http://www.gnu.org/licenses/>.
|
|
12
|
+
# SPDX-License-Identifier: MIT
|
|
21
13
|
#
|
|
22
14
|
## end license ##
|
|
23
15
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seecr-stdlib
|
|
3
|
-
Version: 0.6.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.6.6
|
|
4
|
+
Summary: Small Python utilities: attribute-access dicts, JSON configuration, timezone-aware time helpers and date formatting
|
|
5
5
|
Author-email: Thijs Janssen <thijs@seecr.nl>, Johan Jonkers <johan@seecr.nl>
|
|
6
|
-
License-Expression:
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/seecr/seecr-stdlib
|
|
8
8
|
Project-URL: Source, https://github.com/seecr/seecr-stdlib
|
|
9
9
|
Project-URL: Issues, https://github.com/seecr/seecr-stdlib/issues
|
|
10
|
-
Keywords:
|
|
10
|
+
Keywords: utilities,dict,config,json,datetime,timezone,date formatting
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
12
|
Classifier: Programming Language :: Python :: 3
|
|
12
13
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -17,11 +18,12 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
17
18
|
Classifier: Operating System :: OS Independent
|
|
18
19
|
Classifier: Intended Audience :: Developers
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Topic :: Utilities
|
|
20
22
|
Requires-Python: >=3.11
|
|
21
23
|
Description-Content-Type: text/markdown
|
|
22
24
|
License-File: LICENSE
|
|
23
25
|
Requires-Dist: pytest<10,>=9.0.1
|
|
24
|
-
Requires-Dist: python-dateutil<
|
|
26
|
+
Requires-Dist: python-dateutil<4,>=2.9.0
|
|
25
27
|
Dynamic: license-file
|
|
26
28
|
|
|
27
29
|
# Seecr Standard Library
|
|
@@ -129,4 +131,4 @@ Tests live next to the code as `<module>_test.py`.
|
|
|
129
131
|
|
|
130
132
|
Copyright (C) 2025-2026 Seecr (Seek You Too B.V.)
|
|
131
133
|
|
|
132
|
-
Licensed under the [
|
|
134
|
+
Licensed under the [MIT License](https://github.com/seecr/seecr-stdlib/blob/master/LICENSE).
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: Publish to PyPI
|
|
2
|
-
|
|
3
|
-
# Publishes when a MAJOR.MINOR.PATCH tag (e.g. 0.6.4) is pushed. The tag
|
|
4
|
-
# becomes the package version via setuptools_scm.
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
tags: ["[0-9]+.[0-9]+.[0-9]+"]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v5
|
|
14
|
-
with:
|
|
15
|
-
fetch-depth: 0
|
|
16
|
-
- uses: actions/setup-python@v6
|
|
17
|
-
with:
|
|
18
|
-
python-version: "3.13"
|
|
19
|
-
- run: pip install build
|
|
20
|
-
- run: python -m build
|
|
21
|
-
- uses: actions/upload-artifact@v4
|
|
22
|
-
with:
|
|
23
|
-
name: dist
|
|
24
|
-
path: dist/
|
|
25
|
-
|
|
26
|
-
publish:
|
|
27
|
-
needs: build
|
|
28
|
-
runs-on: ubuntu-latest
|
|
29
|
-
environment:
|
|
30
|
-
name: pypi
|
|
31
|
-
url: https://pypi.org/project/seecr-stdlib/
|
|
32
|
-
permissions:
|
|
33
|
-
id-token: write # PyPI trusted publishing, no API token needed
|
|
34
|
-
steps:
|
|
35
|
-
- uses: actions/download-artifact@v4
|
|
36
|
-
with:
|
|
37
|
-
name: dist
|
|
38
|
-
path: dist/
|
|
39
|
-
- uses: pypa/gh-action-pypi-publish@release/v1
|