{"id":15581458,"url":"https://github.com/moralcode/newtrition","last_synced_at":"2026-01-16T00:56:40.085Z","repository":{"id":168063916,"uuid":"482421445","full_name":"MoralCode/newtrition","owner":"MoralCode","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-21T22:36:19.000Z","size":88,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T00:06:34.411Z","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-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MoralCode.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":"2022-04-17T03:58:19.000Z","updated_at":"2023-05-21T22:37:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4e45286-a720-4912-ae43-ebb146127482","html_url":"https://github.com/MoralCode/newtrition","commit_stats":null,"previous_names":["moralcode/newtrition"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoralCode%2Fnewtrition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoralCode%2Fnewtrition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoralCode%2Fnewtrition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoralCode%2Fnewtrition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoralCode","download_url":"https://codeload.github.com/MoralCode/newtrition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802627,"owners_count":20836373,"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-02T19:48:22.526Z","updated_at":"2026-01-16T00:56:40.061Z","avatar_url":"https://github.com/MoralCode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Setup and usage\nDependencies are managed with pipenv. To install them, run `pipenv install`. To run things within this environment, use `pipenv run` followed by the command to run, or `pipenv shell` to enter a shell inside this environment\n\nThe first time you use the script, you may also want to initialize a fresh database, which can be done by running the script and using the `--createdb` flag\n\n## Unit tests\nunit tests can be run with `pipenv run python3 -m unittest`\n\n\n## Database versioning\nThis project uses [alembic](https://alembic.sqlalchemy.org/en/latest/) to keep track of schema changes to the database and allow for easy migration.\n\n### Applying DB Upgrades\nrunning `pipenv run alembic upgrade head` will upgrade your database to the latest version\n\n### Creating DB Upgrades\nThe command for generating a database revision (i.e. if you change the schema) is `pipenv run alembic revision --autogenerate -m \"\u003cmessage\u003e\"`. a file will be generated in the `migrations/versions` folder that will need review and some cleanup as there are [some things it cannot detect](https://alembic.sqlalchemy.org/en/latest/autogenerate.html#what-does-autogenerate-detect-and-what-does-it-not-detect)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoralcode%2Fnewtrition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoralcode%2Fnewtrition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoralcode%2Fnewtrition/lists"}