{"id":20427842,"url":"https://github.com/daylily-informatics/xcures_day","last_synced_at":"2026-07-16T22:33:30.508Z","repository":{"id":245967099,"uuid":"819668226","full_name":"Daylily-Informatics/xcures_day","owner":"Daylily-Informatics","description":"python wrapper for the xcures REST api","archived":false,"fork":false,"pushed_at":"2024-06-25T03:14:25.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T21:59:48.356Z","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/Daylily-Informatics.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-25T01:15:55.000Z","updated_at":"2024-06-25T03:14:26.000Z","dependencies_parsed_at":"2024-06-25T04:29:21.962Z","dependency_job_id":"0c65dda8-c417-4b9a-a768-84f82edbdafb","html_url":"https://github.com/Daylily-Informatics/xcures_day","commit_stats":null,"previous_names":["daylily-informatics/xcures_day"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Daylily-Informatics/xcures_day","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daylily-Informatics%2Fxcures_day","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daylily-Informatics%2Fxcures_day/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daylily-Informatics%2Fxcures_day/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daylily-Informatics%2Fxcures_day/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daylily-Informatics","download_url":"https://codeload.github.com/Daylily-Informatics/xcures_day/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daylily-Informatics%2Fxcures_day/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35560452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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-15T07:22:45.359Z","updated_at":"2026-07-16T22:33:30.493Z","avatar_url":"https://github.com/Daylily-Informatics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xcures_day\npython wrapper for the xcures REST api.\n\n## Status == UNSTABLEish\n* The auth functionality is working.\n* Subject API query is working, but not tested extensively.\n* Other API hooks, ie: query, are not implemented in a trusted way quite yet.\n* TODO: I'll benefit from a quick discussion w/the Xcures tech team.\n\n\n# Configuruartion\n\n## Environment\n### Conda\n* [Install Miniconda](https://docs.anaconda.com/miniconda/miniconda-install/)\n* Create a new environment.\n```bash\nconda create -y -n XCDAY -c conda-forge python=3.10 ipython pytest pip pytz requests ipython \u0026\u0026 conda activate XCDAY \u0026\u0026 pip install yaml_config_day\n```\n\n* Activate the environment\n```bash\nconda activate XCDAY\n```\n\n## YAML File\n* Located in `~/.config/xcures/xcures_$XCURES_ENV.yaml`, where `XCURES_ENV=` might be `prod` or `test`.\n* Contents:\n  \n```bash\nexport XCURES_ENV=prod\nmore ~/.config/xcures/xcures_$XCURES_ENV.yaml\n```\n\n\n```yaml\n---\nbase_url: \"https://partner.xcures.com\"\nbase_auth_url: \"https://xcures-patient-registry-prod.us.auth0.com\"\nproject_id: \"PROJECTIDHERE\"\nclient_id: \"CLIENTIDHERE\"\nclient_secret: \"SECRETKEYHERE\"\n```\n\n\n# Usage\n_given the env is set and the yaml file is configured_\n\n## Authenticate\n```python\nfrom xcures.xcures_api import XCuresAPI as xc_api\n\nxc = xc_api()\nprint(xc)\n# prints something like \u003cxcures.xcures_api.XCuresAPI at 0x10cd814e0\u003e\n\nprint(x.token)\n# token printed\n```\n\n\n## Crude Test\n```python\nconda activate XCDAY\npython xcures/xcures_api.py # just for quick dev, this will be moved to proper pytest.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaylily-informatics%2Fxcures_day","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaylily-informatics%2Fxcures_day","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaylily-informatics%2Fxcures_day/lists"}