{"id":17804038,"url":"https://github.com/evroon/ns-api-python","last_synced_at":"2025-04-02T04:43:39.738Z","repository":{"id":46111935,"uuid":"427713907","full_name":"evroon/ns-api-python","owner":"evroon","description":"Simple Python wrapper of the NS API","archived":false,"fork":false,"pushed_at":"2022-11-02T18:20:51.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T19:33:36.335Z","etag":null,"topics":["api-wrapper","ns","pydantic","python","requests"],"latest_commit_sha":null,"homepage":"","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/evroon.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}},"created_at":"2021-11-13T16:19:43.000Z","updated_at":"2023-01-31T14:35:11.000Z","dependencies_parsed_at":"2022-09-15T21:31:10.429Z","dependency_job_id":null,"html_url":"https://github.com/evroon/ns-api-python","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/evroon%2Fns-api-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evroon%2Fns-api-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evroon%2Fns-api-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evroon%2Fns-api-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evroon","download_url":"https://codeload.github.com/evroon/ns-api-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246758286,"owners_count":20828919,"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":["api-wrapper","ns","pydantic","python","requests"],"created_at":"2024-10-27T12:48:53.941Z","updated_at":"2025-04-02T04:43:39.715Z","avatar_url":"https://github.com/evroon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python NS API\n\n\n[![mypy](https://github.com/evroon/ns-api-python/actions/workflows/mypy.yml/badge.svg)](https://github.com/evroon/ns-api-python/actions/workflows/mypy.yml)\n[![pytest](https://github.com/evroon/ns-api-python/actions/workflows/pytest.yml/badge.svg)](https://github.com/evroon/ns-api-python/actions/workflows/pytest.yml)\n[![lint](https://github.com/evroon/ns-api-python/actions/workflows/black.yml/badge.svg)](https://github.com/evroon/ns-api-python/actions/workflows/black.yml)\n\nThis project serves as a simple Python client of the [NS API](https://apiportal.ns.nl).\nThe reponses are stored in Pydantic models, enabling easy manipulation and validation of the data.\n\n## Setup\nGet a (free) API key from NS (see the [startersguide](https://apiportal.ns.nl/startersguide)).\n\nCreate a file called `.env` with the following content: (see `sample.env`)\n```bash\nAPI_KEY=\"\u003capi key\u003e\"\n```\n\n## Usage\nRun `python3 main.py --help` to see a list of commands.\n\nIt is recommended to first run `python3 main.py stations` to retrieve (and store) a list of all stations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevroon%2Fns-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevroon%2Fns-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevroon%2Fns-api-python/lists"}