{"id":18289752,"url":"https://github.com/spark-jobserver/python-sjsclient","last_synced_at":"2025-10-06T01:38:16.336Z","repository":{"id":57457531,"uuid":"46711024","full_name":"spark-jobserver/python-sjsclient","owner":"spark-jobserver","description":"Python client for Spark Jobserver Rest API","archived":false,"fork":false,"pushed_at":"2020-03-18T18:59:10.000Z","size":101,"stargazers_count":40,"open_issues_count":3,"forks_count":10,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-12T18:29:56.094Z","etag":null,"topics":["python","python3","rest-client","spark-jobserver"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spark-jobserver.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-23T09:48:53.000Z","updated_at":"2025-09-12T16:18:59.000Z","dependencies_parsed_at":"2022-09-06T02:00:56.367Z","dependency_job_id":null,"html_url":"https://github.com/spark-jobserver/python-sjsclient","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/spark-jobserver/python-sjsclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spark-jobserver%2Fpython-sjsclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spark-jobserver%2Fpython-sjsclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spark-jobserver%2Fpython-sjsclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spark-jobserver%2Fpython-sjsclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spark-jobserver","download_url":"https://codeload.github.com/spark-jobserver/python-sjsclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spark-jobserver%2Fpython-sjsclient/sbom","scorecard":{"id":840283,"data":{"date":"2025-08-11","repo":{"name":"github.com/spark-jobserver/python-sjsclient","commit":"777bcf28f1da42ac48fa6617a91fd4c8f0b98397"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":2,"reason":"Found 3/12 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: ci/Dockerfile.test:1: pin your Docker image by updating noorul/python-sjsclient-ft:0.10.0 to noorul/python-sjsclient-ft:0.10.0@sha256:1379457457e5f211f67d642bba1e6c9dbbab101f2cb471757527b7b6d8196a2b","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-421 / GHSA-h4m5-qpfp-3mpv","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T20:19:10.093Z","repository_id":57457531,"created_at":"2025-08-23T20:19:10.093Z","updated_at":"2025-08-23T20:19:10.093Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278547772,"owners_count":26004772,"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-10-05T02:00:06.059Z","response_time":54,"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":["python","python3","rest-client","spark-jobserver"],"created_at":"2024-11-05T14:07:57.212Z","updated_at":"2025-10-06T01:38:16.302Z","avatar_url":"https://github.com/spark-jobserver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python client for Spark Jobserver\n=================================\n\n.. image:: https://travis-ci.org/spark-jobserver/python-sjsclient.svg?branch=master\n  :target:  https://travis-ci.org/spark-jobserver/python-sjsclient\n  :align: right\n\n.. image:: https://coveralls.io/repos/spark-jobserver/python-sjsclient/badge.svg?branch=master\u0026service=github\n  :target: https://coveralls.io/github/spark-jobserver/python-sjsclient?branch=master\n  :align: right\n\n.. image:: https://readthedocs.org/projects/python-sjsclient/badge/?version=latest\n   :target: http://python-sjsclient.readthedocs.org/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. image:: https://img.shields.io/pypi/v/python-sjsclient.svg\n        :target: https://pypi.python.org/pypi/python-sjsclient\n        :alt: Latest version\n\nFeatures\n--------\n\n- Supports Spark Jobserver 0.6.0+\n\n\nLibrary Installation\n--------------------\n\n::\n\n   $ pip install python-sjsclient\n\n\nGetting started\n---------------\n\nFirst create a client instance::\n\n    \u003e\u003e\u003e from sjsclient import client\n    \u003e\u003e\u003e sjs = client.Client(\"http://JOB_SERVER_URL:PORT\")\n\nUploading a jar to Spark Jobserver::\n\n    \u003e\u003e\u003e jar_file_path = os.path.join(\"path\", \"to\", \"jar\")\n    \u003e\u003e\u003e jar_blob = open(jar_file_path, 'rb').read()\n    \u003e\u003e\u003e app = sjs.apps.create(\"test_app\", jar_blob)\n\nUploading a python egg to Spark Jobserver::\n\n    \u003e\u003e\u003e from sjsclient import app\n    \u003e\u003e\u003e egg_file_path = os.path.join(\"path\", \"to\", \"egg\")\n    \u003e\u003e\u003e egg_blob = open(egg_file_path, 'rb').read()\n    \u003e\u003e\u003e app = sjs.apps.create(\"test_python_app\", egg_blob, app.AppType.PYTHON)\n\nListing available apps::\n\n    \u003e\u003e\u003e for app in sjs.apps.list():\n    ...     print app.name\n    ...\n    test_app\n    my_streaming_app\n\nCreating an adhoc job::\n\n    \u003e\u003e\u003e test_app = sjs.apps.get(\"test_app\")\n    \u003e\u003e\u003e class_path = \"spark.jobserver.VeryShortDoubleJob\"\n    \u003e\u003e\u003e config = {\"test_config\": \"test_config_value\"}\n    \u003e\u003e\u003e job = sjs.jobs.create(test_app, class_path, conf=config)\n    \u003e\u003e\u003e print(\"Job Status: \", job.status)\n    Job Status: STARTED\n\nCreating a synchronous adhoc job::\n\n    \u003e\u003e\u003e job = sjs.jobs.create(test_app, class_path, conf=config, sync=True)\n    \u003e\u003e\u003e print(job.result)\n    [2, 4, 6]\n\nPolling for job status::\n\n    \u003e\u003e\u003e job = sjs.jobs.create(...)\n    \u003e\u003e\u003e while job.status != \"FINISHED\":\n    \u003e\u003e\u003e     time.sleep(2)\n    \u003e\u003e\u003e     job = sjs.jobs.get(job.jobId)\n\nGetting job config::\n\n    \u003e\u003e\u003e config = {\"test_config\": \"test_config_value\"}\n    \u003e\u003e\u003e job = sjs.jobs.create(test_app, class_path, conf=config)\n    \u003e\u003e\u003e job_config = job.get_config()\n    \u003e\u003e\u003e print(\"test_config value: \", job_config[\"test_config\"])\n    test_config_value: test_config_value\n\nListing jobs::\n\n    \u003e\u003e\u003e for job in sjs.jobs.list():\n    ...     print job.jobId\n    ...\n    8c5bd52f-6486-44ee-9ac3-a8327ee40494\n    24b67573-3115-49c7-983c-d0eff0499b71\n    99c8be9e-a0ec-42dd-8a2c-9a8680bc5051\n    bb82f712-d4b4-43a4-8e4d-e4bb272e85db\n\nLimiting jobs list::\n\n    \u003e\u003e\u003e for job in sjs.jobs.list(limit=1):\n    ...     print job.jobId\n    ...\n    8c5bd52f-6486-44ee-9ac3-a8327ee40494\n\nCreating a named context::\n\n    \u003e\u003e\u003e ctx_config = {'num-cpu-cores': '1', 'memory-per-node': '512m'}\n    \u003e\u003e\u003e ctx = sjs.contexts.create(\"test_context\", ctx_config)\n\nRunning a job in a named context::\n\n    \u003e\u003e\u003e test_app = sjs.apps.get(\"test_app\")\n    \u003e\u003e\u003e test_ctx = sjs.contexts.get(\"test_context\")\n    \u003e\u003e\u003e config = {\"test_config\": \"test_config_value\"}\n    \u003e\u003e\u003e job = sjs.jobs.create(test_app, class_path, ctx=test_ctx, conf=config)\n    \u003e\u003e\u003e print(\"Job Status: \", job.status)\n    Job Status: STARTED\n\n\nDocumentation\n-------------\n\nhttp://python-sjsclient.readthedocs.org\n\n\nDiscussion list\n---------------\n\n*spark-jobserver* google group: https://groups.google.com/forum/#!forum/spark-jobserver\n\nRequirements\n------------\n\n- Python \u003e= 2.7.0\n\nLicense\n-------\n\n``python-sjsclient`` is offered under the Apache 2 license.\n\nSource code\n------------\n\nThe latest developer version is available in a github repository:\nhttps://github.com/spark-jobserver/python-sjsclient\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspark-jobserver%2Fpython-sjsclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspark-jobserver%2Fpython-sjsclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspark-jobserver%2Fpython-sjsclient/lists"}