{"id":47840319,"url":"https://github.com/rbw/records-old","last_synced_at":"2026-04-03T20:37:57.690Z","repository":{"id":72518864,"uuid":"390289578","full_name":"rbw/records-old","owner":"rbw","description":"Example Starlette REST API application","archived":false,"fork":false,"pushed_at":"2021-12-30T23:59:45.000Z","size":254,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T06:31:55.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rbw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"custom":"https://paypal.vault13.org"}},"created_at":"2021-07-28T09:19:09.000Z","updated_at":"2024-03-02T15:39:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"abe0f5d4-d9ea-4f05-9aa8-f72965ccb018","html_url":"https://github.com/rbw/records-old","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":"0.29032258064516125","last_synced_commit":"b69af826270de588e70e72e20752015021f54356"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rbw/records-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Frecords-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Frecords-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Frecords-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Frecords-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbw","download_url":"https://codeload.github.com/rbw/records-old/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbw%2Frecords-old/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31375772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"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-04-03T20:37:55.928Z","updated_at":"2026-04-03T20:37:57.580Z","avatar_url":"https://github.com/rbw.png","language":"Python","funding_links":["https://paypal.vault13.org"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg width=\"128\" height=\"128\" src=\"extras/records.png\"\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\nThe idea of this project is to show how Starlette, Marshmallow, \nand SQLAlchemy can be combined to create a RESTful HTTP API \napplication that is modular, lightweight, and capable of dealing \nwith many simultaneous requests.\n\n## Setting up\n\nRequires Python 3.9+, git, and poetry.\n\n### Building\n\n```\n$ git clone https://github.com/rbw/records.git\n$ cd records\n$ poetry update\n```\n\n### Starting Postgres\n\nThe application requires an SQLAlchemy-supported relational database. This example uses pg.ARRAY in AlbumModel, making it compatible with Postgres only.\n\nA docker-compose file for running a Postgres server is available in the project root.\n\n```\n$ docker-compose up\n```\n\n### Starting Records \n\n```\n$ poetry shell\n$ python -m records\n```\n\n## Usage\n\n### Get all albums\n```\n$ curl http://localhost:5000/albums\n```\n\n### Create an album\n```\n$ curl -X POST --data '{\"title\": \"test\", \"release_date\": \"2035-01-20\", \"stores\": [\"APPLE\", \"YOUTUBE\"], \"tracks\": [\"TEST000000001\", \"TEST000000002\"], \"upc\": \"00000000000005\"}' http://localhost:5000/albums\n```\n\n### Show an album\n```\n$ curl http://localhost:5000/albums/00000000000005\n```\n\n\n## Todo\n\n- \u003cs\u003eAdd Tracks API `[GET/POST/DELETE =\u003e /tracks,/tracks:trackid:]`\u003c/s\u003e\n- \u003cs\u003eImplement add-tracks-to-album `[POST =\u003e /albums/:albumid:/tracks]`\u003c/s\u003e\n- \u003cs\u003eImplement del-track-from-album `[DELETE =\u003e /albums/:albumid:/tracks/:trackid:]`\u003c/s\u003e\n- Implement query filtering\n- Add CLI\n- Project docs\n- Code docs\n- Automated tests\n\n## Funding\n\nConsider [leaving a donation](https://paypal.vault13.org) if you like this software.\n\n## Author\n\nRobert Wikman \\\u003crbw@vault13.org\\\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbw%2Frecords-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbw%2Frecords-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbw%2Frecords-old/lists"}