{"id":38824096,"url":"https://github.com/spaceuptech/space-api-python","last_synced_at":"2026-01-17T13:08:16.575Z","repository":{"id":34503502,"uuid":"176238007","full_name":"spaceuptech/space-api-python","owner":"spaceuptech","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-05T20:56:42.000Z","size":151,"stargazers_count":6,"open_issues_count":7,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-29T16:04:37.826Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spaceuptech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-18T08:35:18.000Z","updated_at":"2022-09-16T21:00:25.000Z","dependencies_parsed_at":"2022-08-08T01:01:21.683Z","dependency_job_id":null,"html_url":"https://github.com/spaceuptech/space-api-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spaceuptech/space-api-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceuptech%2Fspace-api-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceuptech%2Fspace-api-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceuptech%2Fspace-api-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceuptech%2Fspace-api-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaceuptech","download_url":"https://codeload.github.com/spaceuptech/space-api-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceuptech%2Fspace-api-python/sbom","scorecard":{"id":840106,"data":{"date":"2025-08-11","repo":{"name":"github.com/spaceuptech/space-api-python","commit":"58a5a07c70a9aae0094558570b98a6dfdce27291"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"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":"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":"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":"Code-Review","score":8,"reason":"Found 12/14 approved changesets -- score normalized to 8","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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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:15:35.210Z","repository_id":34503502,"created_at":"2025-08-23T20:15:35.210Z","updated_at":"2025-08-23T20:15:35.210Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-17T13:08:16.463Z","updated_at":"2026-01-17T13:08:16.561Z","avatar_url":"https://github.com/spaceuptech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Client API for Space Cloud\n\n\u003e **The python API is deprecated**\n\n## Installation\n```bash\n$ pip install space-api-py\n```\n\n## Documentation\nThe complete documentation can be found [here](https://spaceuptech.com/docs).\n\n## Quick Start\n\n### Create Client Instance\n\n```python\nfrom space_api import API, AND, OR, COND\n\napi = API('demo-project', 'localhost:4124')\n\n# For MongoDB\ndb = api.mongo()\n\n# For PostgresQL\ndb = api.postgres()\n\n# For MySQL\ndb = api.my_sql()\n```\n**Note: Multiple databases may be used simultaneously.**\n\n### Insert a document into the database\n```python\nresponse = db.insert('books').doc({\"name\": \"MyBook\", \"author\": \"John Doe\"}).apply()\nif response.status == 200:\n    # Record successfully inserted\n    print(\"Success\")\nelse:\n    # An error occurred\n    print(response.error)\n```\n\n### Query documents in database\n```python\nresponse = db.get('books').sort('-author').apply()\nif response.status == 200:\n    # We got some result\n    print(response.result)\nelse:\n    # An error occurred\n    print(response.error)\n```\n\n### Update documents in database\n```python\nresponse = db.update_one('books').where(COND(\"author\", \"==\", \"some_author\")).set({\"author\": \"myself\"}).apply()\nif response.status == 200:\n    # Record successfully updated\n    print(\"Success\")\nelse:\n    # An error occurred\n    print(response.error)\n```\n\n### Delete documents in database\n```python\nresponse = db.delete('books').where(COND('name', '!=', 'Book_name')).apply()\nif response.status == 200:\n    # Record successfully deleted\n    print(\"Success\")\nelse:\n    # An error occurred\n    print(response.error)\n```\n\n### Batch Multiple Requests in database\n```python\nb = db.begin_batch()\nb.add(db.insert('books').doc({\"name\": \"MyBook\", \"author\": \"John Doe\"}))\nb.add(db.insert('books').docs([{\"name\": \"BookName\"}, {\"name\": \"BookName\"}]))\nb.add(db.delete('books').where(COND('name', '!=', 'Book_name')))\nresponse = b.apply()\nif response.status == 200:\n    # Record successfully made the changes\n    print(\"Success\")\nelse:\n    # An error occurred\n    print(response.error)\n```\n\n### Call functions directly (Function as a Service) \n```python\nresponse = api.call('test_engine', 'test_func', 'params')\nprint(response)\n```\n\n### User Management - Sign In \n```python\nresponse = db.sign_in(\"user_email\", \"user_password\")\nif response.status == 200:\n    print(response.result)\nelse:\n    print(response.error)\n```\n\n### User Management - Sign Up \n```python\nresponse = db.sign_up(\"user_email\", \"user_name\", \"user_password\", \"user_role\")\nif response.status == 200:\n    print(response.result)\nelse:\n    print(response.error)\n```\n\n### User Management - View Profile \n```python\nresponse = db.profile(\"user_id\")\nif response.status == 200:\n    print(response.result)\nelse:\n    print(response.error)\n```\n\n### User Management - View All Profiles \n```python\nresponse = db.profiles()\nif response.status == 200:\n    print(response.result)\nelse:\n    print(response.error)\n```\n\n### User Management - Edit Profile \n```python\nresponse = db.edit_profile(\"user_id\", email=\"new_email\", name=\"new_name\", password=\"new_password\")\nif response.status == 200:\n    print(response.result)\nelse:\n    print(response.error)\n```\n\n## Authors\n[Aliabbas Merchant](https://github.com/AliabbasMerchant) - Initial work\n\n## License\n\nCopyright 2019 Space Up Technologies\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceuptech%2Fspace-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaceuptech%2Fspace-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceuptech%2Fspace-api-python/lists"}