absolute-import
About
Package providing a one-line functionality to set up a project for ability to perform absolute imports both after setup and with plain download. Additionally, provides namespaces support.
Usage
Absolute import
-
In the root
__init__.py.from absolute_import import absolute_import absolute_import(file=__file__)
-
In the root
__main__.pyor root directly executable python files.from absolute_import import absolute_import if __name__ == "__main__": absolute_import(file=__file__)
Absolute import and namespace
-
In the root
__init__.py.from absolute_import import absolute_import absolute_import(file=__file__, name=__name__, path=__path__)
-
In the root
__main__.pyor root directly executable python files.from absolute_import import absolute_import if __name__ == "__main__": absolute_import(file=__file__, name=__name__, path=__path__)
Metadata
Release files for absolute-import 0.4
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 | |
|---|---|---|---|---|
| absolute-import-0.4.tar.gz | 2.6 kB | Without provenance | Details |
Release files / absolute-import-0.4.tar.gz
| Download URL | absolute-import-0.4.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae52cd81cbd7f3bb2fafc8ae54e44e249e7e4d1d37748f27f4f23aacfc31757b
|
|
BLAKE2b-256 checksum How to use checksums |
b9bccaf8604ae6ceedd25dc33aa75ba2ef3c3cf407e4593d06bf6db58b4c2897
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Security for absolute-import 0.4
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.