Dotted Name Resolution
Overview
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.
Detailed Documentation———————-
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'
CHANGES
3.4.1 (2007-10-02)
Updated package meta-data.
3.4.0 (2007-07-19)
Initial Zope-independent release.
Metadata
Release files for zope.dottedname 3.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zope.dottedname-3.4.2.tar.gz | 3.9 kB | Without provenance | Details for zope.dottedname-3.4.2.tar.gz |
Release files / zope.dottedname-3.4.2.tar.gz
| Download URL | zope.dottedname-3.4.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f8576aa756f21a788c6f308de01d940e5b180da4f3e1932d8b13ab29ad2be34
|
|
BLAKE2b-256 checksum How to use checksums |
76bd4b7f2ad39f0d2f91838a834db7177724d45371ee93600459e97ee58b1e9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zope.dottedname 3.4.2
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.