Skip to main content

Resolution of dotted names

The zope.dottedname.resolve module provides a function for resolving dotted names. Dotted names are resolved by importing modules and by getting attributes from imported modules. Names with leading dots are relative.

To illustrate, we’ll use the dotted name resolver to access objects in the os module:

>>> from zope.dottedname.resolve import resolve
>>> resolve('os.path.split').__name__
'split'

Here, we used an absolute name. We can also using a relative name:

>>> resolve('.split').__name__
Traceback (most recent call last):
...
ValueError: relative name without base module

But we need to provide the module the name is relative to:

>>> resolve('.split', 'os.path').__name__
'split'

>>> resolve('..system', 'os.path').__name__
'system'

>>> resolve('...datetime', 'os.path').__name__
'datetime'

Metadata

Release files for zope.dottedname 3.4.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 zope.dottedname 3.4.0
File Size Uploaded Provenance Actions
zope.dottedname-3.4.0.tar.gz 3.3 kB Without provenance Details for zope.dottedname-3.4.0.tar.gz

Release files / zope.dottedname-3.4.0.tar.gz

Download URL zope.dottedname-3.4.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3a34b0a64cafb476daf5b21057bc6252f89c57214d3842ce176643a7edcea2e5
BLAKE2b-256 checksum
How to use checksums
32c832a46cb44ddf1275e9ae7b31f58870038ed6ec5550dc13abbabaec581a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for zope.dottedname 3.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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