Catalog PyPI
PACKAGE EXPLORERView in registry

absolute-import

PyPI

A package to automate setting up absolute imports and namespace.

Versions collected1
Direct dependencies0From release 0.4
Last observed20 Oct, 17:37 UTC

README

Version 0.4 documentation

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

  1. In the root __init__.py.

    from absolute_import import absolute_import
    
    absolute_import(file=__file__)
    
  2. In the root __main__.py or root directly executable python files.

    from absolute_import import absolute_import
    
    if __name__ == "__main__":
    	absolute_import(file=__file__)
    

Absolute import and namespace

  1. In the root __init__.py.

    from absolute_import import absolute_import
    
    absolute_import(file=__file__, name=__name__, path=__path__)
    
  2. In the root __main__.py or root directly executable python files.

    from absolute_import import absolute_import
    
    if __name__ == "__main__":
    	absolute_import(file=__file__, name=__name__, path=__path__)
    

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.423 Feb 20200

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
cpuabuse/absolute-import

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f5e99eeb83d79f0658469fd504c94d84b7a13f8b81dd5576d1f3891bea7a1633