https://github.com/erwinjanssen/dymport.py
Dynamically import (abitrary names from) arbitrary files in Python.
https://github.com/erwinjanssen/dymport.py
dynamic-import python python2 python3
Last synced: 8 months ago
JSON representation
Dynamically import (abitrary names from) arbitrary files in Python.
- Host: GitHub
- URL: https://github.com/erwinjanssen/dymport.py
- Owner: ErwinJanssen
- License: mit
- Created: 2017-04-12T10:23:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T15:26:22.000Z (about 5 years ago)
- Last Synced: 2025-02-16T19:15:55.002Z (about 1 year ago)
- Topics: dynamic-import, python, python2, python3
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Dynamic import
==============
Sometimes you want to import some Python file by it's path only. This might
be a dynamically generated path, placing a __init__ in the directory might
not be an option. Maybe you are building some kind of plugin system, or want
to inject a dependency?
Dymport got you covered, it provides several function to import a file by path,
or import specific names from that file. It works on all major Python version,
providing a uniform interface for dynamically import arbitrary Python files.