import_string


Nameimport_string JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/rochacbruno/import_string
SummaryImports an object based on a string
upload_time2016-06-30 16:46:21
maintainerNone
docs_urlNone
authorBruno Rocha
requires_pythonNone
licenseISC license
keywords import_string
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            =============
import_string
=============


.. image:: https://img.shields.io/pypi/v/import_string.svg
        :target: https://pypi.python.org/pypi/import_string

.. image:: https://img.shields.io/travis/rochacbruno/import_string.svg
        :target: https://travis-ci.org/rochacbruno/import_string

.. image:: https://readthedocs.org/projects/import-string/badge/?version=latest
        :target: https://import-string.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://pyup.io/repos/github/rochacbruno/import_string/shield.svg
     :target: https://pyup.io/repos/github/rochacbruno/import_string/
     :alt: Updates


Imports an object based on a string


* Free software: ISC license
* Documentation: https://import-string.readthedocs.io.


Features
--------

Imports an object based on a string.  This is useful if you want to
use import paths as endpoints or something similar.  An import path can
be specified either in dotted notation (``.``)
or with a colon as object delimiter (``:``).
If `silent` is True the return value will be `None` if the import fails.

Usage
-----

.. code-block:: python

    import import_string

    module = import_string('my_system.my_package.my_module')

    function = import_string('my_system.my_module:some_function')

    Class = import_string('my_system.my_module:SomeClass', silent=True)
    # If path doesn't exist Class = None


Credits
-------

- This package was extracted from `werkzeug.utils` module
- This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage



=======
History
=======

0.1.0 (2016-06-30)
------------------

* First release on PyPI.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rochacbruno/import_string",
    "name": "import_string",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "import_string",
    "author": "Bruno Rocha",
    "author_email": "rochacbruno@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/37/a6/96d706f61fb06b85d2ba2292ff1f18c9cf3f8eefaf68dbed219c9eb07c3c/import_string-0.1.0.tar.gz",
    "platform": "UNKNOWN",
    "description": "=============\nimport_string\n=============\n\n\n.. image:: https://img.shields.io/pypi/v/import_string.svg\n        :target: https://pypi.python.org/pypi/import_string\n\n.. image:: https://img.shields.io/travis/rochacbruno/import_string.svg\n        :target: https://travis-ci.org/rochacbruno/import_string\n\n.. image:: https://readthedocs.org/projects/import-string/badge/?version=latest\n        :target: https://import-string.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/rochacbruno/import_string/shield.svg\n     :target: https://pyup.io/repos/github/rochacbruno/import_string/\n     :alt: Updates\n\n\nImports an object based on a string\n\n\n* Free software: ISC license\n* Documentation: https://import-string.readthedocs.io.\n\n\nFeatures\n--------\n\nImports an object based on a string.  This is useful if you want to\nuse import paths as endpoints or something similar.  An import path can\nbe specified either in dotted notation (``.``)\nor with a colon as object delimiter (``:``).\nIf `silent` is True the return value will be `None` if the import fails.\n\nUsage\n-----\n\n.. code-block:: python\n\n    import import_string\n\n    module = import_string('my_system.my_package.my_module')\n\n    function = import_string('my_system.my_module:some_function')\n\n    Class = import_string('my_system.my_module:SomeClass', silent=True)\n    # If path doesn't exist Class = None\n\n\nCredits\n-------\n\n- This package was extracted from `werkzeug.utils` module\n- This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n\n=======\nHistory\n=======\n\n0.1.0 (2016-06-30)\n------------------\n\n* First release on PyPI.",
    "bugtrack_url": null,
    "license": "ISC license",
    "summary": "Imports an object based on a string",
    "version": "0.1.0",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/rochacbruno/import_string"
    },
    "split_keywords": [
        "import_string"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e69cf9315d0905ab9146212c9a3ab1ae9ae25f893606397e2533f6adee8232f",
                "md5": "3c69fb3e977e238a99761324f577f56a",
                "sha256": "5fc47d00bd324e7ea8da97248b57799c59da5d097085178073030b839897d5e5"
            },
            "downloads": -1,
            "filename": "import_string-0.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3c69fb3e977e238a99761324f577f56a",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 5452,
            "upload_time": "2016-06-30T16:46:26",
            "upload_time_iso_8601": "2016-06-30T16:46:26.372536Z",
            "url": "https://files.pythonhosted.org/packages/0e/69/cf9315d0905ab9146212c9a3ab1ae9ae25f893606397e2533f6adee8232f/import_string-0.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37a696d706f61fb06b85d2ba2292ff1f18c9cf3f8eefaf68dbed219c9eb07c3c",
                "md5": "377b22d04267613d60a869662117569e",
                "sha256": "67528219c433ee6037944e52482989770333b4b02f380a44c5560c09f8bc3a61"
            },
            "downloads": -1,
            "filename": "import_string-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "377b22d04267613d60a869662117569e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22334,
            "upload_time": "2016-06-30T16:46:21",
            "upload_time_iso_8601": "2016-06-30T16:46:21.419489Z",
            "url": "https://files.pythonhosted.org/packages/37/a6/96d706f61fb06b85d2ba2292ff1f18c9cf3f8eefaf68dbed219c9eb07c3c/import_string-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2016-06-30 16:46:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rochacbruno",
    "github_project": "import_string",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "import_string"
}
        
Elapsed time: 0.25659s