{"id":18605310,"url":"https://github.com/fny/thesmuggler","last_synced_at":"2025-04-10T20:30:59.939Z","repository":{"id":57475119,"uuid":"106597919","full_name":"fny/thesmuggler","owner":"fny","description":"Sidestep import and load Python files as relative paths","archived":false,"fork":false,"pushed_at":"2023-11-20T15:48:42.000Z","size":6,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:51:13.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fny.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-11T19:10:06.000Z","updated_at":"2021-05-17T16:22:18.000Z","dependencies_parsed_at":"2022-09-10T02:23:27.575Z","dependency_job_id":null,"html_url":"https://github.com/fny/thesmuggler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fthesmuggler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fthesmuggler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fthesmuggler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fthesmuggler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fny","download_url":"https://codeload.github.com/fny/thesmuggler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290019,"owners_count":21078923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T02:20:49.591Z","updated_at":"2025-04-10T20:30:59.677Z","avatar_url":"https://github.com/fny.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"The Smuggler 🚬\n===============\n\n.. image:: https://travis-ci.org/fny/thesmuggler.svg?branch=master\n   :target: https://travis-ci.org/fny/thesmuggler\n   :alt: Build Status\n\n.. image:: https://badge.fury.io/py/thesmuggler.svg\n   :target: https://pypi.python.org/pypi/thesmuggler\n   :alt: Smuggler on PyPI\n\nSidestep :code:`import` and load Python files as relative paths.\n\nIntended for one-off imports (e.g. global configuration). Currently, :code:`thesmuggler` can't import files that import other local packages, but you can :code:`smuggle` files that\nhave already smuggled other files.\n\nTested and working on Python 2.7 and up.\n\nUsage\n-----\n\n:code:`pip install thesmuggler`, then:\n\n.. code:: python\n\n    from thesmuggler import smuggle\n\n    # À la `import weapons`\n    weapons = smuggle('weapons.py')\n\n    # À la `from contraband import drugs, alcohol`\n    drugs, alcohol = smuggle('drugs', 'alcohol', source='contraband.py')\n\n    # À la `from contraband import drugs as dope, alcohol as booze`\n    dope, booze = smuggle('drugs', 'alcohol', source='contraband.py')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fthesmuggler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffny%2Fthesmuggler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fthesmuggler/lists"}