{"id":19557852,"url":"https://github.com/jbangdev/jbang-python","last_synced_at":"2025-07-31T17:09:23.260Z","repository":{"id":194037024,"uuid":"689061477","full_name":"jbangdev/jbang-python","owner":"jbangdev","description":"JBang for Python","archived":false,"fork":false,"pushed_at":"2025-07-28T14:09:02.000Z","size":536,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T16:09:59.911Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbangdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-08T17:49:44.000Z","updated_at":"2025-07-01T00:22:20.000Z","dependencies_parsed_at":"2025-04-19T05:21:22.343Z","dependency_job_id":"5af24204-cb95-4c48-81fb-a82133d3c32d","html_url":"https://github.com/jbangdev/jbang-python","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.46153846153846156","last_synced_commit":"c2156e153b325f71afde07f5278005639fe4b3bd"},"previous_names":["jbangdev/jbang-python"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/jbangdev/jbang-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbangdev","download_url":"https://codeload.github.com/jbangdev/jbang-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267803743,"owners_count":24146520,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T04:44:14.857Z","updated_at":"2025-07-31T17:09:23.243Z","avatar_url":"https://github.com/jbangdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jbang-python - Java Script in your Python\n\nInstall and use [JBang](https://www.jbang.dev) from Python-based projects.\n\n![](https://github.com/jbangdev/jbang-python/blob/main/python_jbang.png?raw=true)\n\nLets you use your own local scripts, [JBang AppStore](https://jbang.dev/appstore) alias or any network reachable jar or Maven artifact.\n\n## Usage\n\nYou can run the package in two ways:\n\n### 1. Using the console script\n\nAfter installation, you can use the `jbang-python` command:\n\n```bash\njbang-python properties@jbangdev\n```\n\n### 2. Using Python's module runner\n\nYou can also run the package directly using Python's module runner:\n\n```bash\npython -m jbang properties@jbangdev\n```\n\nOr with `uvx`:\n\n```bash\nuvx run -m jbang properties@jbangdev\n```\n\n### Command-line Arguments\n\nYou can easily pass command-line arguments around:\n\n```python\nimport sys\nargs = ' '.join(sys.argv[1:])\njbang.exec('com.myco.mylib:RELEASE ' + args)\n```\n\nSo now if you run `python test.py arg1 arg2`, `arg1 arg2` will be appended to the command executed.\n\n## Behind the scenes\n\nWhen you run `pip install` - JBang and other dependencies will be installed. This uses the [`app setup`](https://www.jbang.dev/documentation/guide/latest/installation.html#using-jbang) command.\n\nOpening a new terminal or shell may be required to be able to use the `jbang` command from the system `PATH`.\n\n## Improvements ?\n\nThis was made as a quick hack to see if it was possible to use JBang from Python based on jbang-npm. If you have any ideas on how to improve this, please open an issue or PR and lets see where this brings us.\n\n## Similar projects\n\n* [jgo](https://pypi.org/project/jgo/) - allows execution of Maven artifacts by using Maven.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbangdev%2Fjbang-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-python/lists"}