PyDIO 0.5.0__tar.gz → 0.5.1__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.
- pydio-0.5.1/.readthedocs.yaml +24 -0
- {pydio-0.5.0 → pydio-0.5.1}/CHANGELOG.md +6 -0
- {pydio-0.5.0 → pydio-0.5.1}/PKG-INFO +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/changelog.rst +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/conf.py +2 -2
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/index.rst +12 -12
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/installation.rst +5 -5
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/license.rst +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/quickstart.rst +5 -5
- pydio-0.5.1/docs/source/requirements.txt +4 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/__init__.py +2 -2
- {pydio-0.5.0 → pydio-0.5.1}/pydio/_compat.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/pydio/_factories.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/pydio/_unbound_factories.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/pydio/api.py +2 -2
- {pydio-0.5.0 → pydio-0.5.1}/pydio/base.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/pydio/exc.py +3 -3
- {pydio-0.5.0 → pydio-0.5.1}/pydio/injector.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/pydio/keys.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/pydio/provider.py +2 -2
- {pydio-0.5.0 → pydio-0.5.1}/pyproject.toml +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/scripts/licenser/licenser.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/scripts/tag.py +2 -2
- {pydio-0.5.0 → pydio-0.5.1}/tests/__init__.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/examples/__init__.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/examples/test_database_session_management.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/__init__.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/conftest.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_async_generator_based_provider.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_basics.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_coroutine_based_provider.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_generator_based_provider.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_provider_grouping.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_provider_with_env.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_scoped_injector.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_using_multiple_threads.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/functional/test_using_variant.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/stubs.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/unit/__init__.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/unit/test_factories.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/unit/test_injector.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/unit/test_keys.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/tests/unit/test_provider.py +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/uv.lock +1 -1
- {pydio-0.5.0 → pydio-0.5.1}/.bumpify.toml +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/.circleci/config.yml +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/.gitignore +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/LICENSE.txt +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/README.md +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/index.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/api.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/base.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/exc.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/injector.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/keys.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/provider.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/api.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/async_backends/asyncio.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/async_backends.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/exc.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/helpers.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/injectors.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/interface.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1/providers.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/docs/source/api/pydio/v1.rst +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/invoke.yml +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_adapters.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_compat/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_compat/default.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_compat/py313.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_export_list.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_factories.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/_utils.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/api.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/async_backends/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/async_backends/asyncio.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/exc.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/helpers.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/injectors.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/interface.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/pydio/v1/providers.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/scripts/licenser/templates/license.txt +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/scripts/licenser/templates/preamble.py.txt +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/scripts/licenser/templates/preamble.rst.txt +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tasks.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/conftest.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/conftest.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_async_dependency_resolving.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_async_error_handling.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_dependency_resolving.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_error_handling.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_multitask_safety.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_multithread_safety.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_using_annotated.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_using_multiple_environments.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_using_multiple_providers.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/test_using_scopes.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/functional/types.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/async_backends/__init__.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/async_backends/test_asyncio.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/conftest.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/stubs.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_adapters.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_exc.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_export_list.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_factories.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_helpers.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_injectors.py +0 -0
- {pydio-0.5.0 → pydio-0.5.1}/tests/v1/unit/test_providers.py +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# .readthedocs.yaml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
build:
|
|
8
|
+
os: ubuntu-24.04
|
|
9
|
+
tools:
|
|
10
|
+
python: "3.9"
|
|
11
|
+
|
|
12
|
+
sphinx:
|
|
13
|
+
configuration: docs/source/conf.py
|
|
14
|
+
|
|
15
|
+
formats:
|
|
16
|
+
- pdf
|
|
17
|
+
- epub
|
|
18
|
+
|
|
19
|
+
# Optional but recommended, declare the Python requirements required
|
|
20
|
+
# to build your documentation
|
|
21
|
+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
|
|
22
|
+
python:
|
|
23
|
+
install:
|
|
24
|
+
- requirements: docs/source/requirements.txt
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyDIO
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Lightweight and functional dependency injection library for Python
|
|
5
5
|
Project-URL: Homepage, https://github.com/mwiatrzyk/pydio
|
|
6
6
|
Project-URL: Repository, https://github.com/mwiatrzyk/pydio
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
..
|
|
4
4
|
.. Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
..
|
|
6
|
-
.. This file is part of
|
|
6
|
+
.. This file is part of PyDIO library documentation
|
|
7
7
|
.. and is released under the terms of the MIT license:
|
|
8
8
|
.. http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
..
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -28,7 +28,7 @@ import pydio # noqa
|
|
|
28
28
|
|
|
29
29
|
# -- Project information -----------------------------------------------------
|
|
30
30
|
|
|
31
|
-
project = "
|
|
31
|
+
project = "PyDIO"
|
|
32
32
|
copyright = "{}, {}".format(pydio.__released__, pydio.__author__)
|
|
33
33
|
author = pydio.__author__
|
|
34
34
|
|
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
..
|
|
4
4
|
.. Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
..
|
|
6
|
-
.. This file is part of
|
|
6
|
+
.. This file is part of PyDIO library documentation
|
|
7
7
|
.. and is released under the terms of the MIT license:
|
|
8
8
|
.. http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
..
|
|
10
10
|
.. See LICENSE.txt for details.
|
|
11
11
|
.. ----------------------------------------------------------------------------
|
|
12
12
|
|
|
13
|
-
Welcome to
|
|
13
|
+
Welcome to PyDIO's documentation!
|
|
14
14
|
=================================
|
|
15
15
|
|
|
16
|
-
.. image:: https://img.shields.io/pypi/v/
|
|
17
|
-
:target: https://pypi.org/project/
|
|
18
|
-
.. image:: https://img.shields.io/pypi/l/
|
|
19
|
-
:target: https://pypi.org/project/
|
|
20
|
-
.. image:: https://img.shields.io/pypi/dm/
|
|
21
|
-
:target: https://pypi.org/project/
|
|
16
|
+
.. image:: https://img.shields.io/pypi/v/PyDIO
|
|
17
|
+
:target: https://pypi.org/project/PyDIO/
|
|
18
|
+
.. image:: https://img.shields.io/pypi/l/PyDIO
|
|
19
|
+
:target: https://pypi.org/project/PyDIO/
|
|
20
|
+
.. image:: https://img.shields.io/pypi/dm/PyDIO
|
|
21
|
+
:target: https://pypi.org/project/PyDIO/
|
|
22
22
|
.. image:: https://codecov.io/gh/mwiatrzyk/pydio/branch/master/graph/badge.svg?token=Y6DJDSOR6M
|
|
23
23
|
:target: https://codecov.io/gh/mwiatrzyk/pydio
|
|
24
24
|
|
|
25
|
-
About
|
|
25
|
+
About PyDIO
|
|
26
26
|
-----------
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
PyDIO is a dependency injection library for Python.
|
|
29
29
|
|
|
30
30
|
It aims to be simple, yet still powerful, allowing you to feed dependencies
|
|
31
|
-
inside your application in a flexible way.
|
|
31
|
+
inside your application in a flexible way. PyDIO design is based on simple
|
|
32
32
|
assumption, that dependency injection can be achieved using simple
|
|
33
33
|
**key-to-function** map, where **key** specifies **type of object** you want
|
|
34
34
|
to inject and **function** is a **factory** function that creates
|
|
35
35
|
**instances** of that type.
|
|
36
36
|
|
|
37
|
-
In
|
|
37
|
+
In PyDIO, this is implemented using **providers** and **injectors**. You use
|
|
38
38
|
providers to configure your **key-to-function** mapping, and then you use
|
|
39
39
|
injectors to perform a **lookup** of a specific key and creation of the final
|
|
40
40
|
object.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
..
|
|
4
4
|
.. Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
..
|
|
6
|
-
.. This file is part of
|
|
6
|
+
.. This file is part of PyDIO library documentation
|
|
7
7
|
.. and is released under the terms of the MIT license:
|
|
8
8
|
.. http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
..
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
Installation
|
|
14
14
|
============
|
|
15
15
|
|
|
16
|
-
You can install
|
|
16
|
+
You can install PyDIO using one of following methods:
|
|
17
17
|
|
|
18
18
|
1) From PyPI (for stable releases)::
|
|
19
19
|
|
|
20
|
-
$ pip install
|
|
20
|
+
$ pip install PyDIO
|
|
21
21
|
|
|
22
22
|
2) From test PyPI (for stable and development releases)::
|
|
23
23
|
|
|
24
|
-
$ pip install -i https://test.pypi.org/simple/
|
|
24
|
+
$ pip install -i https://test.pypi.org/simple/ PyDIO
|
|
25
25
|
|
|
26
26
|
3) Directly from source code repository (for all releases)::
|
|
27
27
|
|
|
28
|
-
$ pip install git+https://gitlab.com/zef1r/
|
|
28
|
+
$ pip install git+https://gitlab.com/zef1r/PyDIO.git@[branch-or-tag]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
..
|
|
4
4
|
.. Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
..
|
|
6
|
-
.. This file is part of
|
|
6
|
+
.. This file is part of PyDIO library documentation
|
|
7
7
|
.. and is released under the terms of the MIT license:
|
|
8
8
|
.. http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
..
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
..
|
|
4
4
|
.. Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
..
|
|
6
|
-
.. This file is part of
|
|
6
|
+
.. This file is part of PyDIO library documentation
|
|
7
7
|
.. and is released under the terms of the MIT license:
|
|
8
8
|
.. http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
..
|
|
@@ -324,7 +324,7 @@ Introducing providers
|
|
|
324
324
|
|
|
325
325
|
As you can see, when implementing additional storages, our business logic was
|
|
326
326
|
not affected at all, however configuration part of our application was
|
|
327
|
-
getting more complicated. Now let's do some refactoring with
|
|
327
|
+
getting more complicated. Now let's do some refactoring with PyDIO.
|
|
328
328
|
|
|
329
329
|
First, we need to create **providers**. Providers are used to wrap
|
|
330
330
|
user-defined factory functions and give it a key that can be referenced
|
|
@@ -354,7 +354,7 @@ to anything you like. The only requirement is to use same name later.
|
|
|
354
354
|
Introducing injectors
|
|
355
355
|
---------------------
|
|
356
356
|
|
|
357
|
-
Now let me introduce second element of
|
|
357
|
+
Now let me introduce second element of PyDIO library - the **injector**.
|
|
358
358
|
Here's our TODO application from earlier example refactored to use injector:
|
|
359
359
|
|
|
360
360
|
.. testcode::
|
|
@@ -562,7 +562,7 @@ have to call it (the constructor) again for every method call - otherwise we
|
|
|
562
562
|
would start sharing our objects between API calls, and that may not be
|
|
563
563
|
expected behavior.
|
|
564
564
|
|
|
565
|
-
To solve this issue,
|
|
565
|
+
To solve this issue, PyDIO provides **scopes**. Scopes are implemented by
|
|
566
566
|
creating new injector from given one, and giving the new one access to
|
|
567
567
|
user-defined scope, plus its ancestors. Such created injectors can have
|
|
568
568
|
shorter lifetime than the root one.
|
|
@@ -685,7 +685,7 @@ Using generator-based object factories
|
|
|
685
685
|
We are still missing one important thing in our application - database
|
|
686
686
|
sessions. Of course, that is not needed for a in-memory storage, but
|
|
687
687
|
definitely will have to be used for SQL-based storage. And the session scope
|
|
688
|
-
should be limited only to actions. How to do that using
|
|
688
|
+
should be limited only to actions. How to do that using PyDIO? Here's a
|
|
689
689
|
solution:
|
|
690
690
|
|
|
691
691
|
.. testcode::
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2026 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
10
10
|
# ---------------------------------------------------------------------------
|
|
11
11
|
__released__ = 2021
|
|
12
12
|
__author__ = "Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>"
|
|
13
|
-
__version__ = "0.5.
|
|
13
|
+
__version__ = "0.5.1"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"""An all-in-one module for making imports easier.
|
|
12
12
|
|
|
13
13
|
You can use this in your code to create one-line imports. For example,
|
|
14
|
-
instead of adding multiple
|
|
14
|
+
instead of adding multiple PyDIO imports to your application, you can do
|
|
15
15
|
this instead:
|
|
16
16
|
|
|
17
17
|
.. testcode::
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
10
10
|
# ---------------------------------------------------------------------------
|
|
11
|
-
"""Base exception classes for
|
|
11
|
+
"""Base exception classes for PyDIO."""
|
|
12
12
|
|
|
13
13
|
import abc
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class Base(Exception, abc.ABC):
|
|
17
|
-
"""Common base class for all
|
|
17
|
+
"""Common base class for all PyDIO exceptions.
|
|
18
18
|
|
|
19
19
|
You can use this class to catch all exceptions that this library may
|
|
20
20
|
raise.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -93,7 +93,7 @@ class Provider(IUnboundFactoryRegistry):
|
|
|
93
93
|
objects.
|
|
94
94
|
|
|
95
95
|
If your application has some global configuration data you want to
|
|
96
|
-
inject using
|
|
96
|
+
inject using PyDIO - that's the method you should use.
|
|
97
97
|
"""
|
|
98
98
|
with self._lock:
|
|
99
99
|
self._check_key_availability(key, env)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
6
6
|
#
|
|
7
|
-
# This file is part of
|
|
7
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
8
8
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
#
|
|
10
10
|
# See LICENSE.txt for details.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
6
6
|
#
|
|
7
|
-
# This file is part of
|
|
7
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
8
8
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
9
9
|
#
|
|
10
10
|
# See LICENSE.txt for details.
|
|
@@ -173,7 +173,7 @@ def check(args):
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
def parse_args(argv):
|
|
176
|
-
parser = argparse.ArgumentParser(description="A tool for updating tag info in
|
|
176
|
+
parser = argparse.ArgumentParser(description="A tool for updating tag info in PyDIO")
|
|
177
177
|
parser.add_argument("tag_or_version", metavar="TAG_OR_VERSION", help="tag name or version string")
|
|
178
178
|
parser.add_argument(
|
|
179
179
|
"-c",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# Copyright (C) 2021 - 2025 Maciej Wiatrzyk <maciej.wiatrzyk@gmail.com>
|
|
5
5
|
#
|
|
6
|
-
# This file is part of
|
|
6
|
+
# This file is part of PyDIO library and is released under the terms of the
|
|
7
7
|
# MIT license: http://opensource.org/licenses/mit-license.php.
|
|
8
8
|
#
|
|
9
9
|
# See LICENSE.txt for details.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|