{"id":16614933,"url":"https://github.com/dschep/pycocorahs","last_synced_at":"2026-04-24T09:36:22.178Z","repository":{"id":62563237,"uuid":"299947344","full_name":"dschep/PyCoCoRaHS","owner":"dschep","description":"a Python package providing a CLI utility and an API for uploading observations to CoCoRaHS","archived":false,"fork":false,"pushed_at":"2020-09-30T19:05:06.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T06:47:46.378Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dschep.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":"2020-09-30T14:31:29.000Z","updated_at":"2024-04-01T05:37:19.000Z","dependencies_parsed_at":"2022-11-03T15:45:29.289Z","dependency_job_id":null,"html_url":"https://github.com/dschep/PyCoCoRaHS","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/dschep%2FPyCoCoRaHS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2FPyCoCoRaHS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2FPyCoCoRaHS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschep%2FPyCoCoRaHS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dschep","download_url":"https://codeload.github.com/dschep/PyCoCoRaHS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242951172,"owners_count":20211572,"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-12T02:08:12.214Z","updated_at":"2026-04-24T09:36:17.143Z","avatar_url":"https://github.com/dschep.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyCoCoraHS\n\nPyCoCoraHS is a Python package providing a CLI utility and an API for uploading observations to\n[CoCoRaHS](https://cocorahs.org).\n\n## Installing\nInstall this package using `pip`:\n```shell\npython3 -m pip install --user cocorahs\n```\n\n## Using the CLI\nYou can invoke the CLI via `cocorahs`. Here is the help output:\n```\nUsage: cocorahs [OPTIONS] PERCIPITATION\n\n  Report PERCIPITATION amount to CoCoRaHS. Enter T for trace amounts.\n\nOptions:\n  --station TEXT   The CoCoRaHS station code\n  --username TEXT  Your CoCoRaHS username\n  --password TEXT  Your CoCoRaHS password\n  --help           Show this message and exit.\n```\n\n### Configuring the CLI via a config file.\nCreate a file at `~/.config/cocorahs/config.ini` containing a config like the following but\nchanging the details to your username, password, \u0026 station.\n```ini\n[CoCoRaHS]\nusername = DanielSchep\npassword = hunter2\nstation = VA-RCC-15\n```\n\n## API Usage\nHere is a simple example of making a new report via the API:\n```python\nfrom cocorahs import CoCoRaHS\n\napi = CoCoRaHS(username='DanielSchep', password='hunter2')\napi.new_report(station='VA-RCC-15', percipitation=0.1, trace=False)\n```\n\nThe `new_report` function also accepts an `observation_time` keyword argument. It should be a\n`datetime.datetime` object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschep%2Fpycocorahs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdschep%2Fpycocorahs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschep%2Fpycocorahs/lists"}