{"id":17036144,"url":"https://github.com/kormanowsky/python_js_function","last_synced_at":"2025-03-22T22:42:17.953Z","repository":{"id":86846269,"uuid":"152642913","full_name":"kormanowsky/python_js_function","owner":"kormanowsky","description":"JavaScript-like functions in Python","archived":false,"fork":false,"pushed_at":"2018-10-11T19:34:39.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T02:23:40.419Z","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/kormanowsky.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}},"created_at":"2018-10-11T19:12:27.000Z","updated_at":"2018-10-11T19:34:40.000Z","dependencies_parsed_at":"2023-03-13T19:50:14.173Z","dependency_job_id":null,"html_url":"https://github.com/kormanowsky/python_js_function","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/kormanowsky%2Fpython_js_function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kormanowsky%2Fpython_js_function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kormanowsky%2Fpython_js_function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kormanowsky%2Fpython_js_function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kormanowsky","download_url":"https://codeload.github.com/kormanowsky/python_js_function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245031345,"owners_count":20549913,"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-14T08:49:28.510Z","updated_at":"2025-03-22T22:42:17.933Z","avatar_url":"https://github.com/kormanowsky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript-like functions in Python\n### Mikhail Kormanowsky\n### 2018\n\n## Usage:\n\u003cpre\u003e\nfrom function import Function\ndef [function_name]([params]):\n    [code]\nfn = Function([function_name])\n\u003c/pre\u003e\n\n## Methods:\n1. fn([params]) - calls function with params (as usual function)\n2. fn.set([new_function_name]) - sets new function\n3. fn.call([list]) - calls function with list of params\n4. fn.call([dict]) - calls function with dict of params\n5. fn.print_output(True|False) - enables/disables print() instead of return\n6. fn.apply_to([list]) - calls function for each element of the \u003clist\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkormanowsky%2Fpython_js_function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkormanowsky%2Fpython_js_function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkormanowsky%2Fpython_js_function/lists"}