Anydi

Latest version: v0.39.3

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 16

0.35.0

New Features
* Add container `.create` / `.acreate` methods in https://github.com/antonrh/anydi/pull/139

python
dataclass
class Service:
name: str

container = Container()

service = container.create(Service, name="test")


Breaking Changes
* Positional-only provider arguments are no longer allowed

python
container.provider(scope="singleton")
def service(repo: Repo, /, client: Client) -> Service:
...


NB! This will raise an error when trying to register it.

**Full Changelog**: https://github.com/antonrh/anydi/compare/0.34.1...0.35.0

0.34.1

What's Changed
* Re-structure container by antonrh in https://github.com/antonrh/anydi/pull/136


**Full Changelog**: https://github.com/antonrh/anydi/compare/0.34.0...0.34.1

0.34.0

What's Changed
* Thread / coro safe singletons by antonrh in https://github.com/antonrh/anydi/pull/137


**Full Changelog**: https://github.com/antonrh/anydi/compare/0.33.1...0.34.0

0.33.1

What's Changed
* Improve container testing mode by antonrh in https://github.com/antonrh/anydi/pull/135


**Full Changelog**: https://github.com/antonrh/anydi/compare/0.33.0...0.33.1

0.33.0

New Features
* Fallback to defaults in non-strict mode by antonrh in https://github.com/antonrh/anydi/pull/131
python
from dataclasses import dataclass
from typing import Annotated

from anydi import Container


dataclass
class Service:
prop: Annotated[str, "config.prop"] = "value"


container = Container(strict=False)

service = container.resolve(Service)

print(service.prop) prints "value"

* Introduce `testing` flag by antonrh in https://github.com/antonrh/anydi/pull/130


Bug Fixes
* Fix caching for inject calls by antonrh in https://github.com/antonrh/anydi/pull/133


**Full Changelog**: https://github.com/antonrh/anydi/compare/0.32.2...0.33.0

0.32.2

What's Changed
* Add scope validation by antonrh in https://github.com/antonrh/anydi/pull/125


**Full Changelog**: https://github.com/antonrh/anydi/compare/0.32.1...0.32.2

Page 3 of 16

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.