{"id":17787923,"url":"https://github.com/zmievsa/impexpr","last_synced_at":"2025-04-02T00:27:13.775Z","repository":{"id":57680706,"uuid":"495628088","full_name":"zmievsa/impexpr","owner":"zmievsa","description":"A simple superset of Python with import expressions added in","archived":false,"fork":false,"pushed_at":"2023-10-28T15:22:02.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T11:03:43.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zmievsa.png","metadata":{"files":{"readme":"README.md","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,"governance":null}},"created_at":"2022-05-24T01:27:02.000Z","updated_at":"2023-07-21T20:43:51.000Z","dependencies_parsed_at":"2023-11-19T00:42:57.038Z","dependency_job_id":"0b3e9a32-db7c-4961-9d73-800c9a29041d","html_url":"https://github.com/zmievsa/impexpr","commit_stats":null,"previous_names":["zmievsa/impexpr","ovsyanka83/impexpr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fimpexpr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fimpexpr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fimpexpr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fimpexpr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmievsa","download_url":"https://codeload.github.com/zmievsa/impexpr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246732687,"owners_count":20824793,"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-10-27T10:13:22.291Z","updated_at":"2025-04-02T00:27:13.756Z","avatar_url":"https://github.com/zmievsa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Impexpr\n\nA simple superset of Python with import expressions added in. Beware: This project has only been made as a proof of concept and is not intended to ever be used in production.\n\n## Installation\n\n```bash\npip install impexpr\n```\n\n## Quickstart\n\n`impexpr` alias can be used in the same way as `python` alias, a few examples:\n\n* To run an interactive REPL with import expression support, run `impexpr`\n* To run a script, run `impexpr script.py` (all imported modules will also support import expressions)\n* To import itertools and use it in the same line:\n\n```python\nfor x in (import itertools).chain([1, 2], [3, 4], [5, 6]):\n    print(x)\n```\n\n* To get help about collections.deque:\n\n```python\nhelp((import collections).deque)\n```\n\n* If your script must run with python alias but you want to enable import expression support in all imported modules (not in the main script!), you can use:\n\n```python\nimport impexpr\nimpexpr.add_hook()\n# this will now support import expressions\nimport my_other_script\n```\n\n* For everything else, run `impexpr --help`\n\n## FAQ\n\n* Relative imports not supported yet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmievsa%2Fimpexpr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmievsa%2Fimpexpr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmievsa%2Fimpexpr/lists"}